| 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 <memory> | 8 #include <memory> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 24 matching lines...) Expand all Loading... |
| 35 bool IsMultiProfilesEnabled() const override; | 35 bool IsMultiProfilesEnabled() const override; |
| 36 bool IsIncognitoAllowed() const override; | 36 bool IsIncognitoAllowed() const override; |
| 37 bool IsRunningInForcedAppMode() const override; | 37 bool IsRunningInForcedAppMode() const override; |
| 38 bool CanShowWindowForUser(ash::WmWindow* window) const override; | 38 bool CanShowWindowForUser(ash::WmWindow* window) const override; |
| 39 bool IsForceMaximizeOnFirstRun() const override; | 39 bool IsForceMaximizeOnFirstRun() const override; |
| 40 void PreInit() override; | 40 void PreInit() override; |
| 41 void PreShutdown() override; | 41 void PreShutdown() override; |
| 42 void Exit() override; | 42 void Exit() override; |
| 43 keyboard::KeyboardUI* CreateKeyboardUI() override; | 43 keyboard::KeyboardUI* CreateKeyboardUI() override; |
| 44 void OpenUrlFromArc(const GURL& url) override; | 44 void OpenUrlFromArc(const GURL& url) override; |
| 45 ash::ShelfDelegate* CreateShelfDelegate(ash::ShelfModel* model) override; | 45 void ShelfInit() override; |
| 46 void ShelfShutdown() override; |
| 46 ash::SystemTrayDelegate* CreateSystemTrayDelegate() override; | 47 ash::SystemTrayDelegate* CreateSystemTrayDelegate() override; |
| 47 std::unique_ptr<ash::WallpaperDelegate> CreateWallpaperDelegate() override; | 48 std::unique_ptr<ash::WallpaperDelegate> CreateWallpaperDelegate() override; |
| 48 ash::SessionStateDelegate* CreateSessionStateDelegate() override; | 49 ash::SessionStateDelegate* CreateSessionStateDelegate() override; |
| 49 ash::AccessibilityDelegate* CreateAccessibilityDelegate() override; | 50 ash::AccessibilityDelegate* CreateAccessibilityDelegate() override; |
| 50 std::unique_ptr<ash::PaletteDelegate> CreatePaletteDelegate() override; | 51 std::unique_ptr<ash::PaletteDelegate> CreatePaletteDelegate() override; |
| 51 ui::MenuModel* CreateContextMenu(ash::WmShelf* wm_shelf, | 52 ui::MenuModel* CreateContextMenu(ash::WmShelf* wm_shelf, |
| 52 const ash::ShelfItem* item) override; | 53 const ash::ShelfItem* item) override; |
| 53 ash::GPUSupport* CreateGPUSupport() override; | 54 ash::GPUSupport* CreateGPUSupport() override; |
| 54 base::string16 GetProductName() const override; | 55 base::string16 GetProductName() const override; |
| 55 void OpenKeyboardShortcutHelpPage() const override; | 56 void OpenKeyboardShortcutHelpPage() const override; |
| 56 gfx::Image GetDeprecatedAcceleratorImage() const override; | 57 gfx::Image GetDeprecatedAcceleratorImage() const override; |
| 57 bool IsTouchscreenEnabledInPrefs(bool use_local_state) const override; | 58 bool IsTouchscreenEnabledInPrefs(bool use_local_state) const override; |
| 58 void SetTouchscreenEnabledInPrefs(bool enabled, | 59 void SetTouchscreenEnabledInPrefs(bool enabled, |
| 59 bool use_local_state) override; | 60 bool use_local_state) override; |
| 60 void UpdateTouchscreenStatusFromPrefs() override; | 61 void UpdateTouchscreenStatusFromPrefs() override; |
| 61 void ToggleTouchpad() override; | 62 void ToggleTouchpad() override; |
| 62 | 63 |
| 63 // content::NotificationObserver override: | 64 // content::NotificationObserver override: |
| 64 void Observe(int type, | 65 void Observe(int type, |
| 65 const content::NotificationSource& source, | 66 const content::NotificationSource& source, |
| 66 const content::NotificationDetails& details) override; | 67 const content::NotificationDetails& details) override; |
| 67 | 68 |
| 68 private: | 69 private: |
| 69 void PlatformInit(); | 70 void PlatformInit(); |
| 70 | 71 |
| 71 content::NotificationRegistrar registrar_; | 72 content::NotificationRegistrar registrar_; |
| 72 | 73 |
| 73 ChromeLauncherControllerImpl* shelf_delegate_; | 74 std::unique_ptr<ChromeLauncherControllerImpl> launcher_controller_; |
| 74 | 75 |
| 75 std::unique_ptr<chromeos::DisplayConfigurationObserver> | 76 std::unique_ptr<chromeos::DisplayConfigurationObserver> |
| 76 display_configuration_observer_; | 77 display_configuration_observer_; |
| 77 | 78 |
| 78 DISALLOW_COPY_AND_ASSIGN(ChromeShellDelegate); | 79 DISALLOW_COPY_AND_ASSIGN(ChromeShellDelegate); |
| 79 }; | 80 }; |
| 80 | 81 |
| 81 #endif // CHROME_BROWSER_UI_ASH_CHROME_SHELL_DELEGATE_H_ | 82 #endif // CHROME_BROWSER_UI_ASH_CHROME_SHELL_DELEGATE_H_ |
| OLD | NEW |