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 "ash/launcher/launcher_types.h" | 8 #include "ash/launcher/launcher_types.h" |
9 #include "ash/shell_delegate.h" | 9 #include "ash/shell_delegate.h" |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
75 virtual void HandleMediaNextTrack() OVERRIDE; | 75 virtual void HandleMediaNextTrack() OVERRIDE; |
76 virtual void HandleMediaPlayPause() OVERRIDE; | 76 virtual void HandleMediaPlayPause() OVERRIDE; |
77 virtual void HandleMediaPrevTrack() OVERRIDE; | 77 virtual void HandleMediaPrevTrack() OVERRIDE; |
78 virtual string16 GetTimeRemainingString(base::TimeDelta delta) OVERRIDE; | 78 virtual string16 GetTimeRemainingString(base::TimeDelta delta) OVERRIDE; |
79 virtual string16 GetTimeDurationLongString(base::TimeDelta delta) OVERRIDE; | 79 virtual string16 GetTimeDurationLongString(base::TimeDelta delta) OVERRIDE; |
80 virtual void SaveScreenMagnifierScale(double scale) OVERRIDE; | 80 virtual void SaveScreenMagnifierScale(double scale) OVERRIDE; |
81 virtual double GetSavedScreenMagnifierScale() OVERRIDE; | 81 virtual double GetSavedScreenMagnifierScale() OVERRIDE; |
82 virtual ui::MenuModel* CreateContextMenu(aura::RootWindow* root) OVERRIDE; | 82 virtual ui::MenuModel* CreateContextMenu(aura::RootWindow* root) OVERRIDE; |
83 virtual aura::client::StackingClient* CreateStackingClient() OVERRIDE; | 83 virtual aura::client::StackingClient* CreateStackingClient() OVERRIDE; |
84 virtual bool IsSearchKeyActingAsFunctionKey() const OVERRIDE; | 84 virtual bool IsSearchKeyActingAsFunctionKey() const OVERRIDE; |
| 85 virtual ash::RootWindowHostFactory* CreateRootWindowHostFactory() OVERRIDE; |
85 | 86 |
86 // content::NotificationObserver override: | 87 // content::NotificationObserver override: |
87 virtual void Observe(int type, | 88 virtual void Observe(int type, |
88 const content::NotificationSource& source, | 89 const content::NotificationSource& source, |
89 const content::NotificationDetails& details) OVERRIDE; | 90 const content::NotificationDetails& details) OVERRIDE; |
90 | 91 |
91 private: | 92 private: |
92 static ChromeShellDelegate* instance_; | 93 static ChromeShellDelegate* instance_; |
93 | 94 |
94 content::NotificationRegistrar registrar_; | 95 content::NotificationRegistrar registrar_; |
95 | 96 |
96 scoped_ptr<ash::WindowPositioner> window_positioner_; | 97 scoped_ptr<ash::WindowPositioner> window_positioner_; |
97 | 98 |
98 base::WeakPtrFactory<ChromeShellDelegate> weak_factory_; | 99 base::WeakPtrFactory<ChromeShellDelegate> weak_factory_; |
99 | 100 |
100 ChromeLauncherController* launcher_delegate_; | 101 ChromeLauncherController* launcher_delegate_; |
101 | 102 |
102 DISALLOW_COPY_AND_ASSIGN(ChromeShellDelegate); | 103 DISALLOW_COPY_AND_ASSIGN(ChromeShellDelegate); |
103 }; | 104 }; |
104 | 105 |
105 #endif // CHROME_BROWSER_UI_ASH_CHROME_SHELL_DELEGATE_H_ | 106 #endif // CHROME_BROWSER_UI_ASH_CHROME_SHELL_DELEGATE_H_ |
OLD | NEW |