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

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

Issue 11485006: Add window manager component. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Push gfx::AcceleratedWidget usage into platform specific code. Created 7 years, 9 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
« no previous file with comments | « wm/shell/content_client/shell_main_delegate.cc ('k') | wm/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) 2013 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 WM_SHELL_SHELL_DELEGATE_IMPL_H_
6 #define ASH_SHELL_SHELL_DELEGATE_IMPL_H_ 6 #define WM_SHELL_SHELL_DELEGATE_IMPL_H_
7 7
8 #include "ash/shell_delegate.h" 8 #include "ash/shell_delegate.h"
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 10
11 namespace ash { 11 namespace ash {
12 namespace shell { 12 namespace shell {
13 13
14 class LauncherDelegateImpl; 14 class LauncherDelegateImpl;
15 class WindowWatcher; 15 class WindowWatcher;
16 16
17 } // namespace shell
18 } // namespace ash
19
20 namespace wm {
21 namespace shell {
22
17 class ShellDelegateImpl : public ash::ShellDelegate { 23 class ShellDelegateImpl : public ash::ShellDelegate {
18 public: 24 public:
19 ShellDelegateImpl(); 25 ShellDelegateImpl();
20 virtual ~ShellDelegateImpl(); 26 virtual ~ShellDelegateImpl();
21 27
22 void SetWatcher(WindowWatcher* watcher); 28 void SetWatcher(ash::shell::WindowWatcher* watcher);
23 29
24 virtual bool IsUserLoggedIn() const OVERRIDE; 30 virtual bool IsUserLoggedIn() const OVERRIDE;
25 virtual bool IsSessionStarted() const OVERRIDE; 31 virtual bool IsSessionStarted() const OVERRIDE;
26 virtual bool IsFirstRunAfterBoot() const OVERRIDE; 32 virtual bool IsFirstRunAfterBoot() const OVERRIDE;
27 virtual bool CanLockScreen() const OVERRIDE; 33 virtual bool CanLockScreen() const OVERRIDE;
28 virtual void LockScreen() OVERRIDE; 34 virtual void LockScreen() OVERRIDE;
29 virtual void UnlockScreen() OVERRIDE; 35 virtual void UnlockScreen() OVERRIDE;
30 virtual bool IsScreenLocked() const OVERRIDE; 36 virtual bool IsScreenLocked() const OVERRIDE;
31 virtual void Shutdown() OVERRIDE; 37 virtual void Shutdown() OVERRIDE;
32 virtual void Exit() OVERRIDE; 38 virtual void Exit() OVERRIDE;
33 virtual void NewTab() OVERRIDE; 39 virtual void NewTab() OVERRIDE;
34 virtual void NewWindow(bool incognito) OVERRIDE; 40 virtual void NewWindow(bool incognito) OVERRIDE;
35 virtual void ToggleMaximized() OVERRIDE; 41 virtual void ToggleMaximized() OVERRIDE;
36 virtual void OpenFileManager() OVERRIDE; 42 virtual void OpenFileManager() OVERRIDE;
37 virtual void OpenCrosh() OVERRIDE; 43 virtual void OpenCrosh() OVERRIDE;
38 virtual void OpenMobileSetup(const std::string& service_path) OVERRIDE; 44 virtual void OpenMobileSetup(const std::string& service_path) OVERRIDE;
39 virtual void RestoreTab() OVERRIDE; 45 virtual void RestoreTab() OVERRIDE;
40 virtual bool RotatePaneFocus(Shell::Direction direction) OVERRIDE; 46 virtual bool RotatePaneFocus(ash::Shell::Direction direction) OVERRIDE;
41 virtual void ShowKeyboardOverlay() OVERRIDE; 47 virtual void ShowKeyboardOverlay() OVERRIDE;
42 virtual void ShowTaskManager() OVERRIDE; 48 virtual void ShowTaskManager() OVERRIDE;
43 virtual content::BrowserContext* GetCurrentBrowserContext() OVERRIDE; 49 virtual content::BrowserContext* GetCurrentBrowserContext() OVERRIDE;
44 virtual void ToggleSpokenFeedback( 50 virtual void ToggleSpokenFeedback(
45 AccessibilityNotificationVisibility notify) OVERRIDE; 51 ash::AccessibilityNotificationVisibility notify) OVERRIDE;
46 virtual bool IsSpokenFeedbackEnabled() const OVERRIDE; 52 virtual bool IsSpokenFeedbackEnabled() const OVERRIDE;
47 virtual void ToggleHighContrast() OVERRIDE; 53 virtual void ToggleHighContrast() OVERRIDE;
48 virtual bool IsHighContrastEnabled() const OVERRIDE; 54 virtual bool IsHighContrastEnabled() const OVERRIDE;
49 virtual void SetMagnifierEnabled(bool enabled) OVERRIDE; 55 virtual void SetMagnifierEnabled(bool enabled) OVERRIDE;
50 virtual void SetMagnifierType(MagnifierType type) OVERRIDE; 56 virtual void SetMagnifierType(ash::MagnifierType type) OVERRIDE;
51 virtual bool IsMagnifierEnabled() const OVERRIDE; 57 virtual bool IsMagnifierEnabled() const OVERRIDE;
52 virtual MagnifierType GetMagnifierType() const OVERRIDE; 58 virtual ash::MagnifierType GetMagnifierType() const OVERRIDE;
53 virtual bool ShouldAlwaysShowAccessibilityMenu() const OVERRIDE; 59 virtual bool ShouldAlwaysShowAccessibilityMenu() const OVERRIDE;
54 virtual app_list::AppListViewDelegate* CreateAppListViewDelegate() OVERRIDE; 60 virtual app_list::AppListViewDelegate* CreateAppListViewDelegate() OVERRIDE;
55 virtual ash::LauncherDelegate* CreateLauncherDelegate( 61 virtual ash::LauncherDelegate* CreateLauncherDelegate(
56 ash::LauncherModel* model) OVERRIDE; 62 ash::LauncherModel* model) OVERRIDE;
57 virtual ash::SystemTrayDelegate* CreateSystemTrayDelegate() OVERRIDE; 63 virtual ash::SystemTrayDelegate* CreateSystemTrayDelegate() OVERRIDE;
58 virtual ash::UserWallpaperDelegate* CreateUserWallpaperDelegate() OVERRIDE; 64 virtual ash::UserWallpaperDelegate* CreateUserWallpaperDelegate() OVERRIDE;
59 virtual ash::CapsLockDelegate* CreateCapsLockDelegate() OVERRIDE; 65 virtual ash::CapsLockDelegate* CreateCapsLockDelegate() OVERRIDE;
60 virtual aura::client::UserActionClient* CreateUserActionClient() OVERRIDE; 66 virtual aura::client::UserActionClient* CreateUserActionClient() OVERRIDE;
61 virtual void OpenFeedbackPage() OVERRIDE; 67 virtual void OpenFeedbackPage() OVERRIDE;
62 virtual void RecordUserMetricsAction(UserMetricsAction action) OVERRIDE; 68 virtual void RecordUserMetricsAction(
69 ash::UserMetricsAction action) OVERRIDE;
63 virtual void HandleMediaNextTrack() OVERRIDE; 70 virtual void HandleMediaNextTrack() OVERRIDE;
64 virtual void HandleMediaPlayPause() OVERRIDE; 71 virtual void HandleMediaPlayPause() OVERRIDE;
65 virtual void HandleMediaPrevTrack() OVERRIDE; 72 virtual void HandleMediaPrevTrack() OVERRIDE;
66 virtual string16 GetTimeRemainingString(base::TimeDelta delta) OVERRIDE; 73 virtual string16 GetTimeRemainingString(base::TimeDelta delta) OVERRIDE;
67 virtual string16 GetTimeDurationLongString(base::TimeDelta delta) OVERRIDE; 74 virtual string16 GetTimeDurationLongString(base::TimeDelta delta) OVERRIDE;
68 virtual void SaveScreenMagnifierScale(double scale) OVERRIDE; 75 virtual void SaveScreenMagnifierScale(double scale) OVERRIDE;
69 virtual double GetSavedScreenMagnifierScale() OVERRIDE; 76 virtual double GetSavedScreenMagnifierScale() OVERRIDE;
70 virtual ui::MenuModel* CreateContextMenu( 77 virtual ui::MenuModel* CreateContextMenu(
71 aura::RootWindow* root_window) OVERRIDE; 78 aura::RootWindow* root_window) OVERRIDE;
72 virtual RootWindowHostFactory* CreateRootWindowHostFactory() OVERRIDE; 79 virtual ash::RootWindowHostFactory* CreateRootWindowHostFactory() OVERRIDE;
73 virtual string16 GetProductName() const OVERRIDE; 80 virtual string16 GetProductName() const OVERRIDE;
74 81
75 private: 82 private:
76 // Used to update Launcher. Owned by main. 83 // Used to update Launcher. Owned by main.
77 WindowWatcher* watcher_; 84 ash::shell::WindowWatcher* watcher_;
78 85
79 LauncherDelegateImpl* launcher_delegate_; 86 ash::shell::LauncherDelegateImpl* launcher_delegate_;
80 87
81 bool locked_; 88 bool locked_;
82 bool spoken_feedback_enabled_; 89 bool spoken_feedback_enabled_;
83 bool high_contrast_enabled_; 90 bool high_contrast_enabled_;
84 bool screen_magnifier_enabled_; 91 bool screen_magnifier_enabled_;
85 MagnifierType screen_magnifier_type_; 92 ash::MagnifierType screen_magnifier_type_;
86 93
87 DISALLOW_COPY_AND_ASSIGN(ShellDelegateImpl); 94 DISALLOW_COPY_AND_ASSIGN(ShellDelegateImpl);
88 }; 95 };
89 96
90 } // namespace shell 97 } // namespace shell
91 } // namespace ash 98 } // namespace wm
92 99
93 #endif // ASH_SHELL_SHELL_DELEGATE_IMPL_H_ 100 #endif // WM_SHELL_SHELL_DELEGATE_IMPL_H_
OLDNEW
« no previous file with comments | « wm/shell/content_client/shell_main_delegate.cc ('k') | wm/shell/shell_delegate_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698