OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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_VIEW_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_STATUS_STATUS_AREA_VIEW_H_ |
6 #define CHROME_BROWSER_CHROMEOS_STATUS_STATUS_AREA_VIEW_H_ | 6 #define CHROME_BROWSER_CHROMEOS_STATUS_STATUS_AREA_VIEW_H_ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "views/view.h" | 9 #include "views/view.h" |
10 | 10 |
11 namespace chromeos { | 11 namespace chromeos { |
12 | 12 |
13 class ClockMenuButton; | 13 class ClockMenuButton; |
14 class FeedbackMenuButton; | |
15 class LanguageMenuButton; | 14 class LanguageMenuButton; |
16 class NetworkMenuButton; | 15 class NetworkMenuButton; |
17 class PowerMenuButton; | 16 class PowerMenuButton; |
18 class StatusAreaHost; | 17 class StatusAreaHost; |
19 | 18 |
20 // This class is used to wrap the small informative widgets in the upper-right | 19 // This class is used to wrap the small informative widgets in the upper-right |
21 // of the window title bar. It is used on ChromeOS only. | 20 // of the window title bar. It is used on ChromeOS only. |
22 class StatusAreaView : public views::View { | 21 class StatusAreaView : public views::View { |
23 public: | 22 public: |
24 enum OpenTabsMode { | 23 enum OpenTabsMode { |
(...skipping 13 matching lines...) Expand all Loading... |
38 | 37 |
39 // views::View* overrides. | 38 // views::View* overrides. |
40 virtual gfx::Size GetPreferredSize(); | 39 virtual gfx::Size GetPreferredSize(); |
41 virtual void Layout(); | 40 virtual void Layout(); |
42 virtual void ChildPreferredSizeChanged(View* child); | 41 virtual void ChildPreferredSizeChanged(View* child); |
43 | 42 |
44 static OpenTabsMode GetOpenTabsMode(); | 43 static OpenTabsMode GetOpenTabsMode(); |
45 static void SetOpenTabsMode(OpenTabsMode mode); | 44 static void SetOpenTabsMode(OpenTabsMode mode); |
46 | 45 |
47 ClockMenuButton* clock_view() { return clock_view_; } | 46 ClockMenuButton* clock_view() { return clock_view_; } |
48 FeedbackMenuButton* feedback_view() { return feedback_view_; } | |
49 LanguageMenuButton* language_view() { return language_view_; } | 47 LanguageMenuButton* language_view() { return language_view_; } |
50 NetworkMenuButton* network_view() { return network_view_; } | 48 NetworkMenuButton* network_view() { return network_view_; } |
51 PowerMenuButton* power_view() { return power_view_; } | 49 PowerMenuButton* power_view() { return power_view_; } |
52 | 50 |
53 private: | 51 private: |
54 StatusAreaHost* host_; | 52 StatusAreaHost* host_; |
55 | 53 |
56 ClockMenuButton* clock_view_; | 54 ClockMenuButton* clock_view_; |
57 FeedbackMenuButton* feedback_view_; | |
58 LanguageMenuButton* language_view_; | 55 LanguageMenuButton* language_view_; |
59 NetworkMenuButton* network_view_; | 56 NetworkMenuButton* network_view_; |
60 PowerMenuButton* power_view_; | 57 PowerMenuButton* power_view_; |
61 | 58 |
62 static OpenTabsMode open_tabs_mode_; | 59 static OpenTabsMode open_tabs_mode_; |
63 | 60 |
64 DISALLOW_COPY_AND_ASSIGN(StatusAreaView); | 61 DISALLOW_COPY_AND_ASSIGN(StatusAreaView); |
65 }; | 62 }; |
66 | 63 |
67 } // namespace chromeos | 64 } // namespace chromeos |
68 | 65 |
69 #endif // CHROME_BROWSER_CHROMEOS_STATUS_STATUS_AREA_VIEW_H_ | 66 #endif // CHROME_BROWSER_CHROMEOS_STATUS_STATUS_AREA_VIEW_H_ |
OLD | NEW |