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 CHROME_BROWSER_UI_ASH_CHROME_SHELL_DELEGATE_H_ | 5 #ifndef CHROME_BROWSER_UI_ASH_CHROME_SHELL_DELEGATE_H_ |
6 #define CHROME_BROWSER_UI_ASH_CHROME_SHELL_DELEGATE_H_ | 6 #define CHROME_BROWSER_UI_ASH_CHROME_SHELL_DELEGATE_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "ash/launcher/launcher_types.h" | 10 #include "ash/launcher/launcher_types.h" |
(...skipping 29 matching lines...) Expand all Loading... |
40 static ChromeShellDelegate* instance() { return instance_; } | 40 static ChromeShellDelegate* instance() { return instance_; } |
41 | 41 |
42 // Prefer the version in ImmersiveModeController. | 42 // Prefer the version in ImmersiveModeController. |
43 static bool UseImmersiveFullscreen(); | 43 static bool UseImmersiveFullscreen(); |
44 | 44 |
45 ash::WindowPositioner* window_positioner() { | 45 ash::WindowPositioner* window_positioner() { |
46 return window_positioner_.get(); | 46 return window_positioner_.get(); |
47 } | 47 } |
48 | 48 |
49 // ash::ShellDelegate overrides; | 49 // ash::ShellDelegate overrides; |
50 virtual bool IsUserLoggedIn() const OVERRIDE; | |
51 virtual bool IsSessionStarted() const OVERRIDE; | |
52 virtual bool IsGuestSession() const OVERRIDE; | |
53 virtual bool IsFirstRunAfterBoot() const OVERRIDE; | 50 virtual bool IsFirstRunAfterBoot() const OVERRIDE; |
54 virtual bool IsMultiProfilesEnabled() const OVERRIDE; | 51 virtual bool IsMultiProfilesEnabled() const OVERRIDE; |
55 virtual bool IsRunningInForcedAppMode() const OVERRIDE; | 52 virtual bool IsRunningInForcedAppMode() const OVERRIDE; |
56 virtual bool CanLockScreen() const OVERRIDE; | |
57 virtual void LockScreen() OVERRIDE; | |
58 virtual void UnlockScreen() OVERRIDE; | |
59 virtual bool IsScreenLocked() const OVERRIDE; | |
60 virtual void PreInit() OVERRIDE; | 53 virtual void PreInit() OVERRIDE; |
61 virtual void Shutdown() OVERRIDE; | 54 virtual void Shutdown() OVERRIDE; |
62 virtual void Exit() OVERRIDE; | 55 virtual void Exit() OVERRIDE; |
63 virtual void NewTab() OVERRIDE; | 56 virtual void NewTab() OVERRIDE; |
64 virtual void NewWindow(bool is_incognito) OVERRIDE; | 57 virtual void NewWindow(bool is_incognito) OVERRIDE; |
65 virtual void ToggleMaximized() OVERRIDE; | 58 virtual void ToggleMaximized() OVERRIDE; |
66 virtual void OpenFileManager(bool as_dialog) OVERRIDE; | 59 virtual void OpenFileManager(bool as_dialog) OVERRIDE; |
67 virtual void OpenCrosh() OVERRIDE; | 60 virtual void OpenCrosh() OVERRIDE; |
68 virtual void OpenMobileSetup(const std::string& service_path) OVERRIDE; | 61 virtual void OpenMobileSetup(const std::string& service_path) OVERRIDE; |
69 virtual void RestoreTab() OVERRIDE; | 62 virtual void RestoreTab() OVERRIDE; |
(...skipping 12 matching lines...) Expand all Loading... |
82 virtual void SetMagnifierType(ash::MagnifierType type) OVERRIDE; | 75 virtual void SetMagnifierType(ash::MagnifierType type) OVERRIDE; |
83 virtual bool IsMagnifierEnabled() const OVERRIDE; | 76 virtual bool IsMagnifierEnabled() const OVERRIDE; |
84 virtual ash::MagnifierType GetMagnifierType() const OVERRIDE; | 77 virtual ash::MagnifierType GetMagnifierType() const OVERRIDE; |
85 virtual bool ShouldAlwaysShowAccessibilityMenu() const OVERRIDE; | 78 virtual bool ShouldAlwaysShowAccessibilityMenu() const OVERRIDE; |
86 virtual app_list::AppListViewDelegate* CreateAppListViewDelegate() OVERRIDE; | 79 virtual app_list::AppListViewDelegate* CreateAppListViewDelegate() OVERRIDE; |
87 virtual ash::LauncherDelegate* CreateLauncherDelegate( | 80 virtual ash::LauncherDelegate* CreateLauncherDelegate( |
88 ash::LauncherModel* model) OVERRIDE; | 81 ash::LauncherModel* model) OVERRIDE; |
89 virtual ash::SystemTrayDelegate* CreateSystemTrayDelegate() OVERRIDE; | 82 virtual ash::SystemTrayDelegate* CreateSystemTrayDelegate() OVERRIDE; |
90 virtual ash::UserWallpaperDelegate* CreateUserWallpaperDelegate() OVERRIDE; | 83 virtual ash::UserWallpaperDelegate* CreateUserWallpaperDelegate() OVERRIDE; |
91 virtual ash::CapsLockDelegate* CreateCapsLockDelegate() OVERRIDE; | 84 virtual ash::CapsLockDelegate* CreateCapsLockDelegate() OVERRIDE; |
| 85 virtual ash::SessionStateDelegate* CreateSessionStateDelegate() OVERRIDE; |
92 virtual aura::client::UserActionClient* CreateUserActionClient() OVERRIDE; | 86 virtual aura::client::UserActionClient* CreateUserActionClient() OVERRIDE; |
93 virtual void OpenFeedbackPage() OVERRIDE; | 87 virtual void OpenFeedbackPage() OVERRIDE; |
94 virtual void RecordUserMetricsAction(ash::UserMetricsAction action) OVERRIDE; | 88 virtual void RecordUserMetricsAction(ash::UserMetricsAction action) OVERRIDE; |
95 virtual void HandleMediaNextTrack() OVERRIDE; | 89 virtual void HandleMediaNextTrack() OVERRIDE; |
96 virtual void HandleMediaPlayPause() OVERRIDE; | 90 virtual void HandleMediaPlayPause() OVERRIDE; |
97 virtual void HandleMediaPrevTrack() OVERRIDE; | 91 virtual void HandleMediaPrevTrack() OVERRIDE; |
98 virtual string16 GetTimeRemainingString(base::TimeDelta delta) OVERRIDE; | 92 virtual string16 GetTimeRemainingString(base::TimeDelta delta) OVERRIDE; |
99 virtual string16 GetTimeDurationLongString(base::TimeDelta delta) OVERRIDE; | 93 virtual string16 GetTimeDurationLongString(base::TimeDelta delta) OVERRIDE; |
100 virtual void SaveScreenMagnifierScale(double scale) OVERRIDE; | 94 virtual void SaveScreenMagnifierScale(double scale) OVERRIDE; |
101 virtual double GetSavedScreenMagnifierScale() OVERRIDE; | 95 virtual double GetSavedScreenMagnifierScale() OVERRIDE; |
(...skipping 20 matching lines...) Expand all Loading... |
122 scoped_ptr<ash::WindowPositioner> window_positioner_; | 116 scoped_ptr<ash::WindowPositioner> window_positioner_; |
123 | 117 |
124 base::WeakPtrFactory<ChromeShellDelegate> weak_factory_; | 118 base::WeakPtrFactory<ChromeShellDelegate> weak_factory_; |
125 | 119 |
126 ChromeLauncherController* launcher_delegate_; | 120 ChromeLauncherController* launcher_delegate_; |
127 | 121 |
128 DISALLOW_COPY_AND_ASSIGN(ChromeShellDelegate); | 122 DISALLOW_COPY_AND_ASSIGN(ChromeShellDelegate); |
129 }; | 123 }; |
130 | 124 |
131 #endif // CHROME_BROWSER_UI_ASH_CHROME_SHELL_DELEGATE_H_ | 125 #endif // CHROME_BROWSER_UI_ASH_CHROME_SHELL_DELEGATE_H_ |
OLD | NEW |