| 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 16 matching lines...) Expand all Loading... |
| 27 static ChromeShellDelegate* instance() { return instance_; } | 27 static ChromeShellDelegate* instance() { return instance_; } |
| 28 | 28 |
| 29 StatusAreaHostAura* status_area_host() { | 29 StatusAreaHostAura* status_area_host() { |
| 30 return status_area_host_.get(); | 30 return status_area_host_.get(); |
| 31 } | 31 } |
| 32 | 32 |
| 33 StatusAreaView* GetStatusArea(); | 33 StatusAreaView* GetStatusArea(); |
| 34 | 34 |
| 35 // ash::ShellDelegate overrides; | 35 // ash::ShellDelegate overrides; |
| 36 virtual views::Widget* CreateStatusArea() OVERRIDE; | 36 virtual views::Widget* CreateStatusArea() OVERRIDE; |
| 37 #if defined(OS_CHROMEOS) | |
| 38 virtual void LockScreen() OVERRIDE; | 37 virtual void LockScreen() OVERRIDE; |
| 39 #endif | 38 virtual void UnlockScreen() OVERRIDE; |
| 39 virtual bool IsScreenLocked() const OVERRIDE; |
| 40 virtual void Exit() OVERRIDE; | 40 virtual void Exit() OVERRIDE; |
| 41 virtual ash::AppListViewDelegate* CreateAppListViewDelegate() OVERRIDE; | 41 virtual ash::AppListViewDelegate* CreateAppListViewDelegate() OVERRIDE; |
| 42 virtual std::vector<aura::Window*> GetCycleWindowList( | 42 virtual std::vector<aura::Window*> GetCycleWindowList( |
| 43 CycleSource source) const OVERRIDE; | 43 CycleSource source) const OVERRIDE; |
| 44 virtual void StartPartialScreenshot( | 44 virtual void StartPartialScreenshot( |
| 45 ash::ScreenshotDelegate* screenshot_delegate) OVERRIDE; | 45 ash::ScreenshotDelegate* screenshot_delegate) OVERRIDE; |
| 46 virtual ash::LauncherDelegate* CreateLauncherDelegate( | 46 virtual ash::LauncherDelegate* CreateLauncherDelegate( |
| 47 ash::LauncherModel* model) OVERRIDE; | 47 ash::LauncherModel* model) OVERRIDE; |
| 48 virtual ash::SystemTrayDelegate* CreateSystemTrayDelegate( | 48 virtual ash::SystemTrayDelegate* CreateSystemTrayDelegate( |
| 49 ash::SystemTray* tray) OVERRIDE; | 49 ash::SystemTray* tray) OVERRIDE; |
| 50 | 50 |
| 51 private: | 51 private: |
| 52 static ChromeShellDelegate* instance_; | 52 static ChromeShellDelegate* instance_; |
| 53 | 53 |
| 54 scoped_ptr<StatusAreaHostAura> status_area_host_; | 54 scoped_ptr<StatusAreaHostAura> status_area_host_; |
| 55 | 55 |
| 56 DISALLOW_COPY_AND_ASSIGN(ChromeShellDelegate); | 56 DISALLOW_COPY_AND_ASSIGN(ChromeShellDelegate); |
| 57 }; | 57 }; |
| 58 | 58 |
| 59 #endif // CHROME_BROWSER_UI_VIEWS_ASH_CHROME_SHELL_DELEGATE_H_ | 59 #endif // CHROME_BROWSER_UI_VIEWS_ASH_CHROME_SHELL_DELEGATE_H_ |
| OLD | NEW |