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

Side by Side Diff: ash/shell_delegate.h

Issue 10889024: [cros] Initialize OOBE in parallel when boot animation is disabled. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: merge Created 8 years, 3 months 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
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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 // Delegate of the Shell. 53 // Delegate of the Shell.
54 class ASH_EXPORT ShellDelegate { 54 class ASH_EXPORT ShellDelegate {
55 public: 55 public:
56 // The Shell owns the delegate. 56 // The Shell owns the delegate.
57 virtual ~ShellDelegate() {} 57 virtual ~ShellDelegate() {}
58 58
59 // Returns true if user has logged in. 59 // Returns true if user has logged in.
60 virtual bool IsUserLoggedIn() = 0; 60 virtual bool IsUserLoggedIn() = 0;
61 61
62 // Returns true if we're logged in and browser has been started 62 // Returns true if we're logged in and browser has been started
63 virtual bool IsSessionStarted() = 0; 63 virtual bool IsSessionStarted() const = 0;
64 64
65 // Invoked when a user locks the screen. 65 // Invoked when a user locks the screen.
66 virtual void LockScreen() = 0; 66 virtual void LockScreen() = 0;
67 67
68 // Unlock the screen. Currently used only for tests. 68 // Unlock the screen. Currently used only for tests.
69 virtual void UnlockScreen() = 0; 69 virtual void UnlockScreen() = 0;
70 70
71 // Returns true if the screen is currently locked. 71 // Returns true if the screen is currently locked.
72 virtual bool IsScreenLocked() const = 0; 72 virtual bool IsScreenLocked() const = 0;
73 73
74 // Returns true if status area should be made initially visible.
75 virtual bool IsStatusAreaInitiallyVisible() const = 0;
76
74 // Shuts down the environment. 77 // Shuts down the environment.
75 virtual void Shutdown() = 0; 78 virtual void Shutdown() = 0;
76 79
77 // Invoked when the user uses Ctrl-Shift-Q to close chrome. 80 // Invoked when the user uses Ctrl-Shift-Q to close chrome.
78 virtual void Exit() = 0; 81 virtual void Exit() = 0;
79 82
80 // Invoked when the user uses Ctrl+T to open a new tab. 83 // Invoked when the user uses Ctrl+T to open a new tab.
81 virtual void NewTab() = 0; 84 virtual void NewTab() = 0;
82 85
83 // Invoked when the user uses Ctrl-N or Ctrl-Shift-N to open a new window. 86 // Invoked when the user uses Ctrl-N or Ctrl-Shift-N to open a new window.
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
148 // Handles the Play/Pause Toggle Media shortcut key. 151 // Handles the Play/Pause Toggle Media shortcut key.
149 virtual void HandleMediaPlayPause() = 0; 152 virtual void HandleMediaPlayPause() = 0;
150 153
151 // Handles the Previous Track Media shortcut key. 154 // Handles the Previous Track Media shortcut key.
152 virtual void HandleMediaPrevTrack() = 0; 155 virtual void HandleMediaPrevTrack() = 0;
153 }; 156 };
154 157
155 } // namespace ash 158 } // namespace ash
156 159
157 #endif // ASH_SHELL_DELEGATE_H_ 160 #endif // ASH_SHELL_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698