OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "build/build_config.h" // NOLINT | 9 #include "build/build_config.h" // NOLINT |
10 | 10 |
(...skipping 357 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
368 // tab_proxy->SomeOperationThatTriggersAnAsynchronousNavigation(); | 368 // tab_proxy->SomeOperationThatTriggersAnAsynchronousNavigation(); |
369 // tab_proxy->WaitForNavigation(last_nav_time); | 369 // tab_proxy->WaitForNavigation(last_nav_time); |
370 bool WaitForNavigation(int64 last_navigation_time) WARN_UNUSED_RESULT; | 370 bool WaitForNavigation(int64 last_navigation_time) WARN_UNUSED_RESULT; |
371 | 371 |
372 // Gets the current used encoding of the page in the tab. | 372 // Gets the current used encoding of the page in the tab. |
373 bool GetPageCurrentEncoding(std::string* encoding) WARN_UNUSED_RESULT; | 373 bool GetPageCurrentEncoding(std::string* encoding) WARN_UNUSED_RESULT; |
374 | 374 |
375 // Uses the specified encoding to override encoding of the page in the tab. | 375 // Uses the specified encoding to override encoding of the page in the tab. |
376 bool OverrideEncoding(const std::string& encoding) WARN_UNUSED_RESULT; | 376 bool OverrideEncoding(const std::string& encoding) WARN_UNUSED_RESULT; |
377 | 377 |
| 378 // Loads all blocked plug-ins on the page. |
| 379 bool LoadBlockedPlugins() WARN_UNUSED_RESULT; |
| 380 |
378 #if defined(OS_WIN) | 381 #if defined(OS_WIN) |
379 // Resizes the tab window. | 382 // Resizes the tab window. |
380 // The parent_window parameter allows a parent to be specified for the window | 383 // The parent_window parameter allows a parent to be specified for the window |
381 // passed in. | 384 // passed in. |
382 void Reposition(HWND window, HWND window_insert_after, int left, int top, | 385 void Reposition(HWND window, HWND window_insert_after, int left, int top, |
383 int width, int height, int flags, HWND parent_window); | 386 int width, int height, int flags, HWND parent_window); |
384 | 387 |
385 // Sends the selected context menu command to the chrome instance | 388 // Sends the selected context menu command to the chrome instance |
386 void SendContextMenuCommand(int selected_command); | 389 void SendContextMenuCommand(int selected_command); |
387 | 390 |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
424 // purposes. | 427 // purposes. |
425 void LastObjectRemoved(); | 428 void LastObjectRemoved(); |
426 | 429 |
427 private: | 430 private: |
428 Lock list_lock_; // Protects the observers_list_. | 431 Lock list_lock_; // Protects the observers_list_. |
429 ObserverList<TabProxyDelegate> observers_list_; | 432 ObserverList<TabProxyDelegate> observers_list_; |
430 DISALLOW_COPY_AND_ASSIGN(TabProxy); | 433 DISALLOW_COPY_AND_ASSIGN(TabProxy); |
431 }; | 434 }; |
432 | 435 |
433 #endif // CHROME_TEST_AUTOMATION_TAB_PROXY_H_ | 436 #endif // CHROME_TEST_AUTOMATION_TAB_PROXY_H_ |
OLD | NEW |