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

Side by Side Diff: trunk/src/ash/test/ash_test_helper.h

Issue 286753002: Revert 270290 "Reduce creation of ViewsDelegate" (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 6 years, 7 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 | Annotate | Revision Log
« no previous file with comments | « trunk/src/ash/test/ash_test_base.cc ('k') | trunk/src/ash/test/ash_test_helper.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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 ASH_TEST_ASH_TEST_HELPER_H_ 5 #ifndef ASH_TEST_ASH_TEST_HELPER_H_
6 #define ASH_TEST_ASH_TEST_HELPER_H_ 6 #define ASH_TEST_ASH_TEST_HELPER_H_
7 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 10
11 namespace aura { 11 namespace aura {
12 class Window; 12 class Window;
13 } // namespace aura 13 } // namespace aura
14 14
15 namespace base { 15 namespace base {
16 class MessageLoopForUI; 16 class MessageLoopForUI;
17 } // namespace base 17 } // namespace base
18 18
19 namespace ui { 19 namespace ui {
20 class ScopedAnimationDurationScaleMode; 20 class ScopedAnimationDurationScaleMode;
21 } // namespace ui 21 } // namespace ui
22 22
23 namespace views { 23 namespace wm {
24 class ViewsDelegate; 24 class WMState;
25 } 25 }
26 26
27 namespace ash { 27 namespace ash {
28 namespace test { 28 namespace test {
29 29
30 class TestScreenshotDelegate; 30 class TestScreenshotDelegate;
31 class TestShellDelegate; 31 class TestShellDelegate;
32 32
33 // A helper class that does common initialization required for Ash. Creates a 33 // A helper class that does common initialization required for Ash. Creates a
34 // root window and an ash::Shell instance with a test delegate. 34 // root window and an ash::Shell instance with a test delegate.
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 static bool SupportsHostWindowResize(); 70 static bool SupportsHostWindowResize();
71 71
72 private: 72 private:
73 base::MessageLoopForUI* message_loop_; // Not owned. 73 base::MessageLoopForUI* message_loop_; // Not owned.
74 TestShellDelegate* test_shell_delegate_; // Owned by ash::Shell. 74 TestShellDelegate* test_shell_delegate_; // Owned by ash::Shell.
75 scoped_ptr<ui::ScopedAnimationDurationScaleMode> zero_duration_mode_; 75 scoped_ptr<ui::ScopedAnimationDurationScaleMode> zero_duration_mode_;
76 76
77 // Owned by ash::AcceleratorController 77 // Owned by ash::AcceleratorController
78 TestScreenshotDelegate* test_screenshot_delegate_; 78 TestScreenshotDelegate* test_screenshot_delegate_;
79 79
80 scoped_ptr<views::ViewsDelegate> views_delegate_; 80 scoped_ptr<wm::WMState> wm_state_;
81 81
82 // Check if DBus Thread Manager was initialized here. 82 // Check if DBus Thread Manager was initialized here.
83 bool dbus_thread_manager_initialized_; 83 bool dbus_thread_manager_initialized_;
84 84
85 DISALLOW_COPY_AND_ASSIGN(AshTestHelper); 85 DISALLOW_COPY_AND_ASSIGN(AshTestHelper);
86 }; 86 };
87 87
88 } // namespace test 88 } // namespace test
89 } // namespace ash 89 } // namespace ash
90 90
91 #endif // ASH_TEST_ASH_TEST_HELPER_H_ 91 #endif // ASH_TEST_ASH_TEST_HELPER_H_
OLDNEW
« no previous file with comments | « trunk/src/ash/test/ash_test_base.cc ('k') | trunk/src/ash/test/ash_test_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698