| 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_VIEWS_ASH_CHROME_SHELL_DELEGATE_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_ASH_CHROME_SHELL_DELEGATE_H_ |
| 6 #define CHROME_BROWSER_UI_VIEWS_ASH_CHROME_SHELL_DELEGATE_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_ASH_CHROME_SHELL_DELEGATE_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "ash/launcher/launcher_types.h" | 9 #include "ash/launcher/launcher_types.h" |
| 10 #include "ash/shell_delegate.h" | 10 #include "ash/shell_delegate.h" |
| (...skipping 19 matching lines...) Expand all Loading... |
| 30 | 30 |
| 31 WindowPositioner* window_positioner() { return window_positioner_.get(); } | 31 WindowPositioner* window_positioner() { return window_positioner_.get(); } |
| 32 | 32 |
| 33 // ash::ShellDelegate overrides; | 33 // ash::ShellDelegate overrides; |
| 34 virtual bool IsUserLoggedIn() OVERRIDE; | 34 virtual bool IsUserLoggedIn() 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 void Shutdown() OVERRIDE; | 38 virtual void Shutdown() OVERRIDE; |
| 39 virtual void Exit() OVERRIDE; | 39 virtual void Exit() OVERRIDE; |
| 40 virtual void NewTab() OVERRIDE; |
| 40 virtual void NewWindow(bool is_incognito) OVERRIDE; | 41 virtual void NewWindow(bool is_incognito) OVERRIDE; |
| 41 virtual void Search() OVERRIDE; | 42 virtual void Search() OVERRIDE; |
| 42 virtual void OpenFileManager() OVERRIDE; | 43 virtual void OpenFileManager() OVERRIDE; |
| 43 virtual void OpenCrosh() OVERRIDE; | 44 virtual void OpenCrosh() OVERRIDE; |
| 44 virtual void OpenMobileSetup() OVERRIDE; | 45 virtual void OpenMobileSetup() OVERRIDE; |
| 46 virtual void RestoreTab() OVERRIDE; |
| 45 virtual void ShowKeyboardOverlay() OVERRIDE; | 47 virtual void ShowKeyboardOverlay() OVERRIDE; |
| 48 virtual void ShowTaskManager() OVERRIDE; |
| 46 virtual content::BrowserContext* GetCurrentBrowserContext() OVERRIDE; | 49 virtual content::BrowserContext* GetCurrentBrowserContext() OVERRIDE; |
| 47 virtual void ToggleSpokenFeedback() OVERRIDE; | 50 virtual void ToggleSpokenFeedback() OVERRIDE; |
| 48 virtual app_list::AppListViewDelegate* CreateAppListViewDelegate() OVERRIDE; | 51 virtual app_list::AppListViewDelegate* CreateAppListViewDelegate() OVERRIDE; |
| 49 virtual void StartPartialScreenshot( | 52 virtual void StartPartialScreenshot( |
| 50 ash::ScreenshotDelegate* screenshot_delegate) OVERRIDE; | 53 ash::ScreenshotDelegate* screenshot_delegate) OVERRIDE; |
| 51 virtual ash::LauncherDelegate* CreateLauncherDelegate( | 54 virtual ash::LauncherDelegate* CreateLauncherDelegate( |
| 52 ash::LauncherModel* model) OVERRIDE; | 55 ash::LauncherModel* model) OVERRIDE; |
| 53 virtual ash::SystemTrayDelegate* CreateSystemTrayDelegate( | 56 virtual ash::SystemTrayDelegate* CreateSystemTrayDelegate( |
| 54 ash::SystemTray* tray) OVERRIDE; | 57 ash::SystemTray* tray) OVERRIDE; |
| 55 virtual ash::UserWallpaperDelegate* CreateUserWallpaperDelegate() OVERRIDE; | 58 virtual ash::UserWallpaperDelegate* CreateUserWallpaperDelegate() OVERRIDE; |
| 56 | 59 |
| 57 // content::NotificationObserver override: | 60 // content::NotificationObserver override: |
| 58 virtual void Observe(int type, | 61 virtual void Observe(int type, |
| 59 const content::NotificationSource& source, | 62 const content::NotificationSource& source, |
| 60 const content::NotificationDetails& details) OVERRIDE; | 63 const content::NotificationDetails& details) OVERRIDE; |
| 61 | 64 |
| 62 private: | 65 private: |
| 63 static ChromeShellDelegate* instance_; | 66 static ChromeShellDelegate* instance_; |
| 64 | 67 |
| 65 content::NotificationRegistrar registrar_; | 68 content::NotificationRegistrar registrar_; |
| 66 | 69 |
| 67 scoped_ptr<WindowPositioner> window_positioner_; | 70 scoped_ptr<WindowPositioner> window_positioner_; |
| 68 | 71 |
| 69 base::WeakPtrFactory<ChromeShellDelegate> weak_factory_; | 72 base::WeakPtrFactory<ChromeShellDelegate> weak_factory_; |
| 70 | 73 |
| 71 DISALLOW_COPY_AND_ASSIGN(ChromeShellDelegate); | 74 DISALLOW_COPY_AND_ASSIGN(ChromeShellDelegate); |
| 72 }; | 75 }; |
| 73 | 76 |
| 74 #endif // CHROME_BROWSER_UI_VIEWS_ASH_CHROME_SHELL_DELEGATE_H_ | 77 #endif // CHROME_BROWSER_UI_VIEWS_ASH_CHROME_SHELL_DELEGATE_H_ |
| OLD | NEW |