| 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/shelf/shelf_item_types.h" | 10 #include "ash/shelf/shelf_item_types.h" |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 | 21 |
| 22 namespace ash { | 22 namespace ash { |
| 23 class ShelfItemDelegate; | 23 class ShelfItemDelegate; |
| 24 } | 24 } |
| 25 | 25 |
| 26 namespace content { | 26 namespace content { |
| 27 class WebContents; | 27 class WebContents; |
| 28 } | 28 } |
| 29 | 29 |
| 30 namespace keyboard { | 30 namespace keyboard { |
| 31 class KeyboardControllerProxy; | 31 class KeyboardUI; |
| 32 } | 32 } |
| 33 | 33 |
| 34 #if defined(OS_CHROMEOS) | 34 #if defined(OS_CHROMEOS) |
| 35 namespace chromeos { | 35 namespace chromeos { |
| 36 class DisplayConfigurationObserver; | 36 class DisplayConfigurationObserver; |
| 37 } | 37 } |
| 38 #endif | 38 #endif |
| 39 | 39 |
| 40 class ChromeLauncherController; | 40 class ChromeLauncherController; |
| 41 | 41 |
| 42 class ChromeShellDelegate : public ash::ShellDelegate, | 42 class ChromeShellDelegate : public ash::ShellDelegate, |
| 43 public content::NotificationObserver { | 43 public content::NotificationObserver { |
| 44 public: | 44 public: |
| 45 ChromeShellDelegate(); | 45 ChromeShellDelegate(); |
| 46 ~ChromeShellDelegate() override; | 46 ~ChromeShellDelegate() override; |
| 47 | 47 |
| 48 static ChromeShellDelegate* instance() { return instance_; } | 48 static ChromeShellDelegate* instance() { return instance_; } |
| 49 | 49 |
| 50 // ash::ShellDelegate overrides; | 50 // ash::ShellDelegate overrides; |
| 51 bool IsFirstRunAfterBoot() const override; | 51 bool IsFirstRunAfterBoot() const override; |
| 52 bool IsMultiProfilesEnabled() const override; | 52 bool IsMultiProfilesEnabled() const override; |
| 53 bool IsIncognitoAllowed() const override; | 53 bool IsIncognitoAllowed() const override; |
| 54 bool IsRunningInForcedAppMode() const override; | 54 bool IsRunningInForcedAppMode() const override; |
| 55 bool IsMultiAccountEnabled() const override; | 55 bool IsMultiAccountEnabled() const override; |
| 56 bool CanShowWindowForUser(aura::Window* window) const override; | 56 bool CanShowWindowForUser(aura::Window* window) const override; |
| 57 bool IsForceMaximizeOnFirstRun() const override; | 57 bool IsForceMaximizeOnFirstRun() const override; |
| 58 void PreInit() override; | 58 void PreInit() override; |
| 59 void PreShutdown() override; | 59 void PreShutdown() override; |
| 60 void Exit() override; | 60 void Exit() override; |
| 61 keyboard::KeyboardControllerProxy* CreateKeyboardControllerProxy() override; | 61 keyboard::KeyboardUI* CreateKeyboardUI() override; |
| 62 void VirtualKeyboardActivated(bool activated) override; | 62 void VirtualKeyboardActivated(bool activated) override; |
| 63 void AddVirtualKeyboardStateObserver( | 63 void AddVirtualKeyboardStateObserver( |
| 64 ash::VirtualKeyboardStateObserver* observer) override; | 64 ash::VirtualKeyboardStateObserver* observer) override; |
| 65 void RemoveVirtualKeyboardStateObserver( | 65 void RemoveVirtualKeyboardStateObserver( |
| 66 ash::VirtualKeyboardStateObserver* observer) override; | 66 ash::VirtualKeyboardStateObserver* observer) override; |
| 67 app_list::AppListViewDelegate* GetAppListViewDelegate() override; | 67 app_list::AppListViewDelegate* GetAppListViewDelegate() override; |
| 68 ash::ShelfDelegate* CreateShelfDelegate(ash::ShelfModel* model) override; | 68 ash::ShelfDelegate* CreateShelfDelegate(ash::ShelfModel* model) override; |
| 69 ash::SystemTrayDelegate* CreateSystemTrayDelegate() override; | 69 ash::SystemTrayDelegate* CreateSystemTrayDelegate() override; |
| 70 ash::UserWallpaperDelegate* CreateUserWallpaperDelegate() override; | 70 ash::UserWallpaperDelegate* CreateUserWallpaperDelegate() override; |
| 71 ash::SessionStateDelegate* CreateSessionStateDelegate() override; | 71 ash::SessionStateDelegate* CreateSessionStateDelegate() override; |
| (...skipping 30 matching lines...) Expand all Loading... |
| 102 | 102 |
| 103 #if defined(OS_CHROMEOS) | 103 #if defined(OS_CHROMEOS) |
| 104 scoped_ptr<chromeos::DisplayConfigurationObserver> | 104 scoped_ptr<chromeos::DisplayConfigurationObserver> |
| 105 display_configuration_observer_; | 105 display_configuration_observer_; |
| 106 #endif | 106 #endif |
| 107 | 107 |
| 108 DISALLOW_COPY_AND_ASSIGN(ChromeShellDelegate); | 108 DISALLOW_COPY_AND_ASSIGN(ChromeShellDelegate); |
| 109 }; | 109 }; |
| 110 | 110 |
| 111 #endif // CHROME_BROWSER_UI_ASH_CHROME_SHELL_DELEGATE_H_ | 111 #endif // CHROME_BROWSER_UI_ASH_CHROME_SHELL_DELEGATE_H_ |
| OLD | NEW |