Path: blob/trunk/cpp/iedriver/ActionSimulators/JavaScriptActionSimulator.h
2868 views
// Licensed to the Software Freedom Conservancy (SFC) under one1// or more contributor license agreements. See the NOTICE file2// distributed with this work for additional information3// regarding copyright ownership. The SFC licenses this file4// to you under the Apache License, Version 2.0 (the "License");5// you may not use this file except in compliance with the License.6// You may obtain a copy of the License at7//8// http://www.apache.org/licenses/LICENSE-2.09//10// Unless required by applicable law or agreed to in writing, software11// distributed under the License is distributed on an "AS IS" BASIS,12// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.13// See the License for the specific language governing permissions and14// limitations under the License.1516#ifndef WEBDRIVER_IE_JAVASCRIPTACTIONSIMULATOR_H_17#define WEBDRIVER_IE_JAVASCRIPTACTIONSIMULATOR_H_1819#include "ActionSimulator.h"2021namespace webdriver {2223class JavaScriptActionSimulator : public ActionSimulator {24public:25JavaScriptActionSimulator(void);26virtual ~JavaScriptActionSimulator(void);2728bool UseExtraInfo(void) const { return true; }2930int SimulateActions(BrowserHandle browser_wrapper,31std::vector<INPUT> inputs,32InputState* input_state);3334private:3536int SimulateKeyDown(BrowserHandle browser_wrapper, INPUT input);37int SimulatePointerMove(BrowserHandle browser_wrapper, INPUT input);38int SimulatePointerDown(BrowserHandle browser_wrapper, INPUT input);39int SimulatePointerUp(BrowserHandle browser_wrapper, INPUT input);40int SimulatePause(BrowserHandle browser_wrapper, INPUT input);4142CComVariant keyboard_state_;43CComVariant mouse_state_;44};4546} // namespace webdriver4748#endif // WEBDRIVER_IE_JAVASCRIPTACTIONSIMULATOR_H_495051