OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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" | 8 #include "build/build_config.h" |
9 | 9 |
10 #if defined(OS_WIN) | 10 #if defined(OS_WIN) |
(...skipping 286 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
297 // The purpose of this function is for operations that causes asynchronous | 297 // The purpose of this function is for operations that causes asynchronous |
298 // navigation to happen. | 298 // navigation to happen. |
299 // It is supposed to be used as follow: | 299 // It is supposed to be used as follow: |
300 // int64 last_nav_time; | 300 // int64 last_nav_time; |
301 // tab_proxy->GetLastNavigationTime(&last_nav_time); | 301 // tab_proxy->GetLastNavigationTime(&last_nav_time); |
302 // tab_proxy->SomeOperationThatTriggersAnAsynchronousNavigation(); | 302 // tab_proxy->SomeOperationThatTriggersAnAsynchronousNavigation(); |
303 // tab_proxy->WaitForNavigation(last_nav_time); | 303 // tab_proxy->WaitForNavigation(last_nav_time); |
304 bool WaitForNavigation(int64 last_navigation_time); | 304 bool WaitForNavigation(int64 last_navigation_time); |
305 | 305 |
306 // Gets the current used encoding of the page in the tab. | 306 // Gets the current used encoding of the page in the tab. |
307 bool GetPageCurrentEncoding(std::wstring* encoding); | 307 bool GetPageCurrentEncoding(std::string* encoding); |
308 | 308 |
309 // Uses the specified encoding to override encoding of the page in the tab. | 309 // Uses the specified encoding to override encoding of the page in the tab. |
310 bool OverrideEncoding(const std::wstring& encoding); | 310 bool OverrideEncoding(const std::string& encoding); |
311 | 311 |
312 #if defined(OS_WIN) | 312 #if defined(OS_WIN) |
313 // Resizes the tab window. | 313 // Resizes the tab window. |
314 // The parent_window parameter allows a parent to be specified for the window | 314 // The parent_window parameter allows a parent to be specified for the window |
315 // passed in. | 315 // passed in. |
316 void Reposition(HWND window, HWND window_insert_after, int left, int top, | 316 void Reposition(HWND window, HWND window_insert_after, int left, int top, |
317 int width, int height, int flags, HWND parent_window); | 317 int width, int height, int flags, HWND parent_window); |
318 | 318 |
319 // Sends the selected context menu command to the chrome instance | 319 // Sends the selected context menu command to the chrome instance |
320 void SendContextMenuCommand(int selected_command); | 320 void SendContextMenuCommand(int selected_command); |
(...skipping 19 matching lines...) Expand all Loading... |
340 void OnMessageReceived(const IPC::Message& message); | 340 void OnMessageReceived(const IPC::Message& message); |
341 protected: | 341 protected: |
342 virtual ~TabProxy() {} | 342 virtual ~TabProxy() {} |
343 private: | 343 private: |
344 Lock list_lock_; // Protects the observers_list_. | 344 Lock list_lock_; // Protects the observers_list_. |
345 ObserverList<TabProxyDelegate> observers_list_; | 345 ObserverList<TabProxyDelegate> observers_list_; |
346 DISALLOW_COPY_AND_ASSIGN(TabProxy); | 346 DISALLOW_COPY_AND_ASSIGN(TabProxy); |
347 }; | 347 }; |
348 | 348 |
349 #endif // CHROME_TEST_AUTOMATION_TAB_PROXY_H_ | 349 #endif // CHROME_TEST_AUTOMATION_TAB_PROXY_H_ |
OLD | NEW |