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

Method PointerUp

cpp/iedriver/InputManager.cpp:527–548  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

525}
526
527int InputManager::PointerUp(BrowserHandle browser_wrapper,
528 const Json::Value& up_action,
529 InputState* input_state) {
530 LOG(TRACE) << "Entering InputManager::PointerUp";
531 int button = up_action["button"].asInt();
532 HWND browser_window_handle = browser_wrapper->GetContentWindowHandle();
533 LOG(DEBUG) << "Queueing SendInput structure for mouse button up";
534 long button_event_value = MOUSEEVENTF_LEFTUP;
535 if (button == WD_CLIENT_RIGHT_MOUSE_BUTTON) {
536 button_event_value = MOUSEEVENTF_RIGHTUP;
537 }
538 this->AddMouseInput(browser_window_handle,
539 button_event_value,
540 input_state->mouse_x,
541 input_state->mouse_y);
542 if (button == WD_CLIENT_RIGHT_MOUSE_BUTTON) {
543 input_state->is_right_button_pressed = false;
544 } else {
545 input_state->is_left_button_pressed = false;
546 }
547 return WD_SUCCESS;
548}
549
550int InputManager::KeyDown(BrowserHandle browser_wrapper,
551 const Json::Value& down_action,

Callers 1

PerformInputSequenceMethod · 0.95

Calls 3

AddMouseInputMethod · 0.95
LOGClass · 0.50

Tested by

no test coverage detected