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

Unified Diff: content/renderer/render_view_impl.h

Issue 145283003: Switch AccessibilityMode to be a bitmap (Closed) Base URL: https://chromium.googlesource.com/chromium/src@enable
Patch Set: Tweak AccessibilityModeHelperTest Created 6 years, 10 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 side-by-side diff with in-line comments
Download patch
Index: content/renderer/render_view_impl.h
diff --git a/content/renderer/render_view_impl.h b/content/renderer/render_view_impl.h
index 86110460c3bec35580bcf05b5520821387c6b7eb..8d97378058649e84c78a7c910f5694a78b1115c2 100644
--- a/content/renderer/render_view_impl.h
+++ b/content/renderer/render_view_impl.h
@@ -194,7 +194,7 @@ class CONTENT_EXPORT RenderViewImpl
bool hidden,
int32 next_page_id,
const blink::WebScreenInfo& screen_info,
- AccessibilityMode accessibility_mode,
+ unsigned int accessibility_mode,
bool allow_partial_swap);
// Used by content_layouttest_support to hook into the creation of
@@ -957,7 +957,7 @@ class CONTENT_EXPORT RenderViewImpl
const base::string16& jscript,
int id,
bool notify_result);
- void OnSetAccessibilityMode(AccessibilityMode new_mode);
+ void OnSetAccessibilityMode(unsigned int new_mode);
void OnSetActive(bool active);
void OnSetBackground(const SkBitmap& background);
void OnSetCompositionFromExistingText(
@@ -1372,10 +1372,10 @@ class CONTENT_EXPORT RenderViewImpl
DevToolsAgent* devtools_agent_;
// The current accessibility mode.
- AccessibilityMode accessibility_mode_;
+ unsigned int accessibility_mode_;
- // Only valid if |accessibility_mode_| is anything other than
- // AccessibilityModeOff.
+ // Only valid if |accessibility_mode_| has the AccessibilityModeFlagRenderer
David Tseng 2014/02/04 20:25:51 What about text only?
aboxhall 2014/02/05 16:02:47 Depends whether text only includes renderer.
+ // bit set.
RendererAccessibility* renderer_accessibility_;
// Mouse Lock dispatcher attached to this view.

Powered by Google App Engine
This is Rietveld 408576698