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

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

Issue 7055004: File upload API in chromedriver (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Fixed error handlings according to latest changes and refactored. Created 9 years, 7 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 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 const WebKeyEvent& key_event, 68 const WebKeyEvent& key_event,
69 Error** error); 69 Error** error);
70 70
71 // Sends an OS level key event to the current browser. Waits until the key 71 // Sends an OS level key event to the current browser. Waits until the key
72 // has been processed by the browser. 72 // has been processed by the browser.
73 void SendNativeKeyEvent(int tab_id, 73 void SendNativeKeyEvent(int tab_id,
74 ui::KeyboardCode key_code, 74 ui::KeyboardCode key_code,
75 int modifiers, 75 int modifiers,
76 Error** error); 76 Error** error);
77 77
78 // Sets the file paths to the file upload control under the given location.
79 void SetFilePathsToFileUploadControl(int tab_id, const gfx::Point& location,
80 const std::vector<std::string>& path,
kkania 2011/05/23 18:43:49 paths
nodchip 2011/05/26 01:14:53 Done.
81 Error** error);
82
78 // Captures a snapshot of the tab to the specified path. The PNG will 83 // Captures a snapshot of the tab to the specified path. The PNG will
79 // contain the entire page, including what is not in the current view 84 // contain the entire page, including what is not in the current view
80 // on the screen. 85 // on the screen.
81 void CaptureEntirePageAsPNG(int tab_id, const FilePath& path, Error** error); 86 void CaptureEntirePageAsPNG(int tab_id, const FilePath& path, Error** error);
82 87
83 void NavigateToURL(int tab_id, const std::string& url, Error** error); 88 void NavigateToURL(int tab_id, const std::string& url, Error** error);
84 void GoForward(int tab_id, Error** error); 89 void GoForward(int tab_id, Error** error);
85 void GoBack(int tab_id, Error** error); 90 void GoBack(int tab_id, Error** error);
86 void Reload(int tab_id, Error** error); 91 void Reload(int tab_id, Error** error);
87 92
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
151 scoped_ptr<ProxyLauncher> launcher_; 156 scoped_ptr<ProxyLauncher> launcher_;
152 157
153 DISALLOW_COPY_AND_ASSIGN(Automation); 158 DISALLOW_COPY_AND_ASSIGN(Automation);
154 }; 159 };
155 160
156 } // namespace webdriver 161 } // namespace webdriver
157 162
158 DISABLE_RUNNABLE_METHOD_REFCOUNT(webdriver::Automation); 163 DISABLE_RUNNABLE_METHOD_REFCOUNT(webdriver::Automation);
159 164
160 #endif // CHROME_TEST_WEBDRIVER_AUTOMATION_H_ 165 #endif // CHROME_TEST_WEBDRIVER_AUTOMATION_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698