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

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

Issue 6630001: Allow webdriver users to choose between sending the key events when... (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: '' Created 9 years, 8 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
« no previous file with comments | « chrome/test/automation/automation_json_requests.cc ('k') | chrome/test/webdriver/automation.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_AUTOMATION_H_ 5 #ifndef CHROME_TEST_WEBDRIVER_AUTOMATION_H_
6 #define CHROME_TEST_WEBDRIVER_AUTOMATION_H_ 6 #define CHROME_TEST_WEBDRIVER_AUTOMATION_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 void Terminate(); 49 void Terminate();
50 50
51 // Executes the given |script| in the specified frame of the current 51 // Executes the given |script| in the specified frame of the current
52 // tab. |result| will be set to the JSON result. Returns true on success. 52 // tab. |result| will be set to the JSON result. Returns true on success.
53 void ExecuteScript(int tab_id, 53 void ExecuteScript(int tab_id,
54 const FramePath& frame_path, 54 const FramePath& frame_path,
55 const std::string& script, 55 const std::string& script,
56 std::string* result, 56 std::string* result,
57 bool* success); 57 bool* success);
58 58
59 // Sends a key event to the current browser. Waits until the key has 59 // Sends a webkit key event to the current browser. Waits until the key has
60 // been processed by the web page. 60 // been processed by the web page.
61 void SendWebKeyEvent(int tab_id, const WebKeyEvent& key_event, bool* success); 61 void SendWebKeyEvent(int tab_id,
62 const WebKeyEvent& key_event,
63 bool* success);
64
65 // Sends an OS level key event to the current browser. Waits until the key
66 // has been processed by the browser.
67 void SendNativeKeyEvent(int tab_id,
68 ui::KeyboardCode key_code,
69 int modifiers,
70 bool* success);
62 71
63 // Captures a snapshot of the tab to the specified path. The PNG will 72 // Captures a snapshot of the tab to the specified path. The PNG will
64 // contain the entire page, including what is not in the current view 73 // contain the entire page, including what is not in the current view
65 // on the screen. 74 // on the screen.
66 void CaptureEntirePageAsPNG(int tab_id, const FilePath& path, bool* success); 75 void CaptureEntirePageAsPNG(int tab_id, const FilePath& path, bool* success);
67 76
68 void NavigateToURL(int tab_id, const std::string& url, bool* success); 77 void NavigateToURL(int tab_id, const std::string& url, bool* success);
69 void GoForward(int tab_id, bool* success); 78 void GoForward(int tab_id, bool* success);
70 void GoBack(int tab_id, bool* success); 79 void GoBack(int tab_id, bool* success);
71 void Reload(int tab_id, bool* success); 80 void Reload(int tab_id, bool* success);
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
120 scoped_ptr<ProxyLauncher> launcher_; 129 scoped_ptr<ProxyLauncher> launcher_;
121 130
122 DISALLOW_COPY_AND_ASSIGN(Automation); 131 DISALLOW_COPY_AND_ASSIGN(Automation);
123 }; 132 };
124 133
125 } // namespace webdriver 134 } // namespace webdriver
126 135
127 DISABLE_RUNNABLE_METHOD_REFCOUNT(webdriver::Automation); 136 DISABLE_RUNNABLE_METHOD_REFCOUNT(webdriver::Automation);
128 137
129 #endif // CHROME_TEST_WEBDRIVER_AUTOMATION_H_ 138 #endif // CHROME_TEST_WEBDRIVER_AUTOMATION_H_
OLDNEW
« no previous file with comments | « chrome/test/automation/automation_json_requests.cc ('k') | chrome/test/webdriver/automation.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698