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

Unified Diff: content/browser/renderer_host/render_widget_host_impl.h

Issue 145283003: Switch AccessibilityMode to be a bitmap (Closed) Base URL: https://chromium.googlesource.com/chromium/src@enable
Patch Set: Address dtseng's comments Created 6 years, 11 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/browser/renderer_host/render_widget_host_impl.h
diff --git a/content/browser/renderer_host/render_widget_host_impl.h b/content/browser/renderer_host/render_widget_host_impl.h
index 94a42ff3af2523563314c8937173dbe11ef88e3e..ac36e02cd21cca241438eb9fed23180129314f67 100644
--- a/content/browser/renderer_host/render_widget_host_impl.h
+++ b/content/browser/renderer_host/render_widget_host_impl.h
@@ -390,12 +390,17 @@ class CONTENT_EXPORT RenderWidgetHostImpl : virtual public RenderWidgetHost,
const std::vector<EditCommand>& commands);
// Gets the accessibility mode.
- AccessibilityMode accessibility_mode() const {
+ unsigned int accessibility_mode() const {
return accessibility_mode_;
}
// Send a message to the renderer process to change the accessibility mode.
- void SetAccessibilityMode(AccessibilityMode mode);
+ void SetAccessibilityMode(unsigned int mode);
+
+ // Set the accessibility mode to have the given value for the
+ // AccessibilityModeRender bit, and send an IPC to update the accessibility
+ // mode if necessary.
+ void SetRendererAccessibilityMode(bool on);
David Tseng 2014/01/27 22:16:06 nit: some naming inconsistency; (Set Accessibility
aboxhall 2014/01/28 00:18:42 Done.
// Relay a request from assistive technology to perform the default action
// on a given node.
@@ -819,7 +824,7 @@ class CONTENT_EXPORT RenderWidgetHostImpl : virtual public RenderWidgetHost,
gfx::Rect last_view_screen_rect_;
gfx::Rect last_window_screen_rect_;
- AccessibilityMode accessibility_mode_;
+ unsigned int accessibility_mode_;
// Keyboard event listeners.
std::vector<KeyPressEventCallback> key_press_event_callbacks_;

Powered by Google App Engine
This is Rietveld 408576698