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

Side by Side Diff: ash/system/tray_accessibility.h

Issue 10843045: Move "Accessibility features are enabled." string resource from chrome/ to ash/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Split ash_string.grd change to another CL Created 8 years, 4 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
« no previous file with comments | « no previous file | ash/system/tray_accessibility.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 ASH_SYSTEM_TRAY_ACCESSIBILITY_H_ 5 #ifndef ASH_SYSTEM_TRAY_ACCESSIBILITY_H_
6 #define ASH_SYSTEM_TRAY_ACCESSIBILITY_H_ 6 #define ASH_SYSTEM_TRAY_ACCESSIBILITY_H_
7 7
8 #include "ash/system/tray/tray_image_item.h" 8 #include "ash/system/tray/tray_image_item.h"
9 9
10 namespace views { 10 namespace views {
11 class ImageView; 11 class ImageView;
12 class View; 12 class View;
13 } 13 }
14 14
15 namespace ash { 15 namespace ash {
16 16
17 class ASH_EXPORT AccessibilityObserver { 17 class ASH_EXPORT AccessibilityObserver {
18 public: 18 public:
19 virtual ~AccessibilityObserver() {} 19 virtual ~AccessibilityObserver() {}
20 20
21 // Notifies when accessibilty mode changes. Also sends a string-id to display 21 // Notifies when accessibilty mode changes.
22 // to the user. 22 virtual void OnAccessibilityModeChanged(bool enabled) = 0;
23 virtual void OnAccessibilityModeChanged(bool enabled,
24 int string_id) = 0;
25 }; 23 };
26 24
27 namespace internal { 25 namespace internal {
28 26
29 class TrayAccessibility : public TrayImageItem, 27 class TrayAccessibility : public TrayImageItem,
30 public AccessibilityObserver { 28 public AccessibilityObserver {
31 public: 29 public:
32 TrayAccessibility(); 30 TrayAccessibility();
33 virtual ~TrayAccessibility(); 31 virtual ~TrayAccessibility();
34 32
35 private: 33 private:
36 // Overridden from TrayImageItem. 34 // Overridden from TrayImageItem.
37 virtual bool GetInitialVisibility() OVERRIDE; 35 virtual bool GetInitialVisibility() OVERRIDE;
38 virtual views::View* CreateDefaultView(user::LoginStatus status) OVERRIDE; 36 virtual views::View* CreateDefaultView(user::LoginStatus status) OVERRIDE;
39 virtual views::View* CreateDetailedView(user::LoginStatus status) OVERRIDE; 37 virtual views::View* CreateDetailedView(user::LoginStatus status) OVERRIDE;
40 virtual void DestroyDefaultView() OVERRIDE; 38 virtual void DestroyDefaultView() OVERRIDE;
41 virtual void DestroyDetailedView() OVERRIDE; 39 virtual void DestroyDetailedView() OVERRIDE;
42 40
43 // Overridden from AccessibilityObserver. 41 // Overridden from AccessibilityObserver.
44 virtual void OnAccessibilityModeChanged(bool enabled, 42 virtual void OnAccessibilityModeChanged(bool enabled) OVERRIDE;
45 int string_id) OVERRIDE;
46 43
47 views::View* default_; 44 views::View* default_;
48 views::View* detailed_; 45 views::View* detailed_;
49 int string_id_;
50 46
51 DISALLOW_COPY_AND_ASSIGN(TrayAccessibility); 47 DISALLOW_COPY_AND_ASSIGN(TrayAccessibility);
52 }; 48 };
53 49
54 } // namespace internal 50 } // namespace internal
55 } // namespace ash 51 } // namespace ash
56 52
57 #endif // ASH_SYSTEM_TRAY_ACCESSIBILITY_H_ 53 #endif // ASH_SYSTEM_TRAY_ACCESSIBILITY_H_
OLDNEW
« no previous file with comments | « no previous file | ash/system/tray_accessibility.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698