OLD | NEW |
---|---|
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 "ui/gfx/native_widget_types.h" | 9 #include "ui/gfx/native_widget_types.h" |
10 | 10 |
11 namespace views { | 11 namespace views { |
(...skipping 19 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 // Different text styles for different types of backgrounds. | |
42 enum TextStyle { | |
sky
2011/05/02 14:26:27
enums should be first in a section.
| |
43 kWhitePlain, | |
44 kWhiteHaloed, | |
45 kGrayEmbossed | |
46 }; | |
47 | |
48 // Returns the text style. | |
49 virtual TextStyle GetTextStyle() const = 0; | |
50 | |
41 // The type of screen the host window is on. | 51 // The type of screen the host window is on. |
42 enum ScreenMode { | 52 enum ScreenMode { |
43 kLoginMode, // The host is for the OOBE/login screens. | 53 kLoginMode, // The host is for the OOBE/login screens. |
44 kBrowserMode, // The host is for browser. | 54 kBrowserMode, // The host is for browser. |
45 kScreenLockerMode, // The host is for screen locker. | 55 kScreenLockerMode, // The host is for screen locker. |
46 }; | 56 }; |
47 | 57 |
48 // Returns the type of screen. | 58 // Returns the type of screen. |
49 virtual ScreenMode GetScreenMode() const = 0; | 59 virtual ScreenMode GetScreenMode() const = 0; |
50 | 60 |
51 protected: | 61 protected: |
52 virtual ~StatusAreaHost() {} | 62 virtual ~StatusAreaHost() {} |
53 }; | 63 }; |
54 | 64 |
55 } // namespace chromeos | 65 } // namespace chromeos |
56 | 66 |
57 #endif // CHROME_BROWSER_CHROMEOS_STATUS_STATUS_AREA_HOST_H_ | 67 #endif // CHROME_BROWSER_CHROMEOS_STATUS_STATUS_AREA_HOST_H_ |
OLD | NEW |