| 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 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 60 UMA_TOUCHSCREEN_TAP_DOWN, | 60 UMA_TOUCHSCREEN_TAP_DOWN, |
| 61 }; | 61 }; |
| 62 | 62 |
| 63 // Delegate of the Shell. | 63 // Delegate of the Shell. |
| 64 class ASH_EXPORT ShellDelegate { | 64 class ASH_EXPORT ShellDelegate { |
| 65 public: | 65 public: |
| 66 // The Shell owns the delegate. | 66 // The Shell owns the delegate. |
| 67 virtual ~ShellDelegate() {} | 67 virtual ~ShellDelegate() {} |
| 68 | 68 |
| 69 // Returns true if user has logged in. | 69 // Returns true if user has logged in. |
| 70 virtual bool IsUserLoggedIn() = 0; | 70 virtual bool IsUserLoggedIn() const = 0; |
| 71 | 71 |
| 72 // Returns true if we're logged in and browser has been started | 72 // Returns true if we're logged in and browser has been started |
| 73 virtual bool IsSessionStarted() = 0; | 73 virtual bool IsSessionStarted() = 0; |
| 74 | 74 |
| 75 // Returns true if this is the first time that the shell has been run after | 75 // Returns true if this is the first time that the shell has been run after |
| 76 // the system has booted. false is returned after the shell has been | 76 // the system has booted. false is returned after the shell has been |
| 77 // restarted, typically due to logging in as a guest or logging out. | 77 // restarted, typically due to logging in as a guest or logging out. |
| 78 virtual bool IsFirstRunAfterBoot() = 0; | 78 virtual bool IsFirstRunAfterBoot() = 0; |
| 79 | 79 |
| 80 // Returns true if a user is logged in whose session can be locked (i.e. the | 80 // Returns true if a user is logged in whose session can be locked (i.e. the |
| (...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 210 virtual aura::client::StackingClient* CreateStackingClient() = 0; | 210 virtual aura::client::StackingClient* CreateStackingClient() = 0; |
| 211 | 211 |
| 212 // True if the user's preferences have the Search key acting as a Function key | 212 // True if the user's preferences have the Search key acting as a Function key |
| 213 // modifier for accessing extended keyboard shortcuts. | 213 // modifier for accessing extended keyboard shortcuts. |
| 214 virtual bool IsSearchKeyActingAsFunctionKey() const = 0; | 214 virtual bool IsSearchKeyActingAsFunctionKey() const = 0; |
| 215 }; | 215 }; |
| 216 | 216 |
| 217 } // namespace ash | 217 } // namespace ash |
| 218 | 218 |
| 219 #endif // ASH_SHELL_DELEGATE_H_ | 219 #endif // ASH_SHELL_DELEGATE_H_ |
| OLD | NEW |