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 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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::LauncherItem* item) OVERRIDE; |
74 virtual ash::WindowTreeHostFactory* CreateWindowTreeHostFactory() OVERRIDE; | 74 virtual ash::WindowTreeHostFactory* CreateWindowTreeHostFactory() OVERRIDE; |
| 75 virtual ash::GPUSupport* CreateGPUSupport() OVERRIDE; |
75 virtual base::string16 GetProductName() const OVERRIDE; | 76 virtual base::string16 GetProductName() const OVERRIDE; |
76 | 77 |
77 // content::NotificationObserver override: | 78 // content::NotificationObserver override: |
78 virtual void Observe(int type, | 79 virtual void Observe(int type, |
79 const content::NotificationSource& source, | 80 const content::NotificationSource& source, |
80 const content::NotificationDetails& details) OVERRIDE; | 81 const content::NotificationDetails& details) OVERRIDE; |
81 | 82 |
82 private: | 83 private: |
83 void PlatformInit(); | 84 void PlatformInit(); |
84 | 85 |
85 static ChromeShellDelegate* instance_; | 86 static ChromeShellDelegate* instance_; |
86 | 87 |
87 content::NotificationRegistrar registrar_; | 88 content::NotificationRegistrar registrar_; |
88 | 89 |
89 ChromeLauncherController* shelf_delegate_; | 90 ChromeLauncherController* shelf_delegate_; |
90 | 91 |
91 #if defined(OS_CHROMEOS) | 92 #if defined(OS_CHROMEOS) |
92 scoped_ptr<chromeos::DisplayConfigurationObserver> | 93 scoped_ptr<chromeos::DisplayConfigurationObserver> |
93 display_configuration_observer_; | 94 display_configuration_observer_; |
94 #endif | 95 #endif |
95 | 96 |
96 DISALLOW_COPY_AND_ASSIGN(ChromeShellDelegate); | 97 DISALLOW_COPY_AND_ASSIGN(ChromeShellDelegate); |
97 }; | 98 }; |
98 | 99 |
99 #endif // CHROME_BROWSER_UI_ASH_CHROME_SHELL_DELEGATE_H_ | 100 #endif // CHROME_BROWSER_UI_ASH_CHROME_SHELL_DELEGATE_H_ |
OLD | NEW |