| 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 18 matching lines...) Expand all Loading... |
| 29 | 29 |
| 30 static ChromeShellDelegate* instance() { return instance_; } | 30 static ChromeShellDelegate* instance() { return instance_; } |
| 31 | 31 |
| 32 ash::WindowPositioner* window_positioner() { | 32 ash::WindowPositioner* window_positioner() { |
| 33 return window_positioner_.get(); | 33 return window_positioner_.get(); |
| 34 } | 34 } |
| 35 | 35 |
| 36 // ash::ShellDelegate overrides; | 36 // ash::ShellDelegate overrides; |
| 37 virtual bool IsUserLoggedIn() OVERRIDE; | 37 virtual bool IsUserLoggedIn() OVERRIDE; |
| 38 virtual bool IsSessionStarted() OVERRIDE; | 38 virtual bool IsSessionStarted() OVERRIDE; |
| 39 virtual bool IsFirstRunAfterBoot() OVERRIDE; |
| 39 virtual void LockScreen() OVERRIDE; | 40 virtual void LockScreen() OVERRIDE; |
| 40 virtual void UnlockScreen() OVERRIDE; | 41 virtual void UnlockScreen() OVERRIDE; |
| 41 virtual bool IsScreenLocked() const OVERRIDE; | 42 virtual bool IsScreenLocked() const OVERRIDE; |
| 42 virtual void Shutdown() OVERRIDE; | 43 virtual void Shutdown() OVERRIDE; |
| 43 virtual void Exit() OVERRIDE; | 44 virtual void Exit() OVERRIDE; |
| 44 virtual void NewTab() OVERRIDE; | 45 virtual void NewTab() OVERRIDE; |
| 45 virtual void NewWindow(bool is_incognito) OVERRIDE; | 46 virtual void NewWindow(bool is_incognito) OVERRIDE; |
| 46 virtual void OpenFileManager(bool as_dialog) OVERRIDE; | 47 virtual void OpenFileManager(bool as_dialog) OVERRIDE; |
| 47 virtual void OpenCrosh() OVERRIDE; | 48 virtual void OpenCrosh() OVERRIDE; |
| 48 virtual void OpenMobileSetup(const std::string& service_path) OVERRIDE; | 49 virtual void OpenMobileSetup(const std::string& service_path) OVERRIDE; |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 81 content::NotificationRegistrar registrar_; | 82 content::NotificationRegistrar registrar_; |
| 82 | 83 |
| 83 scoped_ptr<ash::WindowPositioner> window_positioner_; | 84 scoped_ptr<ash::WindowPositioner> window_positioner_; |
| 84 | 85 |
| 85 base::WeakPtrFactory<ChromeShellDelegate> weak_factory_; | 86 base::WeakPtrFactory<ChromeShellDelegate> weak_factory_; |
| 86 | 87 |
| 87 DISALLOW_COPY_AND_ASSIGN(ChromeShellDelegate); | 88 DISALLOW_COPY_AND_ASSIGN(ChromeShellDelegate); |
| 88 }; | 89 }; |
| 89 | 90 |
| 90 #endif // CHROME_BROWSER_UI_ASH_CHROME_SHELL_DELEGATE_H_ | 91 #endif // CHROME_BROWSER_UI_ASH_CHROME_SHELL_DELEGATE_H_ |
| OLD | NEW |