| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "content/browser/accessibility/browser_accessibility_manager_android.h" | 5 #include "content/browser/accessibility/browser_accessibility_manager_android.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 | 8 |
| 9 #include <cmath> | 9 #include <cmath> |
| 10 | 10 |
| (...skipping 286 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 297 env, obj.obj(), focus_->id()); | 297 env, obj.obj(), focus_->id()); |
| 298 break; | 298 break; |
| 299 case ui::AX_EVENT_FOCUS: | 299 case ui::AX_EVENT_FOCUS: |
| 300 Java_BrowserAccessibilityManager_handleFocusChanged( | 300 Java_BrowserAccessibilityManager_handleFocusChanged( |
| 301 env, obj.obj(), node->GetId()); | 301 env, obj.obj(), node->GetId()); |
| 302 break; | 302 break; |
| 303 case ui::AX_EVENT_CHECKED_STATE_CHANGED: | 303 case ui::AX_EVENT_CHECKED_STATE_CHANGED: |
| 304 Java_BrowserAccessibilityManager_handleCheckStateChanged( | 304 Java_BrowserAccessibilityManager_handleCheckStateChanged( |
| 305 env, obj.obj(), node->GetId()); | 305 env, obj.obj(), node->GetId()); |
| 306 break; | 306 break; |
| 307 case ui::AX_EVENT_CLICKED: |
| 308 Java_BrowserAccessibilityManager_handleClicked( |
| 309 env, obj.obj(), node->GetId()); |
| 310 break; |
| 307 case ui::AX_EVENT_SCROLL_POSITION_CHANGED: | 311 case ui::AX_EVENT_SCROLL_POSITION_CHANGED: |
| 308 Java_BrowserAccessibilityManager_handleScrollPositionChanged( | 312 Java_BrowserAccessibilityManager_handleScrollPositionChanged( |
| 309 env, obj.obj(), node->GetId()); | 313 env, obj.obj(), node->GetId()); |
| 310 break; | 314 break; |
| 311 case ui::AX_EVENT_SCROLLED_TO_ANCHOR: | 315 case ui::AX_EVENT_SCROLLED_TO_ANCHOR: |
| 312 Java_BrowserAccessibilityManager_handleScrolledToAnchor( | 316 Java_BrowserAccessibilityManager_handleScrolledToAnchor( |
| 313 env, obj.obj(), node->GetId()); | 317 env, obj.obj(), node->GetId()); |
| 314 break; | 318 break; |
| 315 case ui::AX_EVENT_ALERT: | 319 case ui::AX_EVENT_ALERT: |
| 316 // An alert is a special case of live region. Fall through to the | 320 // An alert is a special case of live region. Fall through to the |
| (...skipping 660 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 977 BrowserAccessibilityManagerAndroid::UseRootScrollOffsetsWhenComputingBounds() { | 981 BrowserAccessibilityManagerAndroid::UseRootScrollOffsetsWhenComputingBounds() { |
| 978 // The Java layer handles the root scroll offset. | 982 // The Java layer handles the root scroll offset. |
| 979 return false; | 983 return false; |
| 980 } | 984 } |
| 981 | 985 |
| 982 bool RegisterBrowserAccessibilityManager(JNIEnv* env) { | 986 bool RegisterBrowserAccessibilityManager(JNIEnv* env) { |
| 983 return RegisterNativesImpl(env); | 987 return RegisterNativesImpl(env); |
| 984 } | 988 } |
| 985 | 989 |
| 986 } // namespace content | 990 } // namespace content |
| OLD | NEW |