| 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 20 matching lines...) Expand all Loading... |
| 31 class SystemTray; | 31 class SystemTray; |
| 32 class SystemTrayDelegate; | 32 class SystemTrayDelegate; |
| 33 class UserWallpaperDelegate; | 33 class UserWallpaperDelegate; |
| 34 | 34 |
| 35 // Delegate of the Shell. | 35 // Delegate of the Shell. |
| 36 class ASH_EXPORT ShellDelegate { | 36 class ASH_EXPORT ShellDelegate { |
| 37 public: | 37 public: |
| 38 // The Shell owns the delegate. | 38 // The Shell owns the delegate. |
| 39 virtual ~ShellDelegate() {} | 39 virtual ~ShellDelegate() {} |
| 40 | 40 |
| 41 // Invoked to create a new status area. Can return NULL. | |
| 42 virtual views::Widget* CreateStatusArea() = 0; | |
| 43 | |
| 44 // Returns true if user has logged in. | 41 // Returns true if user has logged in. |
| 45 virtual bool IsUserLoggedIn() = 0; | 42 virtual bool IsUserLoggedIn() = 0; |
| 46 | 43 |
| 47 // Invoked when a user locks the screen. | 44 // Invoked when a user locks the screen. |
| 48 virtual void LockScreen() = 0; | 45 virtual void LockScreen() = 0; |
| 49 | 46 |
| 50 // Unlock the screen. Currently used only for tests. | 47 // Unlock the screen. Currently used only for tests. |
| 51 virtual void UnlockScreen() = 0; | 48 virtual void UnlockScreen() = 0; |
| 52 | 49 |
| 53 // Returns true if the screen is currently locked. | 50 // Returns true if the screen is currently locked. |
| (...skipping 21 matching lines...) Expand all Loading... |
| 75 // Creates a system-tray delegate. Shell takes ownership of the delegate. | 72 // Creates a system-tray delegate. Shell takes ownership of the delegate. |
| 76 virtual SystemTrayDelegate* CreateSystemTrayDelegate(SystemTray* tray) = 0; | 73 virtual SystemTrayDelegate* CreateSystemTrayDelegate(SystemTray* tray) = 0; |
| 77 | 74 |
| 78 // Creates a user wallpaper delegate. Shell takes ownership of the delegate. | 75 // Creates a user wallpaper delegate. Shell takes ownership of the delegate. |
| 79 virtual UserWallpaperDelegate* CreateUserWallpaperDelegate() = 0; | 76 virtual UserWallpaperDelegate* CreateUserWallpaperDelegate() = 0; |
| 80 }; | 77 }; |
| 81 | 78 |
| 82 } // namespace ash | 79 } // namespace ash |
| 83 | 80 |
| 84 #endif // ASH_SHELL_DELEGATE_H_ | 81 #endif // ASH_SHELL_DELEGATE_H_ |
| OLD | NEW |