OLD | NEW |
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/shell.h" | 10 #include "ash/shell.h" |
11 #include "ash/shell_window_ids.h" | 11 #include "ash/shell_window_ids.h" |
12 #include "ash/test/test_launcher_delegate.h" | 12 #include "ash/test/test_launcher_delegate.h" |
| 13 #include "ash/wm/stacking_controller.h" |
13 #include "ash/wm/window_util.h" | 14 #include "ash/wm/window_util.h" |
14 #include "content/public/test/test_browser_context.h" | 15 #include "content/public/test/test_browser_context.h" |
15 #include "ui/aura/window.h" | 16 #include "ui/aura/window.h" |
16 | 17 |
17 namespace ash { | 18 namespace ash { |
18 namespace test { | 19 namespace test { |
19 | 20 |
20 TestShellDelegate::TestShellDelegate() | 21 TestShellDelegate::TestShellDelegate() |
21 : locked_(false), | 22 : locked_(false), |
22 session_started_(true), | 23 session_started_(true), |
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
154 } | 155 } |
155 | 156 |
156 ui::MenuModel* TestShellDelegate::CreateContextMenu(aura::RootWindow* root) { | 157 ui::MenuModel* TestShellDelegate::CreateContextMenu(aura::RootWindow* root) { |
157 return NULL; | 158 return NULL; |
158 } | 159 } |
159 | 160 |
160 double TestShellDelegate::GetSavedScreenMagnifierScale() { | 161 double TestShellDelegate::GetSavedScreenMagnifierScale() { |
161 return std::numeric_limits<double>::min(); | 162 return std::numeric_limits<double>::min(); |
162 } | 163 } |
163 | 164 |
| 165 aura::client::StackingClient* TestShellDelegate::CreateStackingClient() { |
| 166 return new StackingController; |
| 167 } |
| 168 |
164 void TestShellDelegate::SetSessionStarted(bool session_started) { | 169 void TestShellDelegate::SetSessionStarted(bool session_started) { |
165 session_started_ = session_started; | 170 session_started_ = session_started; |
166 if (session_started) | 171 if (session_started) |
167 user_logged_in_ = true; | 172 user_logged_in_ = true; |
168 } | 173 } |
169 | 174 |
170 void TestShellDelegate::SetUserLoggedIn(bool user_logged_in) { | 175 void TestShellDelegate::SetUserLoggedIn(bool user_logged_in) { |
171 user_logged_in_ = user_logged_in; | 176 user_logged_in_ = user_logged_in; |
172 if (!user_logged_in) | 177 if (!user_logged_in) |
173 session_started_ = false; | 178 session_started_ = false; |
174 } | 179 } |
175 | 180 |
176 } // namespace test | 181 } // namespace test |
177 } // namespace ash | 182 } // namespace ash |
OLD | NEW |