Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(239)

Side by Side Diff: chrome/test/webdriver/webdriver_automation.h

Issue 11818029: [chromedriver] Remove support for simulating OS-level key events. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 7 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_TEST_WEBDRIVER_WEBDRIVER_AUTOMATION_H_ 5 #ifndef CHROME_TEST_WEBDRIVER_WEBDRIVER_AUTOMATION_H_
6 #define CHROME_TEST_WEBDRIVER_WEBDRIVER_AUTOMATION_H_ 6 #define CHROME_TEST_WEBDRIVER_WEBDRIVER_AUTOMATION_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 const std::string& script, 90 const std::string& script,
91 std::string* result, 91 std::string* result,
92 Error** error); 92 Error** error);
93 93
94 // Sends a webkit key event to the current browser. Waits until the key has 94 // Sends a webkit key event to the current browser. Waits until the key has
95 // been processed by the web page. 95 // been processed by the web page.
96 void SendWebKeyEvent(const WebViewId& view_id, 96 void SendWebKeyEvent(const WebViewId& view_id,
97 const WebKeyEvent& key_event, 97 const WebKeyEvent& key_event,
98 Error** error); 98 Error** error);
99 99
100 // Sends an OS level key event to the current browser. Waits until the key
101 // has been processed by the browser.
102 void SendNativeKeyEvent(const WebViewId& view_id,
103 ui::KeyboardCode key_code,
104 int modifiers,
105 Error** error);
106
107 // Sends a web mouse event to the given view. Waits until the event has 100 // Sends a web mouse event to the given view. Waits until the event has
108 // been processed by the view. 101 // been processed by the view.
109 void SendWebMouseEvent(const WebViewId& view_id, 102 void SendWebMouseEvent(const WebViewId& view_id,
110 const WebMouseEvent& event, 103 const WebMouseEvent& event,
111 Error** error); 104 Error** error);
112 105
113 // Drag and drop the file paths to the given location. 106 // Drag and drop the file paths to the given location.
114 void DragAndDropFilePaths(const WebViewId& view_id, 107 void DragAndDropFilePaths(const WebViewId& view_id,
115 const Point& location, 108 const Point& location,
116 const std::vector<FilePath::StringType>& paths, 109 const std::vector<FilePath::StringType>& paths,
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after
275 scoped_ptr<ProxyLauncher> launcher_; 268 scoped_ptr<ProxyLauncher> launcher_;
276 int build_no_; 269 int build_no_;
277 scoped_ptr<base::DictionaryValue> geolocation_; 270 scoped_ptr<base::DictionaryValue> geolocation_;
278 271
279 DISALLOW_COPY_AND_ASSIGN(Automation); 272 DISALLOW_COPY_AND_ASSIGN(Automation);
280 }; 273 };
281 274
282 } // namespace webdriver 275 } // namespace webdriver
283 276
284 #endif // CHROME_TEST_WEBDRIVER_WEBDRIVER_AUTOMATION_H_ 277 #endif // CHROME_TEST_WEBDRIVER_WEBDRIVER_AUTOMATION_H_
OLDNEW
« no previous file with comments | « chrome/test/webdriver/test/chromedriver_tests.py ('k') | chrome/test/webdriver/webdriver_automation.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698