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

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, 9 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) 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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 // Executes the given |script| in the specified frame of the current 48 // Executes the given |script| in the specified frame of the current
49 // tab. |result| will be set to the JSON result. Returns true on success. 49 // tab. |result| will be set to the JSON result. Returns true on success.
50 void ExecuteScript(int tab_id, 50 void ExecuteScript(int tab_id,
51 const std::string& frame_xpath, 51 const std::string& frame_xpath,
52 const std::string& script, 52 const std::string& script,
53 std::string* result, 53 std::string* result,
54 bool* success); 54 bool* success);
55 55
56 // Sends a key event to the current browser. Waits until the key has 56 // Sends a key event to the current browser. Waits until the key has
57 // been processed by the web page. 57 // been processed by the web page.
58 void SendWebKeyEvent(int tab_id, const WebKeyEvent& key_event, bool* success); 58 void SendWebKeyEvent(int tab_id,
kkania 2011/03/10 17:00:47 I would prefer if you create a separate function f
timothe faudot 2011/03/11 03:32:08 Done.
59 const WebKeyEvent& key_event,
60 bool use_native_events,
61 bool* success);
59 62
60 void NavigateToURL(int tab_id, const std::string& url, bool* success); 63 void NavigateToURL(int tab_id, const std::string& url, bool* success);
61 void GoForward(int tab_id, bool* success); 64 void GoForward(int tab_id, bool* success);
62 void GoBack(int tab_id, bool* success); 65 void GoBack(int tab_id, bool* success);
63 void Reload(int tab_id, bool* success); 66 void Reload(int tab_id, bool* success);
64 void GetURL(int tab_id, std::string* url, bool* success); 67 void GetURL(int tab_id, std::string* url, bool* success);
65 void GetGURL(int tab_id, GURL* gurl, bool* success); 68 void GetGURL(int tab_id, GURL* gurl, bool* success);
66 void GetTabTitle(int tab_id, std::string* tab_title, bool* success); 69 void GetTabTitle(int tab_id, std::string* tab_title, bool* success);
67 void GetCookies( 70 void GetCookies(
68 int tab_id, const GURL& gurl, std::string* cookies, bool* success); 71 int tab_id, const GURL& gurl, std::string* cookies, bool* success);
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 scoped_ptr<ProxyLauncher> launcher_; 107 scoped_ptr<ProxyLauncher> launcher_;
105 108
106 DISALLOW_COPY_AND_ASSIGN(Automation); 109 DISALLOW_COPY_AND_ASSIGN(Automation);
107 }; 110 };
108 111
109 } // namespace webdriver 112 } // namespace webdriver
110 113
111 DISABLE_RUNNABLE_METHOD_REFCOUNT(webdriver::Automation); 114 DISABLE_RUNNABLE_METHOD_REFCOUNT(webdriver::Automation);
112 115
113 #endif // CHROME_TEST_WEBDRIVER_AUTOMATION_H_ 116 #endif // CHROME_TEST_WEBDRIVER_AUTOMATION_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698