OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 "chrome/browser/ui/ash/chrome_shell_delegate.h" | 5 #include "chrome/browser/ui/ash/chrome_shell_delegate.h" |
6 | 6 |
7 #include "ash/magnifier/magnifier_constants.h" | 7 #include "ash/magnifier/magnifier_constants.h" |
8 #include "chrome/browser/ui/ash/caps_lock_delegate_views.h" | 8 #include "chrome/browser/ui/ash/caps_lock_delegate_views.h" |
9 #include "chrome/browser/ui/ash/window_positioner.h" | 9 #include "chrome/browser/ui/ash/window_positioner.h" |
10 | 10 |
11 bool ChromeShellDelegate::IsUserLoggedIn() const { | |
12 return true; | |
13 } | |
14 | |
15 // Returns true if we're logged in and browser has been started | |
16 bool ChromeShellDelegate::IsSessionStarted() const { | |
17 return true; | |
18 } | |
19 | |
20 bool ChromeShellDelegate::IsGuestSession() const { | |
21 return false; | |
22 } | |
23 | |
24 bool ChromeShellDelegate::IsFirstRunAfterBoot() const { | 11 bool ChromeShellDelegate::IsFirstRunAfterBoot() const { |
25 return false; | 12 return false; |
26 } | 13 } |
27 | 14 |
28 bool ChromeShellDelegate::CanLockScreen() const { | |
29 return false; | |
30 } | |
31 | |
32 void ChromeShellDelegate::LockScreen() { | |
33 } | |
34 | |
35 bool ChromeShellDelegate::IsScreenLocked() const { | |
36 return false; | |
37 } | |
38 | |
39 void ChromeShellDelegate::PreInit() { | 15 void ChromeShellDelegate::PreInit() { |
40 } | 16 } |
41 | 17 |
42 void ChromeShellDelegate::Shutdown() { | 18 void ChromeShellDelegate::Shutdown() { |
43 } | 19 } |
44 | 20 |
45 void ChromeShellDelegate::OpenFileManager(bool as_dialog) { | 21 void ChromeShellDelegate::OpenFileManager(bool as_dialog) { |
46 } | 22 } |
47 | 23 |
48 void ChromeShellDelegate::OpenCrosh() { | 24 void ChromeShellDelegate::OpenCrosh() { |
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
117 | 93 |
118 void ChromeShellDelegate::Observe(int type, | 94 void ChromeShellDelegate::Observe(int type, |
119 const content::NotificationSource& source, | 95 const content::NotificationSource& source, |
120 const content::NotificationDetails& details) { | 96 const content::NotificationDetails& details) { |
121 // MSVC++ warns about switch statements without any cases. | 97 // MSVC++ warns about switch statements without any cases. |
122 NOTREACHED() << "Unexpected notification " << type; | 98 NOTREACHED() << "Unexpected notification " << type; |
123 } | 99 } |
124 | 100 |
125 void ChromeShellDelegate::PlatformInit() { | 101 void ChromeShellDelegate::PlatformInit() { |
126 } | 102 } |
OLD | NEW |