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

Side by Side Diff: ash/test/test_shell_delegate.cc

Issue 11360045: ash: Add RootWindowHostFactory class. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove unnecessary braces and add missing windows_version.h include. Created 8 years 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/test_shell_delegate.h ('k') | chrome/browser/ui/ash/chrome_shell_delegate.h » ('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 #include "ash/test/test_shell_delegate.h" 5 #include "ash/test/test_shell_delegate.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 8
9 #include "ash/caps_lock_delegate_stub.h" 9 #include "ash/caps_lock_delegate_stub.h"
10 #include "ash/host/root_window_host_factory.h"
10 #include "ash/shell.h" 11 #include "ash/shell.h"
11 #include "ash/shell_window_ids.h" 12 #include "ash/shell_window_ids.h"
12 #include "ash/test/test_launcher_delegate.h" 13 #include "ash/test/test_launcher_delegate.h"
13 #include "ash/wm/stacking_controller.h" 14 #include "ash/wm/stacking_controller.h"
14 #include "ash/wm/window_util.h" 15 #include "ash/wm/window_util.h"
15 #include "content/public/test/test_browser_context.h" 16 #include "content/public/test/test_browser_context.h"
16 #include "ui/aura/window.h" 17 #include "ui/aura/window.h"
17 18
18 namespace ash { 19 namespace ash {
19 namespace test { 20 namespace test {
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after
195 } 196 }
196 197
197 aura::client::StackingClient* TestShellDelegate::CreateStackingClient() { 198 aura::client::StackingClient* TestShellDelegate::CreateStackingClient() {
198 return new StackingController; 199 return new StackingController;
199 } 200 }
200 201
201 bool TestShellDelegate::IsSearchKeyActingAsFunctionKey() const { 202 bool TestShellDelegate::IsSearchKeyActingAsFunctionKey() const {
202 return is_search_key_acting_as_function_key_; 203 return is_search_key_acting_as_function_key_;
203 } 204 }
204 205
206 RootWindowHostFactory* TestShellDelegate::CreateRootWindowHostFactory() {
207 return RootWindowHostFactory::Create();
208 }
209
205 void TestShellDelegate::SetSessionStarted(bool session_started) { 210 void TestShellDelegate::SetSessionStarted(bool session_started) {
206 session_started_ = session_started; 211 session_started_ = session_started;
207 if (session_started) 212 if (session_started)
208 user_logged_in_ = true; 213 user_logged_in_ = true;
209 } 214 }
210 215
211 void TestShellDelegate::SetUserLoggedIn(bool user_logged_in) { 216 void TestShellDelegate::SetUserLoggedIn(bool user_logged_in) {
212 user_logged_in_ = user_logged_in; 217 user_logged_in_ = user_logged_in;
213 if (!user_logged_in) 218 if (!user_logged_in)
214 session_started_ = false; 219 session_started_ = false;
215 } 220 }
216 221
217 void TestShellDelegate::SetCanLockScreen(bool can_lock_screen) { 222 void TestShellDelegate::SetCanLockScreen(bool can_lock_screen) {
218 can_lock_screen_ = can_lock_screen; 223 can_lock_screen_ = can_lock_screen;
219 } 224 }
220 225
221 } // namespace test 226 } // namespace test
222 } // namespace ash 227 } // namespace ash
OLDNEW
« no previous file with comments | « ash/test/test_shell_delegate.h ('k') | chrome/browser/ui/ash/chrome_shell_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698