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

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

Issue 1896623002: Setting TestRunner's main window from BlinkTestRunner. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@replicate-across-all-renderers
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 <memory> 8 #include <memory>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 15 matching lines...) Expand all
26 class GamepadController; 26 class GamepadController;
27 class TestRunner; 27 class TestRunner;
28 class WebTestDelegate; 28 class WebTestDelegate;
29 class WebTestProxyBase; 29 class WebTestProxyBase;
30 30
31 class TestInterfaces { 31 class TestInterfaces {
32 public: 32 public:
33 TestInterfaces(); 33 TestInterfaces();
34 ~TestInterfaces(); 34 ~TestInterfaces();
35 35
36 void SetWebView(blink::WebView* web_view, WebTestProxyBase* proxy); 36 void SetMainView(blink::WebView* web_view);
37 void SetDelegate(WebTestDelegate* delegate); 37 void SetDelegate(WebTestDelegate* delegate);
38 void BindTo(blink::WebFrame* frame); 38 void BindTo(blink::WebFrame* frame);
39 void ResetTestHelperControllers(); 39 void ResetTestHelperControllers();
40 void ResetAll(); 40 void ResetAll();
41 void SetTestIsRunning(bool running); 41 void SetTestIsRunning(bool running);
42 void ConfigureForTestWithURL(const blink::WebURL& test_url, 42 void ConfigureForTestWithURL(const blink::WebURL& test_url,
43 bool generate_pixels); 43 bool generate_pixels);
44 void SetAppBannerClient(AppBannerClient* app_banner_client); 44 void SetAppBannerClient(AppBannerClient* app_banner_client);
45 45
46 void WindowOpened(WebTestProxyBase* proxy); 46 void WindowOpened(WebTestProxyBase* proxy);
47 void WindowClosed(WebTestProxyBase* proxy); 47 void WindowClosed(WebTestProxyBase* proxy);
48 48
49 TestRunner* GetTestRunner(); 49 TestRunner* GetTestRunner();
50 WebTestDelegate* GetDelegate(); 50 WebTestDelegate* GetDelegate();
51 const std::vector<WebTestProxyBase*>& GetWindowList(); 51 const std::vector<WebTestProxyBase*>& GetWindowList();
52 blink::WebThemeEngine* GetThemeEngine(); 52 blink::WebThemeEngine* GetThemeEngine();
53 AppBannerClient* GetAppBannerClient(); 53 AppBannerClient* GetAppBannerClient();
54 54
55 private: 55 private:
56 base::WeakPtr<GamepadController> gamepad_controller_; 56 base::WeakPtr<GamepadController> gamepad_controller_;
57 std::unique_ptr<TestRunner> test_runner_; 57 std::unique_ptr<TestRunner> test_runner_;
58 WebTestDelegate* delegate_; 58 WebTestDelegate* delegate_;
59 AppBannerClient* app_banner_client_; 59 AppBannerClient* app_banner_client_;
60 60
61 std::vector<WebTestProxyBase*> window_list_; 61 std::vector<WebTestProxyBase*> window_list_;
62 blink::WebView* main_view_;
63
62 std::unique_ptr<MockWebThemeEngine> theme_engine_; 64 std::unique_ptr<MockWebThemeEngine> theme_engine_;
63 65
64 DISALLOW_COPY_AND_ASSIGN(TestInterfaces); 66 DISALLOW_COPY_AND_ASSIGN(TestInterfaces);
65 }; 67 };
66 68
67 } // namespace test_runner 69 } // namespace test_runner
68 70
69 #endif // COMPONENTS_TEST_RUNNER_TEST_INTERFACES_H_ 71 #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