OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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_CHROMEOS_STATUS_STATUS_AREA_HOST_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_STATUS_STATUS_AREA_HOST_H_ |
6 #define CHROME_BROWSER_CHROMEOS_STATUS_STATUS_AREA_HOST_H_ | 6 #define CHROME_BROWSER_CHROMEOS_STATUS_STATUS_AREA_HOST_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "gfx/native_widget_types.h" | 9 #include "gfx/native_widget_types.h" |
10 | 10 |
(...skipping 20 matching lines...) Expand all Loading... |
31 // shown. | 31 // shown. |
32 virtual bool ShouldOpenButtonOptions( | 32 virtual bool ShouldOpenButtonOptions( |
33 const views::View* button_view) const = 0; | 33 const views::View* button_view) const = 0; |
34 | 34 |
35 // Opens options dialog related to the button specified. | 35 // Opens options dialog related to the button specified. |
36 virtual void OpenButtonOptions(const views::View* button_view) = 0; | 36 virtual void OpenButtonOptions(const views::View* button_view) = 0; |
37 | 37 |
38 // Executes browser command. | 38 // Executes browser command. |
39 virtual void ExecuteBrowserCommand(int id) const = 0; | 39 virtual void ExecuteBrowserCommand(int id) const = 0; |
40 | 40 |
41 // True if status area hosted in browser. Otherwise it's OOBE/login state. | 41 // The type of screen the host window is on. |
42 virtual bool IsBrowserMode() const = 0; | 42 enum ScreenMode { |
| 43 kLoginMode, // The host is for the OOBE/login screens. |
| 44 kBrowserMode, // The host is for browser. |
| 45 kScreenLockerMode, // The host is for screen locker. |
| 46 }; |
43 | 47 |
44 // True if status area hosted in screen locker. | 48 // Returns the type of screen. |
45 virtual bool IsScreenLockerMode() const = 0; | 49 virtual ScreenMode GetScreenMode() const = 0; |
46 | 50 |
47 protected: | 51 protected: |
48 virtual ~StatusAreaHost() {} | 52 virtual ~StatusAreaHost() {} |
49 }; | 53 }; |
50 | 54 |
51 } // namespace chromeos | 55 } // namespace chromeos |
52 | 56 |
53 #endif // CHROME_BROWSER_CHROMEOS_STATUS_STATUS_AREA_HOST_H_ | 57 #endif // CHROME_BROWSER_CHROMEOS_STATUS_STATUS_AREA_HOST_H_ |
OLD | NEW |