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

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

Issue 215293003: Move all wallpaper file loading and decoding from DesktopBackgroundController to WallpaperManager. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update after review. Created 6 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
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 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 const gfx::Rect& bounds); 86 const gfx::Rect& bounds);
87 87
88 // Attach |window| to the current shell's root window. 88 // Attach |window| to the current shell's root window.
89 void ParentWindowInPrimaryRootWindow(aura::Window* window); 89 void ParentWindowInPrimaryRootWindow(aura::Window* window);
90 90
91 // Returns the EventGenerator that uses screen coordinates and works 91 // Returns the EventGenerator that uses screen coordinates and works
92 // across multiple displays. It createse a new generator if it 92 // across multiple displays. It createse a new generator if it
93 // hasn't been created yet. 93 // hasn't been created yet.
94 aura::test::EventGenerator& GetEventGenerator(); 94 aura::test::EventGenerator& GetEventGenerator();
95 95
96 // True if the running environment supports multiple displays,
97 // or false otherwise (e.g. win8 bot).
98 static bool SupportsMultipleDisplays();
99
100 // True if the running environment supports host window resize,
101 // or false otherwise (e.g. win8 bot).
102 static bool SupportsHostWindowResize();
103
96 protected: 104 protected:
97 enum UserSessionBlockReason { 105 enum UserSessionBlockReason {
98 FIRST_BLOCK_REASON, 106 FIRST_BLOCK_REASON,
99 BLOCKED_BY_LOCK_SCREEN = FIRST_BLOCK_REASON, 107 BLOCKED_BY_LOCK_SCREEN = FIRST_BLOCK_REASON,
100 BLOCKED_BY_LOGIN_SCREEN, 108 BLOCKED_BY_LOGIN_SCREEN,
101 BLOCKED_BY_USER_ADDING_SCREEN, 109 BLOCKED_BY_USER_ADDING_SCREEN,
102 NUMBER_OF_BLOCK_REASONS 110 NUMBER_OF_BLOCK_REASONS
103 }; 111 };
104 112
105 // True if the running environment supports multiple displays,
106 // or false otherwise (e.g. win8 bot).
107 static bool SupportsMultipleDisplays();
108
109 // True if the running environment supports host window resize,
110 // or false otherwise (e.g. win8 bot).
111 static bool SupportsHostWindowResize();
oshima 2014/04/07 17:16:11 Would you mind moving the body of this method to A
Alexander Alekseev 2014/04/08 13:18:49 Done.
112
113 void set_start_session(bool start_session) { start_session_ = start_session; } 113 void set_start_session(bool start_session) { start_session_ = start_session; }
114 114
115 AshTestHelper* ash_test_helper() { return ash_test_helper_.get(); } 115 AshTestHelper* ash_test_helper() { return ash_test_helper_.get(); }
116 116
117 void RunAllPendingInMessageLoop(); 117 void RunAllPendingInMessageLoop();
118 118
119 TestScreenshotDelegate* GetScreenshotDelegate(); 119 TestScreenshotDelegate* GetScreenshotDelegate();
120 TestSystemTrayDelegate* GetSystemTrayDelegate(); 120 TestSystemTrayDelegate* GetSystemTrayDelegate();
121 121
122 // Utility methods to emulate user logged in or not, session started or not 122 // Utility methods to emulate user logged in or not, session started or not
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
159 virtual ~NoSessionAshTestBase() {} 159 virtual ~NoSessionAshTestBase() {}
160 160
161 private: 161 private:
162 DISALLOW_COPY_AND_ASSIGN(NoSessionAshTestBase); 162 DISALLOW_COPY_AND_ASSIGN(NoSessionAshTestBase);
163 }; 163 };
164 164
165 } // namespace test 165 } // namespace test
166 } // namespace ash 166 } // namespace ash
167 167
168 #endif // ASH_TEST_ASH_TEST_BASE_H_ 168 #endif // ASH_TEST_ASH_TEST_BASE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698