Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(50)

Side by Side Diff: components/test_runner/test_interfaces.h

Issue 1896413003: Use correct WebView from TextInputController. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@event-sender-per-view
Patch Set: Rebasing... Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | components/test_runner/test_interfaces.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « no previous file | components/test_runner/test_interfaces.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698