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

Side by Side Diff: ash/test/ash_test_base.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/shell_init_params.cc ('k') | ash/test/ash_test_base.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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_BASE_H_ 5 #ifndef ASH_TEST_ASH_TEST_BASE_H_
6 #define ASH_TEST_ASH_TEST_BASE_H_ 6 #define ASH_TEST_ASH_TEST_BASE_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
(...skipping 15 matching lines...) Expand all
26 namespace aura { 26 namespace aura {
27 class RootWindow; 27 class RootWindow;
28 class Window; 28 class Window;
29 class WindowDelegate; 29 class WindowDelegate;
30 30
31 namespace test { 31 namespace test {
32 class EventGenerator; 32 class EventGenerator;
33 } // namespace test 33 } // namespace test
34 } // namespace aura 34 } // namespace aura
35 35
36 namespace ui {
37 class ContextFactory;
38 }
39
36 namespace ash { 40 namespace ash {
37 class DisplayManager; 41 class DisplayManager;
38 42
39 namespace test { 43 namespace test {
40 44
41 class AshTestHelper; 45 class AshTestHelper;
42 class TestScreenshotDelegate; 46 class TestScreenshotDelegate;
43 class TestSystemTrayDelegate; 47 class TestSystemTrayDelegate;
44 #if defined(OS_WIN) 48 #if defined(OS_WIN)
45 class TestMetroViewerProcessHost; 49 class TestMetroViewerProcessHost;
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 const gfx::Rect& bounds); 85 const gfx::Rect& bounds);
82 86
83 // Attach |window| to the current shell's root window. 87 // Attach |window| to the current shell's root window.
84 void ParentWindowInPrimaryRootWindow(aura::Window* window); 88 void ParentWindowInPrimaryRootWindow(aura::Window* window);
85 89
86 // Returns the EventGenerator that uses screen coordinates and works 90 // Returns the EventGenerator that uses screen coordinates and works
87 // across multiple displays. It createse a new generator if it 91 // across multiple displays. It createse a new generator if it
88 // hasn't been created yet. 92 // hasn't been created yet.
89 aura::test::EventGenerator& GetEventGenerator(); 93 aura::test::EventGenerator& GetEventGenerator();
90 94
95 ui::ContextFactory* context_factory();
96
91 protected: 97 protected:
92 enum UserSessionBlockReason { 98 enum UserSessionBlockReason {
93 FIRST_BLOCK_REASON, 99 FIRST_BLOCK_REASON,
94 BLOCKED_BY_LOCK_SCREEN = FIRST_BLOCK_REASON, 100 BLOCKED_BY_LOCK_SCREEN = FIRST_BLOCK_REASON,
95 BLOCKED_BY_LOGIN_SCREEN, 101 BLOCKED_BY_LOGIN_SCREEN,
96 BLOCKED_BY_USER_ADDING_SCREEN, 102 BLOCKED_BY_USER_ADDING_SCREEN,
97 NUMBER_OF_BLOCK_REASONS 103 NUMBER_OF_BLOCK_REASONS
98 }; 104 };
99 105
100 // Proxy to AshTestHelper::SupportsMultipleDisplays(). 106 // Proxy to AshTestHelper::SupportsMultipleDisplays().
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
152 virtual ~NoSessionAshTestBase() {} 158 virtual ~NoSessionAshTestBase() {}
153 159
154 private: 160 private:
155 DISALLOW_COPY_AND_ASSIGN(NoSessionAshTestBase); 161 DISALLOW_COPY_AND_ASSIGN(NoSessionAshTestBase);
156 }; 162 };
157 163
158 } // namespace test 164 } // namespace test
159 } // namespace ash 165 } // namespace ash
160 166
161 #endif // ASH_TEST_ASH_TEST_BASE_H_ 167 #endif // ASH_TEST_ASH_TEST_BASE_H_
OLDNEW
« no previous file with comments | « ash/shell_init_params.cc ('k') | ash/test/ash_test_base.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698