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_AREA_VIEW_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_STATUS_AREA_VIEW_H_ |
6 #define CHROME_BROWSER_CHROMEOS_STATUS_AREA_VIEW_H_ | 6 #define CHROME_BROWSER_CHROMEOS_STATUS_AREA_VIEW_H_ |
7 | 7 |
8 #include "app/gfx/native_widget_types.h" | 8 #include "app/gfx/native_widget_types.h" |
9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
10 #include "views/controls/menu/simple_menu_model.h" | 10 #include "views/controls/menu/simple_menu_model.h" |
11 #include "views/controls/menu/view_menu_delegate.h" | 11 #include "views/controls/menu/view_menu_delegate.h" |
12 #include "views/view.h" | 12 #include "views/view.h" |
13 | 13 |
14 class Browser; | 14 class Browser; |
| 15 |
| 16 namespace chromeos { |
| 17 |
15 class ClockMenuButton; | 18 class ClockMenuButton; |
16 class NetworkMenuButton; | 19 class NetworkMenuButton; |
17 class PowerMenuButton; | 20 class PowerMenuButton; |
18 class StatusAreaButton; | 21 class StatusAreaButton; |
19 | 22 |
20 // This class is used to wrap the small informative widgets in the upper-right | 23 // 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. | 24 // of the window title bar. It is used on ChromeOS only. |
22 class StatusAreaView : public views::View, | 25 class StatusAreaView : public views::View, |
23 public views::SimpleMenuModel::Delegate, | 26 public views::SimpleMenuModel::Delegate, |
24 public views::ViewMenuDelegate { | 27 public views::ViewMenuDelegate { |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
71 | 74 |
72 scoped_ptr<views::SimpleMenuModel> app_menu_contents_; | 75 scoped_ptr<views::SimpleMenuModel> app_menu_contents_; |
73 scoped_ptr<views::SimpleMenuModel> options_menu_contents_; | 76 scoped_ptr<views::SimpleMenuModel> options_menu_contents_; |
74 scoped_ptr<views::Menu2> app_menu_menu_; | 77 scoped_ptr<views::Menu2> app_menu_menu_; |
75 | 78 |
76 static OpenTabsMode open_tabs_mode_; | 79 static OpenTabsMode open_tabs_mode_; |
77 | 80 |
78 DISALLOW_COPY_AND_ASSIGN(StatusAreaView); | 81 DISALLOW_COPY_AND_ASSIGN(StatusAreaView); |
79 }; | 82 }; |
80 | 83 |
| 84 } // namespace chromeos |
| 85 |
81 #endif // CHROME_BROWSER_CHROMEOS_STATUS_AREA_VIEW_H_ | 86 #endif // CHROME_BROWSER_CHROMEOS_STATUS_AREA_VIEW_H_ |
OLD | NEW |