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/shell/shell_delegate_impl.h" | 5 #include "ash/shell/shell_delegate_impl.h" |
6 | 6 |
| 7 #include <limits> |
| 8 |
7 #include "ash/caps_lock_delegate_stub.h" | 9 #include "ash/caps_lock_delegate_stub.h" |
8 #include "ash/host/root_window_host_factory.h" | 10 #include "ash/host/root_window_host_factory.h" |
| 11 #include "ash/shell/context_menu.h" |
9 #include "ash/shell/example_factory.h" | 12 #include "ash/shell/example_factory.h" |
10 #include "ash/shell/launcher_delegate_impl.h" | 13 #include "ash/shell/launcher_delegate_impl.h" |
11 #include "ash/shell/context_menu.h" | |
12 #include "ash/shell/toplevel_window.h" | 14 #include "ash/shell/toplevel_window.h" |
13 #include "ash/shell_window_ids.h" | 15 #include "ash/shell_window_ids.h" |
14 #include "ash/wm/window_util.h" | 16 #include "ash/wm/window_util.h" |
15 #include "base/message_loop.h" | 17 #include "base/message_loop.h" |
16 #include "ui/aura/window.h" | 18 #include "ui/aura/window.h" |
17 | 19 |
18 namespace ash { | 20 namespace ash { |
19 namespace shell { | 21 namespace shell { |
20 | 22 |
21 ShellDelegateImpl::ShellDelegateImpl() | 23 ShellDelegateImpl::ShellDelegateImpl() |
(...skipping 20 matching lines...) Expand all Loading... |
42 } | 44 } |
43 | 45 |
44 bool ShellDelegateImpl::IsSessionStarted() const { | 46 bool ShellDelegateImpl::IsSessionStarted() const { |
45 return true; | 47 return true; |
46 } | 48 } |
47 | 49 |
48 bool ShellDelegateImpl::IsFirstRunAfterBoot() const { | 50 bool ShellDelegateImpl::IsFirstRunAfterBoot() const { |
49 return false; | 51 return false; |
50 } | 52 } |
51 | 53 |
| 54 bool ShellDelegateImpl::IsRunningInForcedAppMode() const { |
| 55 return false; |
| 56 } |
| 57 |
52 bool ShellDelegateImpl::CanLockScreen() const { | 58 bool ShellDelegateImpl::CanLockScreen() const { |
53 return true; | 59 return true; |
54 } | 60 } |
55 | 61 |
56 void ShellDelegateImpl::LockScreen() { | 62 void ShellDelegateImpl::LockScreen() { |
57 ash::shell::CreateLockScreen(); | 63 ash::shell::CreateLockScreen(); |
58 locked_ = true; | 64 locked_ = true; |
59 ash::Shell::GetInstance()->UpdateShelfVisibility(); | 65 ash::Shell::GetInstance()->UpdateShelfVisibility(); |
60 } | 66 } |
61 | 67 |
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
217 RootWindowHostFactory* ShellDelegateImpl::CreateRootWindowHostFactory() { | 223 RootWindowHostFactory* ShellDelegateImpl::CreateRootWindowHostFactory() { |
218 return RootWindowHostFactory::Create(); | 224 return RootWindowHostFactory::Create(); |
219 } | 225 } |
220 | 226 |
221 string16 ShellDelegateImpl::GetProductName() const { | 227 string16 ShellDelegateImpl::GetProductName() const { |
222 return string16(); | 228 return string16(); |
223 } | 229 } |
224 | 230 |
225 } // namespace shell | 231 } // namespace shell |
226 } // namespace ash | 232 } // namespace ash |
OLD | NEW |