diff options
author | dtseng@chromium.org <dtseng@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-04-19 02:46:21 +0000 |
---|---|---|
committer | dtseng@chromium.org <dtseng@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-04-19 02:46:21 +0000 |
commit | 62405028eba3eab760007a3e736426927f3f3435 (patch) | |
tree | e8a378415e4e1ff37f1f58456098683c0b9e6456 /webkit/glue/webaccessibility.cc | |
parent | 913a8885b2b7c6b86626f7bef21be05bb081406a (diff) | |
download | chromium_src-62405028eba3eab760007a3e736426927f3f3435.zip chromium_src-62405028eba3eab760007a3e736426927f3f3435.tar.gz chromium_src-62405028eba3eab760007a3e736426927f3f3435.tar.bz2 |
Remedy irratic focus behavior when accessibility clients set focus.
BUG=none
TEST=manually on Mac.
TBR=tony@chromium.org, avi@chromium.org
Review URL: http://codereview.chromium.org/10069003
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@132928 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/glue/webaccessibility.cc')
-rw-r--r-- | webkit/glue/webaccessibility.cc | 76 |
1 files changed, 2 insertions, 74 deletions
diff --git a/webkit/glue/webaccessibility.cc b/webkit/glue/webaccessibility.cc index 42c2d4d..b6b8f4c 100644 --- a/webkit/glue/webaccessibility.cc +++ b/webkit/glue/webaccessibility.cc @@ -25,19 +25,11 @@ #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebString.h" #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebVector.h" -#ifndef NDEBUG -#include "third_party/WebKit/Source/WebKit/chromium/public/WebAccessibilityNotification.h" -#endif - using base::DoubleToString; using base::IntToString; using WebKit::WebAccessibilityRole; using WebKit::WebAccessibilityObject; -#ifndef NDEBUG -using WebKit::WebAccessibilityNotification; -#endif - namespace { std::string IntVectorToString(const std::vector<int>& items) { @@ -340,73 +332,9 @@ WebAccessibility::~WebAccessibility() { } #ifndef NDEBUG -std::string WebAccessibility::DebugString(bool recursive, - int render_routing_id, - int notification) const { +std::string WebAccessibility::DebugString(bool recursive) const { std::string result; static int indent = 0; - - if (render_routing_id != 0) { - WebKit::WebAccessibilityNotification notification_type = - static_cast<WebKit::WebAccessibilityNotification>(notification); - result += "routing id="; - result += IntToString(render_routing_id); - result += " notification="; - - switch (notification_type) { - case WebKit::WebAccessibilityNotificationActiveDescendantChanged: - result += "active descendant changed"; - break; - case WebKit::WebAccessibilityNotificationCheckedStateChanged: - result += "check state changed"; - break; - case WebKit::WebAccessibilityNotificationChildrenChanged: - result += "children changed"; - break; - case WebKit::WebAccessibilityNotificationFocusedUIElementChanged: - result += "focus changed"; - break; - case WebKit::WebAccessibilityNotificationLayoutComplete: - result += "layout complete"; - break; - case WebKit::WebAccessibilityNotificationLiveRegionChanged: - result += "live region changed"; - break; - case WebKit::WebAccessibilityNotificationLoadComplete: - result += "load complete"; - break; - case WebKit::WebAccessibilityNotificationMenuListValueChanged: - result += "menu list changed"; - break; - case WebKit::WebAccessibilityNotificationRowCountChanged: - result += "row count changed"; - break; - case WebKit::WebAccessibilityNotificationRowCollapsed: - result += "row collapsed"; - break; - case WebKit::WebAccessibilityNotificationRowExpanded: - result += "row expanded"; - break; - case WebKit::WebAccessibilityNotificationScrolledToAnchor: - result += "scrolled to anchor"; - break; - case WebKit::WebAccessibilityNotificationSelectedChildrenChanged: - result += "selected children changed"; - break; - case WebKit::WebAccessibilityNotificationSelectedTextChanged: - result += "selected text changed"; - break; - case WebKit::WebAccessibilityNotificationValueChanged: - result += "value changed"; - break; - case WebKit::WebAccessibilityNotificationInvalid: - result += "invalid notification"; - break; - default: - NOTREACHED(); - } - } - result += "\n"; for (int i = 0; i < indent; ++i) result += " "; @@ -763,7 +691,7 @@ std::string WebAccessibility::DebugString(bool recursive, result += "\n"; ++indent; for (size_t i = 0; i < children.size(); ++i) - result += children[i].DebugString(true, 0, 0); + result += children[i].DebugString(true); --indent; } |