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 #ifndef ASH_SHELL_DELEGATE_H_ | 5 #ifndef ASH_SHELL_DELEGATE_H_ |
6 #define ASH_SHELL_DELEGATE_H_ | 6 #define ASH_SHELL_DELEGATE_H_ |
7 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "ash/ash_export.h" | 10 #include "ash/ash_export.h" |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
57 public: | 57 public: |
58 // The Shell owns the delegate. | 58 // The Shell owns the delegate. |
59 virtual ~ShellDelegate() {} | 59 virtual ~ShellDelegate() {} |
60 | 60 |
61 // Returns true if user has logged in. | 61 // Returns true if user has logged in. |
62 virtual bool IsUserLoggedIn() = 0; | 62 virtual bool IsUserLoggedIn() = 0; |
63 | 63 |
64 // Returns true if we're logged in and browser has been started | 64 // Returns true if we're logged in and browser has been started |
65 virtual bool IsSessionStarted() = 0; | 65 virtual bool IsSessionStarted() = 0; |
66 | 66 |
| 67 // Returns true if this is the first time that the shell has been run after |
| 68 // the system has booted. false is returned after the shell has been |
| 69 // restarted, typically due to logging in as a guest or logging out. |
| 70 virtual bool IsFirstRunAfterBoot() = 0; |
| 71 |
67 // Invoked when a user locks the screen. | 72 // Invoked when a user locks the screen. |
68 virtual void LockScreen() = 0; | 73 virtual void LockScreen() = 0; |
69 | 74 |
70 // Unlock the screen. Currently used only for tests. | 75 // Unlock the screen. Currently used only for tests. |
71 virtual void UnlockScreen() = 0; | 76 virtual void UnlockScreen() = 0; |
72 | 77 |
73 // Returns true if the screen is currently locked. | 78 // Returns true if the screen is currently locked. |
74 virtual bool IsScreenLocked() const = 0; | 79 virtual bool IsScreenLocked() const = 0; |
75 | 80 |
76 // Shuts down the environment. | 81 // Shuts down the environment. |
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
162 virtual void SaveScreenMagnifierScale(double scale) = 0; | 167 virtual void SaveScreenMagnifierScale(double scale) = 0; |
163 | 168 |
164 // Gets a saved value of the zoom scale of full screen magnifier. If a value | 169 // Gets a saved value of the zoom scale of full screen magnifier. If a value |
165 // is not saved, return a negative value. | 170 // is not saved, return a negative value. |
166 virtual double GetSavedScreenMagnifierScale() = 0; | 171 virtual double GetSavedScreenMagnifierScale() = 0; |
167 }; | 172 }; |
168 | 173 |
169 } // namespace ash | 174 } // namespace ash |
170 | 175 |
171 #endif // ASH_SHELL_DELEGATE_H_ | 176 #endif // ASH_SHELL_DELEGATE_H_ |
OLD | NEW |