| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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.h" | 5 #include "content/browser/accessibility/browser_accessibility.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 | 8 |
| 9 #include <algorithm> | 9 #include <algorithm> |
| 10 #include <iterator> | 10 #include <iterator> |
| (...skipping 1200 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1211 return root_delegate->AccessibilityGetAcceleratedWidget(); | 1211 return root_delegate->AccessibilityGetAcceleratedWidget(); |
| 1212 } | 1212 } |
| 1213 | 1213 |
| 1214 bool BrowserAccessibility::AccessibilityPerformAction( | 1214 bool BrowserAccessibility::AccessibilityPerformAction( |
| 1215 const ui::AXActionData& data) { | 1215 const ui::AXActionData& data) { |
| 1216 if (data.action == ui::AX_ACTION_DO_DEFAULT) { | 1216 if (data.action == ui::AX_ACTION_DO_DEFAULT) { |
| 1217 manager_->DoDefaultAction(*this); | 1217 manager_->DoDefaultAction(*this); |
| 1218 return true; | 1218 return true; |
| 1219 } | 1219 } |
| 1220 | 1220 |
| 1221 if (data.action == ui::AX_ACTION_FOCUS) { |
| 1222 manager_->SetFocus(*this); |
| 1223 return true; |
| 1224 } |
| 1225 |
| 1221 return false; | 1226 return false; |
| 1222 } | 1227 } |
| 1223 | 1228 |
| 1224 } // namespace content | 1229 } // namespace content |
| OLD | NEW |