| 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 "ash/launcher/launcher_types.h" | 8 #include "ash/launcher/launcher_types.h" |
| 9 #include "ash/shell_delegate.h" | 9 #include "ash/shell_delegate.h" |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 13 matching lines...) Expand all Loading... |
| 24 public: | 24 public: |
| 25 ChromeShellDelegate(); | 25 ChromeShellDelegate(); |
| 26 virtual ~ChromeShellDelegate(); | 26 virtual ~ChromeShellDelegate(); |
| 27 | 27 |
| 28 static ChromeShellDelegate* instance() { return instance_; } | 28 static ChromeShellDelegate* instance() { return instance_; } |
| 29 | 29 |
| 30 WindowPositioner* window_positioner() { return window_positioner_.get(); } | 30 WindowPositioner* window_positioner() { return window_positioner_.get(); } |
| 31 | 31 |
| 32 // ash::ShellDelegate overrides; | 32 // ash::ShellDelegate overrides; |
| 33 virtual bool IsUserLoggedIn() OVERRIDE; | 33 virtual bool IsUserLoggedIn() OVERRIDE; |
| 34 virtual bool IsSessionStarted() OVERRIDE; | 34 virtual bool IsSessionStarted() const OVERRIDE; |
| 35 virtual void LockScreen() OVERRIDE; | 35 virtual void LockScreen() OVERRIDE; |
| 36 virtual void UnlockScreen() OVERRIDE; | 36 virtual void UnlockScreen() OVERRIDE; |
| 37 virtual bool IsScreenLocked() const OVERRIDE; | 37 virtual bool IsScreenLocked() const OVERRIDE; |
| 38 virtual bool IsStatusAreaInitiallyVisible() const OVERRIDE; |
| 38 virtual void Shutdown() OVERRIDE; | 39 virtual void Shutdown() OVERRIDE; |
| 39 virtual void Exit() OVERRIDE; | 40 virtual void Exit() OVERRIDE; |
| 40 virtual void NewTab() OVERRIDE; | 41 virtual void NewTab() OVERRIDE; |
| 41 virtual void NewWindow(bool is_incognito) OVERRIDE; | 42 virtual void NewWindow(bool is_incognito) OVERRIDE; |
| 42 virtual void OpenFileManager(bool as_dialog) OVERRIDE; | 43 virtual void OpenFileManager(bool as_dialog) OVERRIDE; |
| 43 virtual void OpenCrosh() OVERRIDE; | 44 virtual void OpenCrosh() OVERRIDE; |
| 44 virtual void OpenMobileSetup(const std::string& service_path) OVERRIDE; | 45 virtual void OpenMobileSetup(const std::string& service_path) OVERRIDE; |
| 45 virtual void RestoreTab() OVERRIDE; | 46 virtual void RestoreTab() OVERRIDE; |
| 46 virtual bool RotatePaneFocus(ash::Shell::Direction direction) OVERRIDE; | 47 virtual bool RotatePaneFocus(ash::Shell::Direction direction) OVERRIDE; |
| 47 virtual void ShowKeyboardOverlay() OVERRIDE; | 48 virtual void ShowKeyboardOverlay() OVERRIDE; |
| (...skipping 22 matching lines...) Expand all Loading... |
| 70 content::NotificationRegistrar registrar_; | 71 content::NotificationRegistrar registrar_; |
| 71 | 72 |
| 72 scoped_ptr<WindowPositioner> window_positioner_; | 73 scoped_ptr<WindowPositioner> window_positioner_; |
| 73 | 74 |
| 74 base::WeakPtrFactory<ChromeShellDelegate> weak_factory_; | 75 base::WeakPtrFactory<ChromeShellDelegate> weak_factory_; |
| 75 | 76 |
| 76 DISALLOW_COPY_AND_ASSIGN(ChromeShellDelegate); | 77 DISALLOW_COPY_AND_ASSIGN(ChromeShellDelegate); |
| 77 }; | 78 }; |
| 78 | 79 |
| 79 #endif // CHROME_BROWSER_UI_ASH_CHROME_SHELL_DELEGATE_H_ | 80 #endif // CHROME_BROWSER_UI_ASH_CHROME_SHELL_DELEGATE_H_ |
| OLD | NEW |