| 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 ASH_SHELL_DELEGATE_H_ | 5 #ifndef ASH_SHELL_DELEGATE_H_ |
| 6 #define ASH_SHELL_DELEGATE_H_ | 6 #define ASH_SHELL_DELEGATE_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 42 // Windows are going to be cycled from the launcher. | 42 // Windows are going to be cycled from the launcher. |
| 43 SOURCE_LAUNCHER, | 43 SOURCE_LAUNCHER, |
| 44 }; | 44 }; |
| 45 | 45 |
| 46 // The Shell owns the delegate. | 46 // The Shell owns the delegate. |
| 47 virtual ~ShellDelegate() {} | 47 virtual ~ShellDelegate() {} |
| 48 | 48 |
| 49 // Invoked to create a new status area. Can return NULL. | 49 // Invoked to create a new status area. Can return NULL. |
| 50 virtual views::Widget* CreateStatusArea() = 0; | 50 virtual views::Widget* CreateStatusArea() = 0; |
| 51 | 51 |
| 52 #if defined(OS_CHROMEOS) | 52 // Invoked when a user locks the screen. |
| 53 // Invoked when a user uses Ctrl-Shift-L to lock the screen. | |
| 54 virtual void LockScreen() = 0; | 53 virtual void LockScreen() = 0; |
| 55 #endif | 54 |
| 55 virtual void UnlockScreen() = 0; |
| 56 |
| 57 // Returns true if the screen is currently locked. |
| 58 virtual bool IsScreenLocked() const = 0; |
| 56 | 59 |
| 57 // Invoked when a user uses Ctrl-Shift-Q to close chrome. | 60 // Invoked when a user uses Ctrl-Shift-Q to close chrome. |
| 58 virtual void Exit() = 0; | 61 virtual void Exit() = 0; |
| 59 | 62 |
| 60 // Invoked to create an AppListViewDelegate. Shell takes the ownership of | 63 // Invoked to create an AppListViewDelegate. Shell takes the ownership of |
| 61 // the created delegate. | 64 // the created delegate. |
| 62 virtual AppListViewDelegate* CreateAppListViewDelegate() = 0; | 65 virtual AppListViewDelegate* CreateAppListViewDelegate() = 0; |
| 63 | 66 |
| 64 // Returns a list of windows to cycle with keyboard shortcuts (e.g. alt-tab | 67 // Returns a list of windows to cycle with keyboard shortcuts (e.g. alt-tab |
| 65 // or the window switching key). If |order_by_activity| is true then windows | 68 // or the window switching key). If |order_by_activity| is true then windows |
| (...skipping 12 matching lines...) Expand all Loading... |
| 78 virtual LauncherDelegate* CreateLauncherDelegate( | 81 virtual LauncherDelegate* CreateLauncherDelegate( |
| 79 ash::LauncherModel* model) = 0; | 82 ash::LauncherModel* model) = 0; |
| 80 | 83 |
| 81 // Creates a system-tray delegate. Shell takes ownership of the delegate. | 84 // Creates a system-tray delegate. Shell takes ownership of the delegate. |
| 82 virtual SystemTrayDelegate* CreateSystemTrayDelegate(SystemTray* tray) = 0; | 85 virtual SystemTrayDelegate* CreateSystemTrayDelegate(SystemTray* tray) = 0; |
| 83 }; | 86 }; |
| 84 | 87 |
| 85 } // namespace ash | 88 } // namespace ash |
| 86 | 89 |
| 87 #endif // ASH_SHELL_DELEGATE_H_ | 90 #endif // ASH_SHELL_DELEGATE_H_ |
| OLD | NEW |