| OLD | NEW |
| 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_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 16 matching lines...) Expand all Loading... |
| 27 #include "content/common/security_style.h" | 27 #include "content/common/security_style.h" |
| 28 #include "webkit/glue/window_open_disposition.h" | 28 #include "webkit/glue/window_open_disposition.h" |
| 29 | 29 |
| 30 class BrowserProxy; | 30 class BrowserProxy; |
| 31 class GURL; | 31 class GURL; |
| 32 class Value; | 32 class Value; |
| 33 namespace IPC { | 33 namespace IPC { |
| 34 class Message; | 34 class Message; |
| 35 } | 35 } |
| 36 | 36 |
| 37 enum FindInPageDirection { BACK = 0, FWD = 1 }; | |
| 38 enum FindInPageCase { IGNORE_CASE = 0, CASE_SENSITIVE = 1 }; | |
| 39 // Specifies the font size on a page which is requested by an automation | |
| 40 // client. | |
| 41 enum AutomationPageFontSize { | |
| 42 SMALLEST_FONT = 8, | |
| 43 SMALL_FONT = 12, | |
| 44 MEDIUM_FONT = 16, | |
| 45 LARGE_FONT = 24, | |
| 46 LARGEST_FONT = 36 | |
| 47 }; | |
| 48 | |
| 49 class TabProxy : public AutomationResourceProxy, | 37 class TabProxy : public AutomationResourceProxy, |
| 50 public JavaScriptExecutionController { | 38 public JavaScriptExecutionController { |
| 51 public: | 39 public: |
| 52 class TabProxyDelegate { | 40 class TabProxyDelegate { |
| 53 public: | 41 public: |
| 54 virtual bool OnMessageReceived(TabProxy* tab, const IPC::Message& msg) { | 42 virtual bool OnMessageReceived(TabProxy* tab, const IPC::Message& msg) { |
| 55 return false; | 43 return false; |
| 56 } | 44 } |
| 57 virtual void OnChannelError(TabProxy* tab) {} | 45 virtual void OnChannelError(TabProxy* tab) {} |
| 58 | 46 |
| (...skipping 354 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 413 // purposes. | 401 // purposes. |
| 414 void LastObjectRemoved(); | 402 void LastObjectRemoved(); |
| 415 | 403 |
| 416 private: | 404 private: |
| 417 base::Lock list_lock_; // Protects the observers_list_. | 405 base::Lock list_lock_; // Protects the observers_list_. |
| 418 ObserverList<TabProxyDelegate> observers_list_; | 406 ObserverList<TabProxyDelegate> observers_list_; |
| 419 DISALLOW_COPY_AND_ASSIGN(TabProxy); | 407 DISALLOW_COPY_AND_ASSIGN(TabProxy); |
| 420 }; | 408 }; |
| 421 | 409 |
| 422 #endif // CHROME_TEST_AUTOMATION_TAB_PROXY_H_ | 410 #endif // CHROME_TEST_AUTOMATION_TAB_PROXY_H_ |
| OLD | NEW |