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/toplevel_window.h" | 10 #include "ash/shell/toplevel_window.h" |
(...skipping 21 matching lines...) Expand all Loading... |
32 } | 32 } |
33 | 33 |
34 bool ShellDelegateImpl::IsUserLoggedIn() { | 34 bool ShellDelegateImpl::IsUserLoggedIn() { |
35 return true; | 35 return true; |
36 } | 36 } |
37 | 37 |
38 bool ShellDelegateImpl::IsSessionStarted() { | 38 bool ShellDelegateImpl::IsSessionStarted() { |
39 return true; | 39 return true; |
40 } | 40 } |
41 | 41 |
| 42 bool ShellDelegateImpl::IsFirstRunAfterBoot() { |
| 43 return false; |
| 44 } |
| 45 |
42 void ShellDelegateImpl::LockScreen() { | 46 void ShellDelegateImpl::LockScreen() { |
43 ash::shell::CreateLockScreen(); | 47 ash::shell::CreateLockScreen(); |
44 locked_ = true; | 48 locked_ = true; |
45 ash::Shell::GetInstance()->UpdateShelfVisibility(); | 49 ash::Shell::GetInstance()->UpdateShelfVisibility(); |
46 } | 50 } |
47 | 51 |
48 void ShellDelegateImpl::UnlockScreen() { | 52 void ShellDelegateImpl::UnlockScreen() { |
49 locked_ = false; | 53 locked_ = false; |
50 ash::Shell::GetInstance()->UpdateShelfVisibility(); | 54 ash::Shell::GetInstance()->UpdateShelfVisibility(); |
51 } | 55 } |
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
153 | 157 |
154 void ShellDelegateImpl::SaveScreenMagnifierScale(double scale) { | 158 void ShellDelegateImpl::SaveScreenMagnifierScale(double scale) { |
155 } | 159 } |
156 | 160 |
157 double ShellDelegateImpl::GetSavedScreenMagnifierScale() { | 161 double ShellDelegateImpl::GetSavedScreenMagnifierScale() { |
158 return std::numeric_limits<double>::min(); | 162 return std::numeric_limits<double>::min(); |
159 } | 163 } |
160 | 164 |
161 } // namespace shell | 165 } // namespace shell |
162 } // namespace ash | 166 } // namespace ash |
OLD | NEW |