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

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

Issue 273073002: Changes code using Compositor to pass in ContextFactory (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix tooltip on chromeos 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 | « ash/test/ash_test_base.cc ('k') | 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 ContextFactory;
20 class ScopedAnimationDurationScaleMode; 21 class ScopedAnimationDurationScaleMode;
21 } // namespace ui 22 } // namespace ui
22 23
23 namespace views { 24 namespace views {
24 class ViewsDelegate; 25 class ViewsDelegate;
25 } 26 }
26 27
27 namespace ash { 28 namespace ash {
28 namespace test { 29 namespace test {
29 30
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 } 63 }
63 64
64 // True if the running environment supports multiple displays, 65 // True if the running environment supports multiple displays,
65 // or false otherwise (e.g. win8 bot). 66 // or false otherwise (e.g. win8 bot).
66 static bool SupportsMultipleDisplays(); 67 static bool SupportsMultipleDisplays();
67 68
68 // True if the running environment supports host window resize, 69 // True if the running environment supports host window resize,
69 // or false otherwise (e.g. win8 bot). 70 // or false otherwise (e.g. win8 bot).
70 static bool SupportsHostWindowResize(); 71 static bool SupportsHostWindowResize();
71 72
73 ui::ContextFactory* context_factory() { return context_factory_; }
74
72 private: 75 private:
76 ui::ContextFactory* context_factory_;
73 base::MessageLoopForUI* message_loop_; // Not owned. 77 base::MessageLoopForUI* message_loop_; // Not owned.
74 TestShellDelegate* test_shell_delegate_; // Owned by ash::Shell. 78 TestShellDelegate* test_shell_delegate_; // Owned by ash::Shell.
75 scoped_ptr<ui::ScopedAnimationDurationScaleMode> zero_duration_mode_; 79 scoped_ptr<ui::ScopedAnimationDurationScaleMode> zero_duration_mode_;
76 80
77 // Owned by ash::AcceleratorController 81 // Owned by ash::AcceleratorController
78 TestScreenshotDelegate* test_screenshot_delegate_; 82 TestScreenshotDelegate* test_screenshot_delegate_;
79 83
80 scoped_ptr<views::ViewsDelegate> views_delegate_; 84 scoped_ptr<views::ViewsDelegate> views_delegate_;
81 85
82 // Check if DBus Thread Manager was initialized here. 86 // Check if DBus Thread Manager was initialized here.
83 bool dbus_thread_manager_initialized_; 87 bool dbus_thread_manager_initialized_;
84 88
85 DISALLOW_COPY_AND_ASSIGN(AshTestHelper); 89 DISALLOW_COPY_AND_ASSIGN(AshTestHelper);
86 }; 90 };
87 91
88 } // namespace test 92 } // namespace test
89 } // namespace ash 93 } // namespace ash
90 94
91 #endif // ASH_TEST_ASH_TEST_HELPER_H_ 95 #endif // ASH_TEST_ASH_TEST_HELPER_H_
OLDNEW
« no previous file with comments | « ash/test/ash_test_base.cc ('k') | ash/test/ash_test_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698