| 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 21 matching lines...) Expand all Loading... |
| 32 class ChromeLauncherController; | 32 class ChromeLauncherController; |
| 33 | 33 |
| 34 class ChromeShellDelegate : public ash::ShellDelegate, | 34 class ChromeShellDelegate : public ash::ShellDelegate, |
| 35 public content::NotificationObserver { | 35 public content::NotificationObserver { |
| 36 public: | 36 public: |
| 37 ChromeShellDelegate(); | 37 ChromeShellDelegate(); |
| 38 virtual ~ChromeShellDelegate(); | 38 virtual ~ChromeShellDelegate(); |
| 39 | 39 |
| 40 static ChromeShellDelegate* instance() { return instance_; } | 40 static ChromeShellDelegate* instance() { return instance_; } |
| 41 | 41 |
| 42 // Prefer the version in ImmersiveModeController. | |
| 43 static bool UseImmersiveFullscreen(); | |
| 44 | |
| 45 ash::WindowPositioner* window_positioner() { | 42 ash::WindowPositioner* window_positioner() { |
| 46 return window_positioner_.get(); | 43 return window_positioner_.get(); |
| 47 } | 44 } |
| 48 | 45 |
| 49 // ash::ShellDelegate overrides; | 46 // ash::ShellDelegate overrides; |
| 50 virtual bool IsFirstRunAfterBoot() const OVERRIDE; | 47 virtual bool IsFirstRunAfterBoot() const OVERRIDE; |
| 51 virtual bool IsMultiProfilesEnabled() const OVERRIDE; | 48 virtual bool IsMultiProfilesEnabled() const OVERRIDE; |
| 52 virtual bool IsRunningInForcedAppMode() const OVERRIDE; | 49 virtual bool IsRunningInForcedAppMode() const OVERRIDE; |
| 53 virtual void PreInit() OVERRIDE; | 50 virtual void PreInit() OVERRIDE; |
| 54 virtual void Shutdown() OVERRIDE; | 51 virtual void Shutdown() OVERRIDE; |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 121 base::WeakPtrFactory<ChromeShellDelegate> weak_factory_; | 118 base::WeakPtrFactory<ChromeShellDelegate> weak_factory_; |
| 122 | 119 |
| 123 ChromeLauncherController* launcher_delegate_; | 120 ChromeLauncherController* launcher_delegate_; |
| 124 | 121 |
| 125 scoped_ptr<TabRestoreHelper> tab_restore_helper_; | 122 scoped_ptr<TabRestoreHelper> tab_restore_helper_; |
| 126 | 123 |
| 127 DISALLOW_COPY_AND_ASSIGN(ChromeShellDelegate); | 124 DISALLOW_COPY_AND_ASSIGN(ChromeShellDelegate); |
| 128 }; | 125 }; |
| 129 | 126 |
| 130 #endif // CHROME_BROWSER_UI_ASH_CHROME_SHELL_DELEGATE_H_ | 127 #endif // CHROME_BROWSER_UI_ASH_CHROME_SHELL_DELEGATE_H_ |
| OLD | NEW |