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

Side by Side Diff: ash/shell/shell_delegate_impl.h

Issue 14295008: Add ash SessionStateDelegate (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased. Created 7 years, 8 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
« no previous file with comments | « ash/shell/lock_view.cc ('k') | ash/shell/shell_delegate_impl.cc » ('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_SHELL_DELEGATE_IMPL_H_ 5 #ifndef ASH_SHELL_SHELL_DELEGATE_IMPL_H_
6 #define ASH_SHELL_SHELL_DELEGATE_IMPL_H_ 6 #define ASH_SHELL_SHELL_DELEGATE_IMPL_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "ash/shell_delegate.h" 10 #include "ash/shell_delegate.h"
11 #include "base/compiler_specific.h" 11 #include "base/compiler_specific.h"
12 12
13 namespace keyboard { 13 namespace keyboard {
14 class KeyboardControllerProxy; 14 class KeyboardControllerProxy;
15 } 15 }
16 16
17 namespace ash { 17 namespace ash {
18 namespace shell { 18 namespace shell {
19 19
20 class LauncherDelegateImpl; 20 class LauncherDelegateImpl;
21 class WindowWatcher; 21 class WindowWatcher;
22 22
23 class ShellDelegateImpl : public ash::ShellDelegate { 23 class ShellDelegateImpl : public ash::ShellDelegate {
24 public: 24 public:
25 ShellDelegateImpl(); 25 ShellDelegateImpl();
26 virtual ~ShellDelegateImpl(); 26 virtual ~ShellDelegateImpl();
27 27
28 void SetWatcher(WindowWatcher* watcher); 28 void SetWatcher(WindowWatcher* watcher);
29 29
30 virtual bool IsUserLoggedIn() const OVERRIDE;
31 virtual bool IsSessionStarted() const OVERRIDE;
32 virtual bool IsGuestSession() const OVERRIDE;
33 virtual bool IsFirstRunAfterBoot() const OVERRIDE; 30 virtual bool IsFirstRunAfterBoot() const OVERRIDE;
34 virtual bool IsMultiProfilesEnabled() const OVERRIDE; 31 virtual bool IsMultiProfilesEnabled() const OVERRIDE;
35 virtual bool IsRunningInForcedAppMode() const OVERRIDE; 32 virtual bool IsRunningInForcedAppMode() const OVERRIDE;
36 virtual bool CanLockScreen() const OVERRIDE;
37 virtual void LockScreen() OVERRIDE;
38 virtual void UnlockScreen() OVERRIDE;
39 virtual bool IsScreenLocked() const OVERRIDE;
40 virtual void PreInit() OVERRIDE; 33 virtual void PreInit() OVERRIDE;
41 virtual void Shutdown() OVERRIDE; 34 virtual void Shutdown() OVERRIDE;
42 virtual void Exit() OVERRIDE; 35 virtual void Exit() OVERRIDE;
43 virtual void NewTab() OVERRIDE; 36 virtual void NewTab() OVERRIDE;
44 virtual void NewWindow(bool incognito) OVERRIDE; 37 virtual void NewWindow(bool incognito) OVERRIDE;
45 virtual void ToggleMaximized() OVERRIDE; 38 virtual void ToggleMaximized() OVERRIDE;
46 virtual void OpenFileManager(bool as_dialog) OVERRIDE; 39 virtual void OpenFileManager(bool as_dialog) OVERRIDE;
47 virtual void OpenCrosh() OVERRIDE; 40 virtual void OpenCrosh() OVERRIDE;
48 virtual void OpenMobileSetup(const std::string& service_path) OVERRIDE; 41 virtual void OpenMobileSetup(const std::string& service_path) OVERRIDE;
49 virtual void RestoreTab() OVERRIDE; 42 virtual void RestoreTab() OVERRIDE;
(...skipping 12 matching lines...) Expand all
62 virtual void SetMagnifierType(MagnifierType type) OVERRIDE; 55 virtual void SetMagnifierType(MagnifierType type) OVERRIDE;
63 virtual bool IsMagnifierEnabled() const OVERRIDE; 56 virtual bool IsMagnifierEnabled() const OVERRIDE;
64 virtual MagnifierType GetMagnifierType() const OVERRIDE; 57 virtual MagnifierType GetMagnifierType() const OVERRIDE;
65 virtual bool ShouldAlwaysShowAccessibilityMenu() const OVERRIDE; 58 virtual bool ShouldAlwaysShowAccessibilityMenu() const OVERRIDE;
66 virtual app_list::AppListViewDelegate* CreateAppListViewDelegate() OVERRIDE; 59 virtual app_list::AppListViewDelegate* CreateAppListViewDelegate() OVERRIDE;
67 virtual ash::LauncherDelegate* CreateLauncherDelegate( 60 virtual ash::LauncherDelegate* CreateLauncherDelegate(
68 ash::LauncherModel* model) OVERRIDE; 61 ash::LauncherModel* model) OVERRIDE;
69 virtual ash::SystemTrayDelegate* CreateSystemTrayDelegate() OVERRIDE; 62 virtual ash::SystemTrayDelegate* CreateSystemTrayDelegate() OVERRIDE;
70 virtual ash::UserWallpaperDelegate* CreateUserWallpaperDelegate() OVERRIDE; 63 virtual ash::UserWallpaperDelegate* CreateUserWallpaperDelegate() OVERRIDE;
71 virtual ash::CapsLockDelegate* CreateCapsLockDelegate() OVERRIDE; 64 virtual ash::CapsLockDelegate* CreateCapsLockDelegate() OVERRIDE;
65 virtual ash::SessionStateDelegate* CreateSessionStateDelegate() OVERRIDE;
72 virtual aura::client::UserActionClient* CreateUserActionClient() OVERRIDE; 66 virtual aura::client::UserActionClient* CreateUserActionClient() OVERRIDE;
73 virtual void OpenFeedbackPage() OVERRIDE; 67 virtual void OpenFeedbackPage() OVERRIDE;
74 virtual void RecordUserMetricsAction(UserMetricsAction action) OVERRIDE; 68 virtual void RecordUserMetricsAction(UserMetricsAction action) OVERRIDE;
75 virtual void HandleMediaNextTrack() OVERRIDE; 69 virtual void HandleMediaNextTrack() OVERRIDE;
76 virtual void HandleMediaPlayPause() OVERRIDE; 70 virtual void HandleMediaPlayPause() OVERRIDE;
77 virtual void HandleMediaPrevTrack() OVERRIDE; 71 virtual void HandleMediaPrevTrack() OVERRIDE;
78 virtual base::string16 GetTimeRemainingString(base::TimeDelta delta) OVERRIDE; 72 virtual base::string16 GetTimeRemainingString(base::TimeDelta delta) OVERRIDE;
79 virtual base::string16 GetTimeDurationLongString( 73 virtual base::string16 GetTimeDurationLongString(
80 base::TimeDelta delta) OVERRIDE; 74 base::TimeDelta delta) OVERRIDE;
81 virtual void SaveScreenMagnifierScale(double scale) OVERRIDE; 75 virtual void SaveScreenMagnifierScale(double scale) OVERRIDE;
82 virtual double GetSavedScreenMagnifierScale() OVERRIDE; 76 virtual double GetSavedScreenMagnifierScale() OVERRIDE;
83 virtual ui::MenuModel* CreateContextMenu( 77 virtual ui::MenuModel* CreateContextMenu(
84 aura::RootWindow* root_window) OVERRIDE; 78 aura::RootWindow* root_window) OVERRIDE;
85 virtual RootWindowHostFactory* CreateRootWindowHostFactory() OVERRIDE; 79 virtual RootWindowHostFactory* CreateRootWindowHostFactory() OVERRIDE;
86 virtual base::string16 GetProductName() const OVERRIDE; 80 virtual base::string16 GetProductName() const OVERRIDE;
87 81
88 private: 82 private:
89 // Used to update Launcher. Owned by main. 83 // Used to update Launcher. Owned by main.
90 WindowWatcher* watcher_; 84 WindowWatcher* watcher_;
91 85
92 LauncherDelegateImpl* launcher_delegate_; 86 LauncherDelegateImpl* launcher_delegate_;
93 87
94 bool locked_;
95 bool spoken_feedback_enabled_; 88 bool spoken_feedback_enabled_;
96 bool high_contrast_enabled_; 89 bool high_contrast_enabled_;
97 bool screen_magnifier_enabled_; 90 bool screen_magnifier_enabled_;
98 MagnifierType screen_magnifier_type_; 91 MagnifierType screen_magnifier_type_;
99 92
100 DISALLOW_COPY_AND_ASSIGN(ShellDelegateImpl); 93 DISALLOW_COPY_AND_ASSIGN(ShellDelegateImpl);
101 }; 94 };
102 95
103 } // namespace shell 96 } // namespace shell
104 } // namespace ash 97 } // namespace ash
105 98
106 #endif // ASH_SHELL_SHELL_DELEGATE_IMPL_H_ 99 #endif // ASH_SHELL_SHELL_DELEGATE_IMPL_H_
OLDNEW
« no previous file with comments | « ash/shell/lock_view.cc ('k') | ash/shell/shell_delegate_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698