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 "ash/caps_lock_delegate_stub.h" | 7 #include "ash/caps_lock_delegate_stub.h" |
8 #include "ash/shell/example_factory.h" | 8 #include "ash/shell/example_factory.h" |
9 #include "ash/shell/launcher_delegate_impl.h" | 9 #include "ash/shell/launcher_delegate_impl.h" |
10 #include "ash/shell/context_menu.h" | 10 #include "ash/shell/context_menu.h" |
(...skipping 18 matching lines...) Expand all Loading... |
29 | 29 |
30 ShellDelegateImpl::~ShellDelegateImpl() { | 30 ShellDelegateImpl::~ShellDelegateImpl() { |
31 } | 31 } |
32 | 32 |
33 void ShellDelegateImpl::SetWatcher(WindowWatcher* watcher) { | 33 void ShellDelegateImpl::SetWatcher(WindowWatcher* watcher) { |
34 watcher_ = watcher; | 34 watcher_ = watcher; |
35 if (launcher_delegate_) | 35 if (launcher_delegate_) |
36 launcher_delegate_->set_watcher(watcher); | 36 launcher_delegate_->set_watcher(watcher); |
37 } | 37 } |
38 | 38 |
39 bool ShellDelegateImpl::IsUserLoggedIn() { | 39 bool ShellDelegateImpl::IsUserLoggedIn() const { |
40 return true; | 40 return true; |
41 } | 41 } |
42 | 42 |
43 bool ShellDelegateImpl::IsSessionStarted() { | 43 bool ShellDelegateImpl::IsSessionStarted() const { |
44 return true; | 44 return true; |
45 } | 45 } |
46 | 46 |
47 bool ShellDelegateImpl::IsFirstRunAfterBoot() { | 47 bool ShellDelegateImpl::IsFirstRunAfterBoot() const { |
48 return false; | 48 return false; |
49 } | 49 } |
50 | 50 |
51 bool ShellDelegateImpl::CanLockScreen() { | 51 bool ShellDelegateImpl::CanLockScreen() const { |
52 return true; | 52 return true; |
53 } | 53 } |
54 | 54 |
55 void ShellDelegateImpl::LockScreen() { | 55 void ShellDelegateImpl::LockScreen() { |
56 ash::shell::CreateLockScreen(); | 56 ash::shell::CreateLockScreen(); |
57 locked_ = true; | 57 locked_ = true; |
58 ash::Shell::GetInstance()->UpdateShelfVisibility(); | 58 ash::Shell::GetInstance()->UpdateShelfVisibility(); |
59 } | 59 } |
60 | 60 |
61 void ShellDelegateImpl::UnlockScreen() { | 61 void ShellDelegateImpl::UnlockScreen() { |
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
207 aura::client::StackingClient* ShellDelegateImpl::CreateStackingClient() { | 207 aura::client::StackingClient* ShellDelegateImpl::CreateStackingClient() { |
208 return new StackingController; | 208 return new StackingController; |
209 } | 209 } |
210 | 210 |
211 bool ShellDelegateImpl::IsSearchKeyActingAsFunctionKey() const { | 211 bool ShellDelegateImpl::IsSearchKeyActingAsFunctionKey() const { |
212 return false; | 212 return false; |
213 } | 213 } |
214 | 214 |
215 } // namespace shell | 215 } // namespace shell |
216 } // namespace ash | 216 } // namespace ash |
OLD | NEW |