MCPcopy Create free account
hub / github.com/SeleniumHQ/selenium / OnSetCommand

Method OnSetCommand

cpp/iedriver/IECommandExecutor.cpp:152–172  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

150}
151
152LRESULT IECommandExecutor::OnSetCommand(UINT uMsg,
153 WPARAM wParam,
154 LPARAM lParam,
155 BOOL& bHandled) {
156 LOG(TRACE) << "Entering IECommandExecutor::OnSetCommand";
157 LRESULT set_command_result = 0;
158
159 LPCSTR json_command = reinterpret_cast<LPCSTR>(lParam);
160 Command requested_command;
161 requested_command.Deserialize(json_command);
162
163 this->set_command_mutex_.lock();
164 if (this->current_command_.command_type() == CommandType::NoCommand ||
165 requested_command.command_type() == CommandType::Quit) {
166 this->current_command_.Deserialize(json_command);
167 set_command_result = 1;
168 }
169 this->set_command_mutex_.unlock();
170
171 return set_command_result;
172}
173
174LRESULT IECommandExecutor::OnExecCommand(UINT uMsg,
175 WPARAM wParam,

Callers

nothing calls this directly

Calls 4

lockMethod · 0.80
command_typeMethod · 0.80
LOGClass · 0.50
DeserializeMethod · 0.45

Tested by

no test coverage detected