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/shelf/shelf_item_types.h" |
11 #include "ash/shell_delegate.h" | 11 #include "ash/shell_delegate.h" |
12 #include "base/basictypes.h" | 12 #include "base/basictypes.h" |
13 #include "base/compiler_specific.h" | 13 #include "base/compiler_specific.h" |
14 #include "base/memory/scoped_ptr.h" | 14 #include "base/memory/scoped_ptr.h" |
15 #include "content/public/browser/notification_observer.h" | 15 #include "content/public/browser/notification_observer.h" |
16 #include "content/public/browser/notification_registrar.h" | 16 #include "content/public/browser/notification_registrar.h" |
17 | 17 |
18 class Browser; | 18 class Browser; |
19 | 19 |
20 namespace ash { | 20 namespace ash { |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
63 virtual ash::UserWallpaperDelegate* CreateUserWallpaperDelegate() OVERRIDE; | 63 virtual ash::UserWallpaperDelegate* CreateUserWallpaperDelegate() OVERRIDE; |
64 virtual ash::CapsLockDelegate* CreateCapsLockDelegate() OVERRIDE; | 64 virtual ash::CapsLockDelegate* CreateCapsLockDelegate() OVERRIDE; |
65 virtual ash::SessionStateDelegate* CreateSessionStateDelegate() OVERRIDE; | 65 virtual ash::SessionStateDelegate* CreateSessionStateDelegate() OVERRIDE; |
66 virtual ash::AccessibilityDelegate* CreateAccessibilityDelegate() OVERRIDE; | 66 virtual ash::AccessibilityDelegate* CreateAccessibilityDelegate() OVERRIDE; |
67 virtual ash::NewWindowDelegate* CreateNewWindowDelegate() OVERRIDE; | 67 virtual ash::NewWindowDelegate* CreateNewWindowDelegate() OVERRIDE; |
68 virtual ash::MediaDelegate* CreateMediaDelegate() OVERRIDE; | 68 virtual ash::MediaDelegate* CreateMediaDelegate() OVERRIDE; |
69 virtual aura::client::UserActionClient* CreateUserActionClient() OVERRIDE; | 69 virtual aura::client::UserActionClient* CreateUserActionClient() OVERRIDE; |
70 virtual ui::MenuModel* CreateContextMenu( | 70 virtual ui::MenuModel* CreateContextMenu( |
71 aura::Window* root, | 71 aura::Window* root, |
72 ash::ShelfItemDelegate* item_delegate, | 72 ash::ShelfItemDelegate* item_delegate, |
73 ash::LauncherItem* item) OVERRIDE; | 73 ash::ShelfItem* item) OVERRIDE; |
74 virtual ash::WindowTreeHostFactory* CreateWindowTreeHostFactory() OVERRIDE; | 74 virtual ash::WindowTreeHostFactory* CreateWindowTreeHostFactory() OVERRIDE; |
75 virtual ash::GPUSupport* CreateGPUSupport() OVERRIDE; | 75 virtual ash::GPUSupport* CreateGPUSupport() OVERRIDE; |
76 virtual base::string16 GetProductName() const OVERRIDE; | 76 virtual base::string16 GetProductName() const OVERRIDE; |
77 | 77 |
78 // content::NotificationObserver override: | 78 // content::NotificationObserver override: |
79 virtual void Observe(int type, | 79 virtual void Observe(int type, |
80 const content::NotificationSource& source, | 80 const content::NotificationSource& source, |
81 const content::NotificationDetails& details) OVERRIDE; | 81 const content::NotificationDetails& details) OVERRIDE; |
82 | 82 |
83 private: | 83 private: |
84 void PlatformInit(); | 84 void PlatformInit(); |
85 | 85 |
86 static ChromeShellDelegate* instance_; | 86 static ChromeShellDelegate* instance_; |
87 | 87 |
88 content::NotificationRegistrar registrar_; | 88 content::NotificationRegistrar registrar_; |
89 | 89 |
90 ChromeLauncherController* shelf_delegate_; | 90 ChromeLauncherController* shelf_delegate_; |
91 | 91 |
92 #if defined(OS_CHROMEOS) | 92 #if defined(OS_CHROMEOS) |
93 scoped_ptr<chromeos::DisplayConfigurationObserver> | 93 scoped_ptr<chromeos::DisplayConfigurationObserver> |
94 display_configuration_observer_; | 94 display_configuration_observer_; |
95 #endif | 95 #endif |
96 | 96 |
97 DISALLOW_COPY_AND_ASSIGN(ChromeShellDelegate); | 97 DISALLOW_COPY_AND_ASSIGN(ChromeShellDelegate); |
98 }; | 98 }; |
99 | 99 |
100 #endif // CHROME_BROWSER_UI_ASH_CHROME_SHELL_DELEGATE_H_ | 100 #endif // CHROME_BROWSER_UI_ASH_CHROME_SHELL_DELEGATE_H_ |
OLD | NEW |