Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(281)

Side by Side Diff: ash/shell_delegate.h

Issue 11280236: A11y: Add the option to always show the a11y tray menu regardless of the state of a11y features (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 8 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « ash/shell/shell_delegate_impl.cc ('k') | ash/system/tray_accessibility.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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() const = 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() const = 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
81 // user has a password with which to unlock the session). 81 // user has a password with which to unlock the session).
82 virtual bool CanLockScreen() = 0; 82 virtual bool CanLockScreen() const = 0;
83 83
84 // Invoked when a user locks the screen. 84 // Invoked when a user locks the screen.
85 virtual void LockScreen() = 0; 85 virtual void LockScreen() = 0;
86 86
87 // Unlock the screen. Currently used only for tests. 87 // Unlock the screen. Currently used only for tests.
88 virtual void UnlockScreen() = 0; 88 virtual void UnlockScreen() = 0;
89 89
90 // Returns true if the screen is currently locked. 90 // Returns true if the screen is currently locked.
91 virtual bool IsScreenLocked() const = 0; 91 virtual bool IsScreenLocked() const = 0;
92 92
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
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_
OLDNEW
« no previous file with comments | « ash/shell/shell_delegate_impl.cc ('k') | ash/system/tray_accessibility.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698