| 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 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 146 env, obj.obj(), focus_->id()); | 146 env, obj.obj(), focus_->id()); |
| 147 break; | 147 break; |
| 148 case ui::AX_EVENT_FOCUS: | 148 case ui::AX_EVENT_FOCUS: |
| 149 Java_BrowserAccessibilityManager_handleFocusChanged( | 149 Java_BrowserAccessibilityManager_handleFocusChanged( |
| 150 env, obj.obj(), node->GetId()); | 150 env, obj.obj(), node->GetId()); |
| 151 break; | 151 break; |
| 152 case ui::AX_EVENT_CHECKED_STATE_CHANGED: | 152 case ui::AX_EVENT_CHECKED_STATE_CHANGED: |
| 153 Java_BrowserAccessibilityManager_handleCheckStateChanged( | 153 Java_BrowserAccessibilityManager_handleCheckStateChanged( |
| 154 env, obj.obj(), node->GetId()); | 154 env, obj.obj(), node->GetId()); |
| 155 break; | 155 break; |
| 156 case ui::AX_EVENT_CLICKED: |
| 157 Java_BrowserAccessibilityManager_handleClicked(env, obj.obj(), |
| 158 node->GetId()); |
| 159 break; |
| 156 case ui::AX_EVENT_SCROLL_POSITION_CHANGED: | 160 case ui::AX_EVENT_SCROLL_POSITION_CHANGED: |
| 157 Java_BrowserAccessibilityManager_handleScrollPositionChanged( | 161 Java_BrowserAccessibilityManager_handleScrollPositionChanged( |
| 158 env, obj.obj(), node->GetId()); | 162 env, obj.obj(), node->GetId()); |
| 159 break; | 163 break; |
| 160 case ui::AX_EVENT_SCROLLED_TO_ANCHOR: | 164 case ui::AX_EVENT_SCROLLED_TO_ANCHOR: |
| 161 Java_BrowserAccessibilityManager_handleScrolledToAnchor( | 165 Java_BrowserAccessibilityManager_handleScrolledToAnchor( |
| 162 env, obj.obj(), node->GetId()); | 166 env, obj.obj(), node->GetId()); |
| 163 break; | 167 break; |
| 164 case ui::AX_EVENT_ALERT: | 168 case ui::AX_EVENT_ALERT: |
| 165 // An alert is a special case of live region. Fall through to the | 169 // An alert is a special case of live region. Fall through to the |
| (...skipping 677 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 843 BrowserAccessibilityManagerAndroid::UseRootScrollOffsetsWhenComputingBounds() { | 847 BrowserAccessibilityManagerAndroid::UseRootScrollOffsetsWhenComputingBounds() { |
| 844 // The Java layer handles the root scroll offset. | 848 // The Java layer handles the root scroll offset. |
| 845 return false; | 849 return false; |
| 846 } | 850 } |
| 847 | 851 |
| 848 bool RegisterBrowserAccessibilityManager(JNIEnv* env) { | 852 bool RegisterBrowserAccessibilityManager(JNIEnv* env) { |
| 849 return RegisterNativesImpl(env); | 853 return RegisterNativesImpl(env); |
| 850 } | 854 } |
| 851 | 855 |
| 852 } // namespace content | 856 } // namespace content |
| OLD | NEW |