| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_AUTOMATION_TAB_PROXY_H_ | 5 #ifndef CHROME_TEST_AUTOMATION_TAB_PROXY_H_ |
| 6 #define CHROME_TEST_AUTOMATION_TAB_PROXY_H_ | 6 #define CHROME_TEST_AUTOMATION_TAB_PROXY_H_ |
| 7 | 7 |
| 8 #include "build/build_config.h" // NOLINT | 8 #include "build/build_config.h" // NOLINT |
| 9 | 9 |
| 10 #if defined(OS_WIN) | 10 #if defined(OS_WIN) |
| (...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 195 // Sends off an asynchronous request for printing. | 195 // Sends off an asynchronous request for printing. |
| 196 bool PrintAsync() WARN_UNUSED_RESULT; | 196 bool PrintAsync() WARN_UNUSED_RESULT; |
| 197 | 197 |
| 198 // Waits until the infobar count is |count|. | 198 // Waits until the infobar count is |count|. |
| 199 // Returns true on success. | 199 // Returns true on success. |
| 200 bool WaitForInfoBarCount(size_t count) WARN_UNUSED_RESULT; | 200 bool WaitForInfoBarCount(size_t count) WARN_UNUSED_RESULT; |
| 201 | 201 |
| 202 // Uses the specified encoding to override encoding of the page in the tab. | 202 // Uses the specified encoding to override encoding of the page in the tab. |
| 203 bool OverrideEncoding(const std::string& encoding) WARN_UNUSED_RESULT; | 203 bool OverrideEncoding(const std::string& encoding) WARN_UNUSED_RESULT; |
| 204 | 204 |
| 205 // Captures the entire page and saves as a PNG at the given path. Returns | |
| 206 // true on success. | |
| 207 bool CaptureEntirePageAsPNG(const base::FilePath& path) WARN_UNUSED_RESULT; | |
| 208 | |
| 209 #if defined(OS_WIN) | 205 #if defined(OS_WIN) |
| 210 // Resizes the tab window. | 206 // Resizes the tab window. |
| 211 // The parent_window parameter allows a parent to be specified for the window | 207 // The parent_window parameter allows a parent to be specified for the window |
| 212 // passed in. | 208 // passed in. |
| 213 void Reposition(HWND window, HWND window_insert_after, int left, int top, | 209 void Reposition(HWND window, HWND window_insert_after, int left, int top, |
| 214 int width, int height, int flags, HWND parent_window); | 210 int width, int height, int flags, HWND parent_window); |
| 215 | 211 |
| 216 // Sends the selected context menu command to the chrome instance | 212 // Sends the selected context menu command to the chrome instance |
| 217 void SendContextMenuCommand(int selected_command); | 213 void SendContextMenuCommand(int selected_command); |
| 218 | 214 |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 264 const std::wstring& frame_xpath, | 260 const std::wstring& frame_xpath, |
| 265 const std::wstring& jscript) WARN_UNUSED_RESULT; | 261 const std::wstring& jscript) WARN_UNUSED_RESULT; |
| 266 | 262 |
| 267 private: | 263 private: |
| 268 base::Lock list_lock_; // Protects the observers_list_. | 264 base::Lock list_lock_; // Protects the observers_list_. |
| 269 ObserverList<TabProxyDelegate> observers_list_; | 265 ObserverList<TabProxyDelegate> observers_list_; |
| 270 DISALLOW_COPY_AND_ASSIGN(TabProxy); | 266 DISALLOW_COPY_AND_ASSIGN(TabProxy); |
| 271 }; | 267 }; |
| 272 | 268 |
| 273 #endif // CHROME_TEST_AUTOMATION_TAB_PROXY_H_ | 269 #endif // CHROME_TEST_AUTOMATION_TAB_PROXY_H_ |
| OLD | NEW |