| OLD | NEW |
| (Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef ASH_SHELL_SHELL_DELEGATE_IMPL_H_ |
| 6 #define ASH_SHELL_SHELL_DELEGATE_IMPL_H_ |
| 7 #pragma once |
| 8 |
| 9 #include "ash/shell_delegate.h" |
| 10 #include "base/compiler_specific.h" |
| 11 |
| 12 namespace ash { |
| 13 namespace shell { |
| 14 |
| 15 class LauncherDelegateImpl; |
| 16 class WindowWatcher; |
| 17 |
| 18 class ShellDelegateImpl : public ash::ShellDelegate { |
| 19 public: |
| 20 ShellDelegateImpl(); |
| 21 virtual ~ShellDelegateImpl(); |
| 22 |
| 23 void SetWatcher(WindowWatcher* watcher); |
| 24 |
| 25 virtual views::Widget* CreateStatusArea() OVERRIDE; |
| 26 virtual void LockScreen() OVERRIDE; |
| 27 virtual void UnlockScreen() OVERRIDE; |
| 28 virtual bool IsScreenLocked() const OVERRIDE; |
| 29 virtual void Exit() OVERRIDE; |
| 30 virtual ash::AppListViewDelegate* CreateAppListViewDelegate() OVERRIDE; |
| 31 virtual std::vector<aura::Window*> GetCycleWindowList( |
| 32 CycleSource source) const OVERRIDE; |
| 33 virtual void StartPartialScreenshot( |
| 34 ash::ScreenshotDelegate* screenshot_delegate) OVERRIDE; |
| 35 virtual ash::LauncherDelegate* CreateLauncherDelegate( |
| 36 ash::LauncherModel* model) OVERRIDE; |
| 37 virtual ash::SystemTrayDelegate* CreateSystemTrayDelegate( |
| 38 ash::SystemTray* tray) OVERRIDE; |
| 39 |
| 40 private: |
| 41 // Used to update Launcher. Owned by main. |
| 42 WindowWatcher* watcher_; |
| 43 |
| 44 LauncherDelegateImpl* launcher_delegate_; |
| 45 |
| 46 bool locked_; |
| 47 |
| 48 DISALLOW_COPY_AND_ASSIGN(ShellDelegateImpl); |
| 49 }; |
| 50 |
| 51 } // namespace shell |
| 52 } // namespace ash |
| 53 |
| 54 #endif // ASH_SHELL_SHELL_DELEGATE_IMPL_H_ |
| OLD | NEW |