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

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

Issue 5572001: Send screenshots back to the client for debugging (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: need to push again to make sure rietveld didn't screw up 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
« no previous file with comments | « chrome/test/automation/tab_proxy.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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 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, const WebKeyEvent& key_event, bool* success);
62 62
63 // 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
65 // on the screen.
66 void CaptureEntirePageAsPNG(int tab_id, const FilePath& path, bool* success);
67
63 void NavigateToURL(int tab_id, const std::string& url, bool* success); 68 void NavigateToURL(int tab_id, const std::string& url, bool* success);
64 void GoForward(int tab_id, bool* success); 69 void GoForward(int tab_id, bool* success);
65 void GoBack(int tab_id, bool* success); 70 void GoBack(int tab_id, bool* success);
66 void Reload(int tab_id, bool* success); 71 void Reload(int tab_id, bool* success);
67 void GetURL(int tab_id, std::string* url, bool* success); 72 void GetURL(int tab_id, std::string* url, bool* success);
68 void GetGURL(int tab_id, GURL* gurl, bool* success); 73 void GetGURL(int tab_id, GURL* gurl, bool* success);
69 void GetTabTitle(int tab_id, std::string* tab_title, bool* success); 74 void GetTabTitle(int tab_id, std::string* tab_title, bool* success);
70 75
71 void GetCookies(const std::string& url, ListValue** cookies, bool* success); 76 void GetCookies(const std::string& url, ListValue** cookies, bool* success);
72 void GetCookiesDeprecated( 77 void GetCookiesDeprecated(
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
115 scoped_ptr<ProxyLauncher> launcher_; 120 scoped_ptr<ProxyLauncher> launcher_;
116 121
117 DISALLOW_COPY_AND_ASSIGN(Automation); 122 DISALLOW_COPY_AND_ASSIGN(Automation);
118 }; 123 };
119 124
120 } // namespace webdriver 125 } // namespace webdriver
121 126
122 DISABLE_RUNNABLE_METHOD_REFCOUNT(webdriver::Automation); 127 DISABLE_RUNNABLE_METHOD_REFCOUNT(webdriver::Automation);
123 128
124 #endif // CHROME_TEST_WEBDRIVER_AUTOMATION_H_ 129 #endif // CHROME_TEST_WEBDRIVER_AUTOMATION_H_
OLDNEW
« no previous file with comments | « chrome/test/automation/tab_proxy.cc ('k') | chrome/test/webdriver/automation.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698