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

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

Issue 2135005: Integrated new bug icon in status bar (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 10 years, 7 months 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_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;
14 class LanguageMenuButton; 15 class LanguageMenuButton;
15 class NetworkMenuButton; 16 class NetworkMenuButton;
16 class PowerMenuButton; 17 class PowerMenuButton;
17 class StatusAreaHost; 18 class StatusAreaHost;
18 19
19 // This class is used to wrap the small informative widgets in the upper-right 20 // This class is used to wrap the small informative widgets in the upper-right
20 // of the window title bar. It is used on ChromeOS only. 21 // of the window title bar. It is used on ChromeOS only.
21 class StatusAreaView : public views::View { 22 class StatusAreaView : public views::View {
22 public: 23 public:
23 enum OpenTabsMode { 24 enum OpenTabsMode {
(...skipping 13 matching lines...) Expand all
37 38
38 // views::View* overrides. 39 // views::View* overrides.
39 virtual gfx::Size GetPreferredSize(); 40 virtual gfx::Size GetPreferredSize();
40 virtual void Layout(); 41 virtual void Layout();
41 virtual void ChildPreferredSizeChanged(View* child); 42 virtual void ChildPreferredSizeChanged(View* child);
42 43
43 static OpenTabsMode GetOpenTabsMode(); 44 static OpenTabsMode GetOpenTabsMode();
44 static void SetOpenTabsMode(OpenTabsMode mode); 45 static void SetOpenTabsMode(OpenTabsMode mode);
45 46
46 ClockMenuButton* clock_view() { return clock_view_; } 47 ClockMenuButton* clock_view() { return clock_view_; }
48 FeedbackMenuButton* feedback_view() { return feedback_view_; }
47 LanguageMenuButton* language_view() { return language_view_; } 49 LanguageMenuButton* language_view() { return language_view_; }
48 NetworkMenuButton* network_view() { return network_view_; } 50 NetworkMenuButton* network_view() { return network_view_; }
49 PowerMenuButton* power_view() { return power_view_; } 51 PowerMenuButton* power_view() { return power_view_; }
50 52
51 private: 53 private:
52 StatusAreaHost* host_; 54 StatusAreaHost* host_;
53 55
54 ClockMenuButton* clock_view_; 56 ClockMenuButton* clock_view_;
57 FeedbackMenuButton* feedback_view_;
55 LanguageMenuButton* language_view_; 58 LanguageMenuButton* language_view_;
56 NetworkMenuButton* network_view_; 59 NetworkMenuButton* network_view_;
57 PowerMenuButton* power_view_; 60 PowerMenuButton* power_view_;
58 61
59 static OpenTabsMode open_tabs_mode_; 62 static OpenTabsMode open_tabs_mode_;
60 63
61 DISALLOW_COPY_AND_ASSIGN(StatusAreaView); 64 DISALLOW_COPY_AND_ASSIGN(StatusAreaView);
62 }; 65 };
63 66
64 } // namespace chromeos 67 } // namespace chromeos
65 68
66 #endif // CHROME_BROWSER_CHROMEOS_STATUS_STATUS_AREA_VIEW_H_ 69 #endif // CHROME_BROWSER_CHROMEOS_STATUS_STATUS_AREA_VIEW_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/status/status_area_host.h ('k') | chrome/browser/chromeos/status/status_area_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698