Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(14)

Side by Side Diff: chrome/browser/chromeos/status_area_view.h

Issue 449050: Implement "Language Switcher" for Chromium OS. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 "app/menus/simple_menu_model.h" 9 #include "app/menus/simple_menu_model.h"
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
11 #include "views/controls/menu/view_menu_delegate.h" 11 #include "views/controls/menu/view_menu_delegate.h"
12 #include "views/controls/menu/menu_2.h" 12 #include "views/controls/menu/menu_2.h"
13 #include "views/view.h" 13 #include "views/view.h"
14 14
15 class Browser; 15 class Browser;
16 16
17 namespace chromeos { 17 namespace chromeos {
18 18
19 class ClockMenuButton; 19 class ClockMenuButton;
20 class LanguageMenuButton;
20 class NetworkMenuButton; 21 class NetworkMenuButton;
21 class PowerMenuButton; 22 class PowerMenuButton;
22 class StatusAreaButton; 23 class StatusAreaButton;
23 24
24 // This class is used to wrap the small informative widgets in the upper-right 25 // This class is used to wrap the small informative widgets in the upper-right
25 // of the window title bar. It is used on ChromeOS only. 26 // of the window title bar. It is used on ChromeOS only.
26 class StatusAreaView : public views::View, 27 class StatusAreaView : public views::View,
27 public menus::SimpleMenuModel::Delegate, 28 public menus::SimpleMenuModel::Delegate,
28 public views::ViewMenuDelegate { 29 public views::ViewMenuDelegate {
29 public: 30 public:
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 virtual void RunMenu(views::View* source, const gfx::Point& pt); 67 virtual void RunMenu(views::View* source, const gfx::Point& pt);
67 68
68 // The browser window that owns us. 69 // The browser window that owns us.
69 Browser* browser_; 70 Browser* browser_;
70 71
71 // Browser's NativeWindow. See description above constructor as to why this 72 // Browser's NativeWindow. See description above constructor as to why this
72 // is cached. 73 // is cached.
73 gfx::NativeWindow window_; 74 gfx::NativeWindow window_;
74 75
75 ClockMenuButton* clock_view_; 76 ClockMenuButton* clock_view_;
77 LanguageMenuButton* language_view_;
76 NetworkMenuButton* network_view_; 78 NetworkMenuButton* network_view_;
77 PowerMenuButton* battery_view_; 79 PowerMenuButton* battery_view_;
78 StatusAreaButton* menu_view_; 80 StatusAreaButton* menu_view_;
79 81
80 scoped_ptr<menus::SimpleMenuModel> app_menu_contents_; 82 scoped_ptr<menus::SimpleMenuModel> app_menu_contents_;
81 scoped_ptr<menus::SimpleMenuModel> options_menu_contents_; 83 scoped_ptr<menus::SimpleMenuModel> options_menu_contents_;
82 scoped_ptr<views::Menu2> app_menu_menu_; 84 scoped_ptr<views::Menu2> app_menu_menu_;
83 85
84 static OpenTabsMode open_tabs_mode_; 86 static OpenTabsMode open_tabs_mode_;
85 87
86 DISALLOW_COPY_AND_ASSIGN(StatusAreaView); 88 DISALLOW_COPY_AND_ASSIGN(StatusAreaView);
87 }; 89 };
88 90
89 } // namespace chromeos 91 } // namespace chromeos
90 92
91 #endif // CHROME_BROWSER_CHROMEOS_STATUS_AREA_VIEW_H_ 93 #endif // CHROME_BROWSER_CHROMEOS_STATUS_AREA_VIEW_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/language_menu_button.cc ('k') | chrome/browser/chromeos/status_area_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698