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

Side by Side Diff: chrome/browser/chromeos/login/wizard_accessibility_handler.h

Issue 7781004: Move Speak() in accessibility_utils, speak enable and disable strings when (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove unused headers 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_LOGIN_WIZARD_ACCESSIBILITY_HANDLER_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_WIZARD_ACCESSIBILITY_HANDLER_H_
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_WIZARD_ACCESSIBILITY_HANDLER_H_ 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_WIZARD_ACCESSIBILITY_HANDLER_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
(...skipping 21 matching lines...) Expand all
32 EARCON_TAB, 32 EARCON_TAB,
33 EARCON_TEXTBOX, 33 EARCON_TEXTBOX,
34 }; 34 };
35 35
36 // Class that handles the accessibility notifications and generates 36 // Class that handles the accessibility notifications and generates
37 // appropriate spoken/audio feedback. 37 // appropriate spoken/audio feedback.
38 class WizardAccessibilityHandler : public NotificationObserver { 38 class WizardAccessibilityHandler : public NotificationObserver {
39 public: 39 public:
40 WizardAccessibilityHandler() { } 40 WizardAccessibilityHandler() { }
41 41
42 // Speaks the specified string.
43 void Speak(const char* speak_str, bool queue, bool interruptible);
44
45 private: 42 private:
46 // Override from NotificationObserver. 43 // Override from NotificationObserver.
47 virtual void Observe(int type, 44 virtual void Observe(int type,
48 const NotificationSource& source, 45 const NotificationSource& source,
49 const NotificationDetails& details); 46 const NotificationDetails& details);
50 47
51 // Get text to speak and an earcon identifier (which may be NONE) for any 48 // Get text to speak and an earcon identifier (which may be NONE) for any
52 // accessibility event. 49 // accessibility event.
53 void DescribeAccessibilityEvent(int event_type, 50 void DescribeAccessibilityEvent(int event_type,
54 const AccessibilityControlInfo* control_info, 51 const AccessibilityControlInfo* control_info,
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 friend class WizardAccessibilityHandlerTest; 87 friend class WizardAccessibilityHandlerTest;
91 FRIEND_TEST_ALL_PREFIXES(WizardAccessibilityHandlerTest, TestFocusEvents); 88 FRIEND_TEST_ALL_PREFIXES(WizardAccessibilityHandlerTest, TestFocusEvents);
92 FRIEND_TEST_ALL_PREFIXES(WizardAccessibilityHandlerTest, TestTextEvents); 89 FRIEND_TEST_ALL_PREFIXES(WizardAccessibilityHandlerTest, TestTextEvents);
93 90
94 DISALLOW_COPY_AND_ASSIGN(WizardAccessibilityHandler); 91 DISALLOW_COPY_AND_ASSIGN(WizardAccessibilityHandler);
95 }; 92 };
96 93
97 } // namespace chromeos 94 } // namespace chromeos
98 95
99 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_WIZARD_ACCESSIBILITY_HANDLER_H_ 96 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_WIZARD_ACCESSIBILITY_HANDLER_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/accessibility_util.cc ('k') | chrome/browser/chromeos/login/wizard_accessibility_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698