| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 COMPONENTS_TEST_RUNNER_TEST_INTERFACES_H_ | 5 #ifndef COMPONENTS_TEST_RUNNER_TEST_INTERFACES_H_ |
| 6 #define COMPONENTS_TEST_RUNNER_TEST_INTERFACES_H_ | 6 #define COMPONENTS_TEST_RUNNER_TEST_INTERFACES_H_ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| 11 #include "base/memory/scoped_ptr.h" | 11 #include "base/memory/scoped_ptr.h" |
| 12 #include "base/memory/weak_ptr.h" | 12 #include "base/memory/weak_ptr.h" |
| 13 #include "components/test_runner/mock_web_theme_engine.h" | 13 #include "components/test_runner/mock_web_theme_engine.h" |
| 14 #include "third_party/WebKit/public/platform/WebNonCopyable.h" | 14 #include "third_party/WebKit/public/platform/WebNonCopyable.h" |
| 15 | 15 |
| 16 namespace blink { | 16 namespace blink { |
| 17 class WebFrame; | 17 class WebFrame; |
| 18 class WebThemeEngine; | 18 class WebThemeEngine; |
| 19 class WebURL; | 19 class WebURL; |
| 20 class WebView; | 20 class WebView; |
| 21 } | 21 } |
| 22 | 22 |
| 23 namespace test_runner { | 23 namespace test_runner { |
| 24 | 24 |
| 25 class AccessibilityController; | 25 class AccessibilityController; |
| 26 class AppBannerClient; | 26 class AppBannerClient; |
| 27 class GamepadController; | 27 class GamepadController; |
| 28 class TestRunner; | 28 class TestRunner; |
| 29 class TextInputController; | |
| 30 class WebTestDelegate; | 29 class WebTestDelegate; |
| 31 class WebTestProxyBase; | 30 class WebTestProxyBase; |
| 32 | 31 |
| 33 class TestInterfaces { | 32 class TestInterfaces { |
| 34 public: | 33 public: |
| 35 TestInterfaces(); | 34 TestInterfaces(); |
| 36 ~TestInterfaces(); | 35 ~TestInterfaces(); |
| 37 | 36 |
| 38 void SetWebView(blink::WebView* web_view, WebTestProxyBase* proxy); | 37 void SetWebView(blink::WebView* web_view, WebTestProxyBase* proxy); |
| 39 void SetDelegate(WebTestDelegate* delegate); | 38 void SetDelegate(WebTestDelegate* delegate); |
| (...skipping 11 matching lines...) Expand all Loading... |
| 51 AccessibilityController* GetAccessibilityController(); | 50 AccessibilityController* GetAccessibilityController(); |
| 52 TestRunner* GetTestRunner(); | 51 TestRunner* GetTestRunner(); |
| 53 WebTestDelegate* GetDelegate(); | 52 WebTestDelegate* GetDelegate(); |
| 54 const std::vector<WebTestProxyBase*>& GetWindowList(); | 53 const std::vector<WebTestProxyBase*>& GetWindowList(); |
| 55 blink::WebThemeEngine* GetThemeEngine(); | 54 blink::WebThemeEngine* GetThemeEngine(); |
| 56 AppBannerClient* GetAppBannerClient(); | 55 AppBannerClient* GetAppBannerClient(); |
| 57 | 56 |
| 58 private: | 57 private: |
| 59 scoped_ptr<AccessibilityController> accessibility_controller_; | 58 scoped_ptr<AccessibilityController> accessibility_controller_; |
| 60 base::WeakPtr<GamepadController> gamepad_controller_; | 59 base::WeakPtr<GamepadController> gamepad_controller_; |
| 61 scoped_ptr<TextInputController> text_input_controller_; | |
| 62 scoped_ptr<TestRunner> test_runner_; | 60 scoped_ptr<TestRunner> test_runner_; |
| 63 WebTestDelegate* delegate_; | 61 WebTestDelegate* delegate_; |
| 64 AppBannerClient* app_banner_client_; | 62 AppBannerClient* app_banner_client_; |
| 65 | 63 |
| 66 std::vector<WebTestProxyBase*> window_list_; | 64 std::vector<WebTestProxyBase*> window_list_; |
| 67 scoped_ptr<MockWebThemeEngine> theme_engine_; | 65 scoped_ptr<MockWebThemeEngine> theme_engine_; |
| 68 | 66 |
| 69 DISALLOW_COPY_AND_ASSIGN(TestInterfaces); | 67 DISALLOW_COPY_AND_ASSIGN(TestInterfaces); |
| 70 }; | 68 }; |
| 71 | 69 |
| 72 } // namespace test_runner | 70 } // namespace test_runner |
| 73 | 71 |
| 74 #endif // COMPONENTS_TEST_RUNNER_TEST_INTERFACES_H_ | 72 #endif // COMPONENTS_TEST_RUNNER_TEST_INTERFACES_H_ |
| OLD | NEW |