| 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> |
| 9 |
| 8 #include "ash/launcher/launcher_types.h" | 10 #include "ash/launcher/launcher_types.h" |
| 9 #include "ash/shell_delegate.h" | 11 #include "ash/shell_delegate.h" |
| 10 #include "base/basictypes.h" | 12 #include "base/basictypes.h" |
| 11 #include "base/compiler_specific.h" | 13 #include "base/compiler_specific.h" |
| 12 #include "base/memory/scoped_ptr.h" | 14 #include "base/memory/scoped_ptr.h" |
| 13 #include "content/public/browser/notification_observer.h" | 15 #include "content/public/browser/notification_observer.h" |
| 14 #include "content/public/browser/notification_registrar.h" | 16 #include "content/public/browser/notification_registrar.h" |
| 15 | 17 |
| 16 class Browser; | 18 class Browser; |
| 17 | 19 |
| (...skipping 12 matching lines...) Expand all Loading... |
| 30 static ChromeShellDelegate* instance() { return instance_; } | 32 static ChromeShellDelegate* instance() { return instance_; } |
| 31 | 33 |
| 32 ash::WindowPositioner* window_positioner() { | 34 ash::WindowPositioner* window_positioner() { |
| 33 return window_positioner_.get(); | 35 return window_positioner_.get(); |
| 34 } | 36 } |
| 35 | 37 |
| 36 // ash::ShellDelegate overrides; | 38 // ash::ShellDelegate overrides; |
| 37 virtual bool IsUserLoggedIn() const OVERRIDE; | 39 virtual bool IsUserLoggedIn() const OVERRIDE; |
| 38 virtual bool IsSessionStarted() const OVERRIDE; | 40 virtual bool IsSessionStarted() const OVERRIDE; |
| 39 virtual bool IsFirstRunAfterBoot() const OVERRIDE; | 41 virtual bool IsFirstRunAfterBoot() const OVERRIDE; |
| 42 virtual bool IsRunningInForcedAppMode() const OVERRIDE; |
| 40 virtual bool CanLockScreen() const OVERRIDE; | 43 virtual bool CanLockScreen() const OVERRIDE; |
| 41 virtual void LockScreen() OVERRIDE; | 44 virtual void LockScreen() OVERRIDE; |
| 42 virtual void UnlockScreen() OVERRIDE; | 45 virtual void UnlockScreen() OVERRIDE; |
| 43 virtual bool IsScreenLocked() const OVERRIDE; | 46 virtual bool IsScreenLocked() const OVERRIDE; |
| 44 virtual void Shutdown() OVERRIDE; | 47 virtual void Shutdown() OVERRIDE; |
| 45 virtual void Exit() OVERRIDE; | 48 virtual void Exit() OVERRIDE; |
| 46 virtual void NewTab() OVERRIDE; | 49 virtual void NewTab() OVERRIDE; |
| 47 virtual void NewWindow(bool is_incognito) OVERRIDE; | 50 virtual void NewWindow(bool is_incognito) OVERRIDE; |
| 48 virtual void ToggleMaximized() OVERRIDE; | 51 virtual void ToggleMaximized() OVERRIDE; |
| 49 virtual void OpenFileManager(bool as_dialog) OVERRIDE; | 52 virtual void OpenFileManager(bool as_dialog) OVERRIDE; |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 103 scoped_ptr<ash::WindowPositioner> window_positioner_; | 106 scoped_ptr<ash::WindowPositioner> window_positioner_; |
| 104 | 107 |
| 105 base::WeakPtrFactory<ChromeShellDelegate> weak_factory_; | 108 base::WeakPtrFactory<ChromeShellDelegate> weak_factory_; |
| 106 | 109 |
| 107 ChromeLauncherController* launcher_delegate_; | 110 ChromeLauncherController* launcher_delegate_; |
| 108 | 111 |
| 109 DISALLOW_COPY_AND_ASSIGN(ChromeShellDelegate); | 112 DISALLOW_COPY_AND_ASSIGN(ChromeShellDelegate); |
| 110 }; | 113 }; |
| 111 | 114 |
| 112 #endif // CHROME_BROWSER_UI_ASH_CHROME_SHELL_DELEGATE_H_ | 115 #endif // CHROME_BROWSER_UI_ASH_CHROME_SHELL_DELEGATE_H_ |
| OLD | NEW |