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

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: changed PageSnapshotTaker to use JSON interface 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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 void ExecuteScript(int tab_id, 52 void ExecuteScript(int tab_id,
53 const FramePath& frame_path, 53 const FramePath& frame_path,
54 const std::string& script, 54 const std::string& script,
55 std::string* result, 55 std::string* result,
56 bool* success); 56 bool* success);
57 57
58 // Sends a key event to the current browser. Waits until the key has 58 // Sends a key event to the current browser. Waits until the key has
59 // been processed by the web page. 59 // been processed by the web page.
60 void SendWebKeyEvent(int tab_id, const WebKeyEvent& key_event, bool* success); 60 void SendWebKeyEvent(int tab_id, const WebKeyEvent& key_event, bool* success);
61 61
62 // Returns a string containing the raw binary data of a PNG image of the
kkania 2011/03/22 21:08:56 this comment is not accurate, like the other one.
Joe 2011/03/22 22:08:19 Done.
63 // tab requested. The PNG will contain the entire page, including what
64 // is not in the current view on the screen.
65 void CaptureEntirePageAsPNG(int tab_id, const FilePath& path, bool* success);
66
62 void NavigateToURL(int tab_id, const std::string& url, bool* success); 67 void NavigateToURL(int tab_id, const std::string& url, bool* success);
63 void GoForward(int tab_id, bool* success); 68 void GoForward(int tab_id, bool* success);
64 void GoBack(int tab_id, bool* success); 69 void GoBack(int tab_id, bool* success);
65 void Reload(int tab_id, bool* success); 70 void Reload(int tab_id, bool* success);
66 void GetURL(int tab_id, std::string* url, bool* success); 71 void GetURL(int tab_id, std::string* url, bool* success);
67 void GetGURL(int tab_id, GURL* gurl, bool* success); 72 void GetGURL(int tab_id, GURL* gurl, bool* success);
68 void GetTabTitle(int tab_id, std::string* tab_title, bool* success); 73 void GetTabTitle(int tab_id, std::string* tab_title, bool* success);
69 void GetCookies( 74 void GetCookies(
70 int tab_id, const GURL& gurl, std::string* cookies, bool* success); 75 int tab_id, const GURL& gurl, std::string* cookies, bool* success);
71 void DeleteCookie(int tab_id, 76 void DeleteCookie(int tab_id,
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 scoped_ptr<ProxyLauncher> launcher_; 111 scoped_ptr<ProxyLauncher> launcher_;
107 112
108 DISALLOW_COPY_AND_ASSIGN(Automation); 113 DISALLOW_COPY_AND_ASSIGN(Automation);
109 }; 114 };
110 115
111 } // namespace webdriver 116 } // namespace webdriver
112 117
113 DISABLE_RUNNABLE_METHOD_REFCOUNT(webdriver::Automation); 118 DISABLE_RUNNABLE_METHOD_REFCOUNT(webdriver::Automation);
114 119
115 #endif // CHROME_TEST_WEBDRIVER_AUTOMATION_H_ 120 #endif // CHROME_TEST_WEBDRIVER_AUTOMATION_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698