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

Side by Side Diff: content/browser/accessibility/browser_accessibility_state_impl.h

Issue 273423004: Migrate accessibility from RenderView to RenderFrame. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 6 years, 5 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) 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 CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_STATE_IMPL_H_ 5 #ifndef CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_STATE_IMPL_H_
6 #define CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_STATE_IMPL_H_ 6 #define CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_STATE_IMPL_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
11 #include "base/compiler_specific.h" 11 #include "base/compiler_specific.h"
12 #include "base/memory/singleton.h" 12 #include "base/memory/singleton.h"
13 #include "content/common/view_message_enums.h" 13 #include "content/common/accessibility_mode_enums.h"
14 #include "content/public/browser/browser_accessibility_state.h" 14 #include "content/public/browser/browser_accessibility_state.h"
15 15
16 namespace content { 16 namespace content {
17 17
18 // The BrowserAccessibilityState class is used to determine if Chrome should be 18 // The BrowserAccessibilityState class is used to determine if Chrome should be
19 // customized for users with assistive technology, such as screen readers. We 19 // customized for users with assistive technology, such as screen readers. We
20 // modify the behavior of certain user interfaces to provide a better experience 20 // modify the behavior of certain user interfaces to provide a better experience
21 // for screen reader users. The way we detect a screen reader program is 21 // for screen reader users. The way we detect a screen reader program is
22 // different for each platform. 22 // different for each platform.
23 // 23 //
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 69
70 // Called a short while after startup to allow time for the accessibility 70 // Called a short while after startup to allow time for the accessibility
71 // state to be determined. Updates histograms with the current state. 71 // state to be determined. Updates histograms with the current state.
72 void UpdateHistograms(); 72 void UpdateHistograms();
73 73
74 // Leaky singleton, destructor generally won't be called. 74 // Leaky singleton, destructor generally won't be called.
75 virtual ~BrowserAccessibilityStateImpl(); 75 virtual ~BrowserAccessibilityStateImpl();
76 76
77 void UpdatePlatformSpecificHistograms(); 77 void UpdatePlatformSpecificHistograms();
78 78
79 // Updates the accessibility mode of all render widgets, including swapped out 79 // Updates the accessibility mode of all web contents, including swapped out
80 // ones. |add| specifies whether the mode should be added or removed. 80 // ones. |add| specifies whether the mode should be added or removed.
81 void AddOrRemoveFromRenderWidgets(AccessibilityMode mode, bool add); 81 void AddOrRemoveFromAllWebContents(AccessibilityMode mode, bool add);
82 82
83 AccessibilityMode accessibility_mode_; 83 AccessibilityMode accessibility_mode_;
84 84
85 std::vector<base::Closure> histogram_callbacks_; 85 std::vector<base::Closure> histogram_callbacks_;
86 86
87 DISALLOW_COPY_AND_ASSIGN(BrowserAccessibilityStateImpl); 87 DISALLOW_COPY_AND_ASSIGN(BrowserAccessibilityStateImpl);
88 }; 88 };
89 89
90 } // namespace content 90 } // namespace content
91 91
92 #endif // CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_STATE_IMPL_H_ 92 #endif // CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_STATE_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698