From 3e3c452f5119bc837ebc98af5de8d5d75cd04ce6 Mon Sep 17 00:00:00 2001 From: "dmazzoni@chromium.org" Date: Fri, 13 Apr 2012 21:16:29 +0000 Subject: Add an accessibility mode for editable text fields only. This refactors the triggering of accessibility mode from a boolean state and command-line flag to an AccessibilityMode enum that's passed directly when a new RenderView is created, which is also more readable and avoids the extra command-line flag. Adds a new mode that only syncs editable text nodes, and enables this on Windows 8 so that we can support showing the virtual keyboard when an editable text field gets focus. BUG=122061,118641 TEST=Adds new test Review URL: http://codereview.chromium.org/9939011 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@132267 0039d316-1c4b-4281-b951-d872f2087c98 --- webkit/glue/webaccessibility.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'webkit/glue') diff --git a/webkit/glue/webaccessibility.h b/webkit/glue/webaccessibility.h index 3b6df7a..2b5f928 100644 --- a/webkit/glue/webaccessibility.h +++ b/webkit/glue/webaccessibility.h @@ -259,6 +259,10 @@ struct WEBKIT_GLUE_EXPORT WebAccessibility { ~WebAccessibility(); + // Initialize an already-created struct, same as the constructor above. + void Init(const WebKit::WebAccessibilityObject& src, + bool include_children); + #ifndef NDEBUG std::string DebugString(bool recursive, int render_routing_id, @@ -266,10 +270,6 @@ struct WEBKIT_GLUE_EXPORT WebAccessibility { #endif private: - // Initialize an already-created struct, same as the constructor above. - void Init(const WebKit::WebAccessibilityObject& src, - bool include_children); - // Returns true if |ancestor| is the first unignored parent of |child|, // which means that when walking up the parent chain from |child|, // |ancestor| is the *first* ancestor that isn't marked as -- cgit v1.1