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

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

Issue 7753029: Add a button on status bar to indicate that accessibility is enabled. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Removed files already committed in advance Created 9 years, 3 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) 2011 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_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 #pragma once 7 #pragma once
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "chrome/browser/ui/views/accessible_pane_view.h" 10 #include "chrome/browser/ui/views/accessible_pane_view.h"
11 #include "views/view.h" 11 #include "views/view.h"
12 12
13 namespace chromeos { 13 namespace chromeos {
14 14
15 class AccessibilityMenuButton;
15 class CapsLockMenuButton; 16 class CapsLockMenuButton;
16 class ClockMenuButton; 17 class ClockMenuButton;
17 class InputMethodMenuButton; 18 class InputMethodMenuButton;
18 class MemoryMenuButton; 19 class MemoryMenuButton;
19 class NetworkMenuButton; 20 class NetworkMenuButton;
20 class PowerMenuButton; 21 class PowerMenuButton;
21 class StatusAreaHost; 22 class StatusAreaHost;
22 23
23 // This class is used to wrap the small informative widgets in the upper-right 24 // This class is used to wrap the small informative widgets in the upper-right
24 // of the window title bar. It is used on ChromeOS only. 25 // of the window title bar. It is used on ChromeOS only.
25 class StatusAreaView : public AccessiblePaneView { 26 class StatusAreaView : public AccessiblePaneView {
26 public: 27 public:
27 explicit StatusAreaView(StatusAreaHost* host); 28 explicit StatusAreaView(StatusAreaHost* host);
28 virtual ~StatusAreaView() {} 29 virtual ~StatusAreaView() {}
29 30
30 virtual void Init(); 31 virtual void Init();
31 void MakeButtonsActive(bool active); 32 void MakeButtonsActive(bool active);
32 void ButtonVisibilityChanged(views::View* button_view); 33 void ButtonVisibilityChanged(views::View* button_view);
33 34
34 // views::View* overrides. 35 // views::View* overrides.
35 virtual gfx::Size GetPreferredSize(); 36 virtual gfx::Size GetPreferredSize();
36 virtual void Layout(); 37 virtual void Layout();
37 virtual void ChildPreferredSizeChanged(View* child); 38 virtual void ChildPreferredSizeChanged(View* child);
38 39
40 AccessibilityMenuButton* accessibility_view() { return accessibility_view_; }
39 CapsLockMenuButton* caps_lock_view() { return caps_lock_view_; } 41 CapsLockMenuButton* caps_lock_view() { return caps_lock_view_; }
40 ClockMenuButton* clock_view() { return clock_view_; } 42 ClockMenuButton* clock_view() { return clock_view_; }
41 InputMethodMenuButton* input_method_view() { return input_method_view_; } 43 InputMethodMenuButton* input_method_view() { return input_method_view_; }
42 NetworkMenuButton* network_view() { return network_view_; } 44 NetworkMenuButton* network_view() { return network_view_; }
43 PowerMenuButton* power_view() { return power_view_; } 45 PowerMenuButton* power_view() { return power_view_; }
44 46
45 private: 47 private:
46 StatusAreaHost* host_; 48 StatusAreaHost* host_;
47 49
50 AccessibilityMenuButton* accessibility_view_;
48 CapsLockMenuButton* caps_lock_view_; 51 CapsLockMenuButton* caps_lock_view_;
49 ClockMenuButton* clock_view_; 52 ClockMenuButton* clock_view_;
50 InputMethodMenuButton* input_method_view_; 53 InputMethodMenuButton* input_method_view_;
51 MemoryMenuButton* memory_view_; 54 MemoryMenuButton* memory_view_;
52 NetworkMenuButton* network_view_; 55 NetworkMenuButton* network_view_;
53 PowerMenuButton* power_view_; 56 PowerMenuButton* power_view_;
54 57
55 DISALLOW_COPY_AND_ASSIGN(StatusAreaView); 58 DISALLOW_COPY_AND_ASSIGN(StatusAreaView);
56 }; 59 };
57 60
58 } // namespace chromeos 61 } // namespace chromeos
59 62
60 #endif // CHROME_BROWSER_CHROMEOS_STATUS_STATUS_AREA_VIEW_H_ 63 #endif // CHROME_BROWSER_CHROMEOS_STATUS_STATUS_AREA_VIEW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698