| 79 | } |
| 80 | |
| 81 | void InputManager::Initialize(InputManagerSettings settings) { |
| 82 | LOG(TRACE) << "Entering InputManager::Initialize"; |
| 83 | this->element_map_ = settings.element_repository; |
| 84 | this->scroll_behavior_ = settings.scroll_behavior; |
| 85 | this->use_native_events_ = settings.use_native_events; |
| 86 | this->use_persistent_hover_ = settings.enable_persistent_hover; |
| 87 | this->require_window_focus_ = settings.require_window_focus; |
| 88 | if (settings.use_native_events) { |
| 89 | if (settings.require_window_focus) { |
| 90 | this->action_simulator_ = new SendInputActionSimulator(); |
| 91 | } else { |
| 92 | this->action_simulator_ = new SendMessageActionSimulator(); |
| 93 | } |
| 94 | } else { |
| 95 | this->action_simulator_ = new JavaScriptActionSimulator(); |
| 96 | } |
| 97 | this->SetupKeyDescriptions(); |
| 98 | } |
| 99 | |
| 100 | int InputManager::PerformInputSequence(BrowserHandle browser_wrapper, |
| 101 | const Json::Value& sequences, |
nothing calls this directly
no test coverage detected