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

Side by Side Diff: content/shell/renderer/test_runner/test_interfaces.h

Issue 446603002: Refactor code listening to platform events in content/renderer/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@webkitplatform_impl_start_stop
Patch Set: rebase Created 6 years, 4 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
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 CONTENT_SHELL_RENDERER_TEST_RUNNER_TEST_INTERFACES_H_ 5 #ifndef CONTENT_SHELL_RENDERER_TEST_RUNNER_TEST_INTERFACES_H_
6 #define CONTENT_SHELL_RENDERER_TEST_RUNNER_TEST_INTERFACES_H_ 6 #define CONTENT_SHELL_RENDERER_TEST_RUNNER_TEST_INTERFACES_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
11 #include "base/memory/scoped_ptr.h" 11 #include "base/memory/scoped_ptr.h"
12 #include "base/memory/weak_ptr.h"
12 #include "third_party/WebKit/public/platform/WebNonCopyable.h" 13 #include "third_party/WebKit/public/platform/WebNonCopyable.h"
13 14
14 #if defined(OS_MACOSX) 15 #if defined(OS_MACOSX)
15 #include "content/shell/renderer/test_runner/mock_web_theme_engine_mac.h" 16 #include "content/shell/renderer/test_runner/mock_web_theme_engine_mac.h"
16 #else 17 #else
17 #include "content/shell/renderer/test_runner/mock_web_theme_engine.h" 18 #include "content/shell/renderer/test_runner/mock_web_theme_engine.h"
18 #endif 19 #endif
19 20
20 namespace blink { 21 namespace blink {
21 class WebFrame; 22 class WebFrame;
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 EventSender* GetEventSender(); 56 EventSender* GetEventSender();
56 TestRunner* GetTestRunner(); 57 TestRunner* GetTestRunner();
57 WebTestDelegate* GetDelegate(); 58 WebTestDelegate* GetDelegate();
58 WebTestProxyBase* GetProxy(); 59 WebTestProxyBase* GetProxy();
59 const std::vector<WebTestProxyBase*>& GetWindowList(); 60 const std::vector<WebTestProxyBase*>& GetWindowList();
60 blink::WebThemeEngine* GetThemeEngine(); 61 blink::WebThemeEngine* GetThemeEngine();
61 62
62 private: 63 private:
63 scoped_ptr<AccessibilityController> accessibility_controller_; 64 scoped_ptr<AccessibilityController> accessibility_controller_;
64 scoped_ptr<EventSender> event_sender_; 65 scoped_ptr<EventSender> event_sender_;
65 scoped_ptr<GamepadController> gamepad_controller_; 66 base::WeakPtr<GamepadController> gamepad_controller_;
66 scoped_ptr<TextInputController> text_input_controller_; 67 scoped_ptr<TextInputController> text_input_controller_;
67 scoped_ptr<TestRunner> test_runner_; 68 scoped_ptr<TestRunner> test_runner_;
68 WebTestDelegate* delegate_; 69 WebTestDelegate* delegate_;
69 WebTestProxyBase* proxy_; 70 WebTestProxyBase* proxy_;
70 71
71 std::vector<WebTestProxyBase*> window_list_; 72 std::vector<WebTestProxyBase*> window_list_;
72 #if defined(OS_MACOSX) 73 #if defined(OS_MACOSX)
73 scoped_ptr<MockWebThemeEngineMac> theme_engine_; 74 scoped_ptr<MockWebThemeEngineMac> theme_engine_;
74 #else 75 #else
75 scoped_ptr<MockWebThemeEngine> theme_engine_; 76 scoped_ptr<MockWebThemeEngine> theme_engine_;
76 #endif 77 #endif
77 78
78 DISALLOW_COPY_AND_ASSIGN(TestInterfaces); 79 DISALLOW_COPY_AND_ASSIGN(TestInterfaces);
79 }; 80 };
80 81
81 } // namespace content 82 } // namespace content
82 83
83 #endif // CONTENT_SHELL_RENDERER_TEST_RUNNER_TEST_INTERFACES_H_ 84 #endif // CONTENT_SHELL_RENDERER_TEST_RUNNER_TEST_INTERFACES_H_
OLDNEW
« no previous file with comments | « content/shell/renderer/test_runner/gamepad_controller.cc ('k') | content/shell/renderer/test_runner/test_interfaces.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698