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 enum ScreenMode { |
satorux1
2011/01/21 07:59:33
Please add a comment about the enum type.
Yusuke Sato
2011/01/21 09:51:27
Done.
| |
42 virtual bool IsBrowserMode() const = 0; | 42 kLoginMode, // The host is for the OOBE/login screens. |
43 | 43 kBrowserMode, // The host is for browser. |
44 // True if status area hosted in screen locker. | 44 kScreenLockerMode, // The host is for screen locker. |
45 virtual bool IsScreenLockerMode() const = 0; | 45 }; |
46 // Returns the type of screen. | |
47 virtual ScreenMode GetScreenMode() const = 0; | |
46 | 48 |
47 protected: | 49 protected: |
48 virtual ~StatusAreaHost() {} | 50 virtual ~StatusAreaHost() {} |
49 }; | 51 }; |
50 | 52 |
51 } // namespace chromeos | 53 } // namespace chromeos |
52 | 54 |
53 #endif // CHROME_BROWSER_CHROMEOS_STATUS_STATUS_AREA_HOST_H_ | 55 #endif // CHROME_BROWSER_CHROMEOS_STATUS_STATUS_AREA_HOST_H_ |
OLD | NEW |