summaryrefslogtreecommitdiffstats
path: root/content/browser/accessibility/browser_accessibility_manager_android.cc
diff options
context:
space:
mode:
Diffstat (limited to 'content/browser/accessibility/browser_accessibility_manager_android.cc')
-rw-r--r--content/browser/accessibility/browser_accessibility_manager_android.cc28
1 files changed, 14 insertions, 14 deletions
diff --git a/content/browser/accessibility/browser_accessibility_manager_android.cc b/content/browser/accessibility/browser_accessibility_manager_android.cc
index e14aa0b..a4c1965 100644
--- a/content/browser/accessibility/browser_accessibility_manager_android.cc
+++ b/content/browser/accessibility/browser_accessibility_manager_android.cc
@@ -77,40 +77,40 @@ BrowserAccessibilityManagerAndroid::~BrowserAccessibilityManagerAndroid() {
AccessibilityNodeData BrowserAccessibilityManagerAndroid::GetEmptyDocument() {
AccessibilityNodeData empty_document;
empty_document.id = 0;
- empty_document.role = AccessibilityNodeData::ROLE_ROOT_WEB_AREA;
- empty_document.state = 1 << AccessibilityNodeData::STATE_READONLY;
+ empty_document.role = WebKit::WebAXRoleRootWebArea;
+ empty_document.state = 1 << WebKit::WebAXStateReadonly;
return empty_document;
}
void BrowserAccessibilityManagerAndroid::NotifyAccessibilityEvent(
- int type,
+ WebKit::WebAXEvent event_type,
BrowserAccessibility* node) {
JNIEnv* env = AttachCurrentThread();
ScopedJavaLocalRef<jobject> obj = java_ref_.get(env);
if (obj.is_null())
return;
- switch (type) {
- case AccessibilityNotificationLoadComplete:
+ switch (event_type) {
+ case WebKit::WebAXEventLoadComplete:
Java_BrowserAccessibilityManager_handlePageLoaded(
env, obj.obj(), focus_->renderer_id());
break;
- case AccessibilityNotificationFocusChanged:
+ case WebKit::WebAXEventFocus:
Java_BrowserAccessibilityManager_handleFocusChanged(
env, obj.obj(), node->renderer_id());
break;
- case AccessibilityNotificationCheckStateChanged:
+ case WebKit::WebAXEventCheckedStateChanged:
Java_BrowserAccessibilityManager_handleCheckStateChanged(
env, obj.obj(), node->renderer_id());
break;
- case AccessibilityNotificationScrolledToAnchor:
+ case WebKit::WebAXEventScrolledToAnchor:
Java_BrowserAccessibilityManager_handleScrolledToAnchor(
env, obj.obj(), node->renderer_id());
break;
- case AccessibilityNotificationAlert:
+ case WebKit::WebAXEventAlert:
// An alert is a special case of live region. Fall through to the
// next case to handle it.
- case AccessibilityNotificationObjectShow: {
+ case WebKit::WebAXEventShow: {
// This event is fired when an object appears in a live region.
// Speak its text.
BrowserAccessibilityAndroid* android_node =
@@ -121,13 +121,13 @@ void BrowserAccessibilityManagerAndroid::NotifyAccessibilityEvent(
env, android_node->GetText()).obj());
break;
}
- case AccessibilityNotificationSelectedTextChanged:
+ case WebKit::WebAXEventSelectedTextChanged:
Java_BrowserAccessibilityManager_handleTextSelectionChanged(
env, obj.obj(), node->renderer_id());
break;
- case AccessibilityNotificationChildrenChanged:
- case AccessibilityNotificationTextChanged:
- case AccessibilityNotificationValueChanged:
+ case WebKit::WebAXEventChildrenChanged:
+ case WebKit::WebAXEventTextChanged:
+ case WebKit::WebAXEventValueChanged:
if (node->IsEditableText()) {
Java_BrowserAccessibilityManager_handleEditableTextChanged(
env, obj.obj(), node->renderer_id());