| 53 | namespace webdriver { |
| 54 | |
| 55 | InputManager::InputManager() { |
| 56 | LOG(TRACE) << "Entering InputManager::InputManager"; |
| 57 | this->use_native_events_ = true; |
| 58 | this->use_persistent_hover_ = false; |
| 59 | this->require_window_focus_ = true; |
| 60 | this->scroll_behavior_ = TOP; |
| 61 | this->current_input_state_.is_alt_pressed = false; |
| 62 | this->current_input_state_.is_control_pressed = false; |
| 63 | this->current_input_state_.is_shift_pressed = false; |
| 64 | this->current_input_state_.is_meta_pressed = false; |
| 65 | this->current_input_state_.is_left_button_pressed = false; |
| 66 | this->current_input_state_.is_right_button_pressed = false; |
| 67 | this->current_input_state_.mouse_x = 0; |
| 68 | this->current_input_state_.mouse_y = 0; |
| 69 | this->current_input_state_.last_click_time = clock(); |
| 70 | this->current_input_state_.error_info = ""; |
| 71 | |
| 72 | this->action_simulator_ = NULL; |
| 73 | } |
| 74 | |
| 75 | InputManager::~InputManager(void) { |
| 76 | if (this->action_simulator_ != NULL) { |