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

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: Added missing fixs and an additional test. Created 9 years, 6 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 // Drag and drop the file paths to the given location.
79 void DragAndDropFilePaths(int tab_id, const gfx::Point& location,
80 const std::vector<std::string>& paths,
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 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
159 scoped_ptr<ProxyLauncher> launcher_; 164 scoped_ptr<ProxyLauncher> launcher_;
160 165
161 DISALLOW_COPY_AND_ASSIGN(Automation); 166 DISALLOW_COPY_AND_ASSIGN(Automation);
162 }; 167 };
163 168
164 } // namespace webdriver 169 } // namespace webdriver
165 170
166 DISABLE_RUNNABLE_METHOD_REFCOUNT(webdriver::Automation); 171 DISABLE_RUNNABLE_METHOD_REFCOUNT(webdriver::Automation);
167 172
168 #endif // CHROME_TEST_WEBDRIVER_AUTOMATION_H_ 173 #endif // CHROME_TEST_WEBDRIVER_AUTOMATION_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698