| 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 #ifndef CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_MANAGER_H_ | 5 #ifndef CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_MANAGER_H_ |
| 6 #define CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_MANAGER_H_ | 6 #define CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_MANAGER_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <memory> | 10 #include <memory> |
| (...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 179 // For testing only, register a function to be called when focus changes | 179 // For testing only, register a function to be called when focus changes |
| 180 // in any BrowserAccessibilityManager. | 180 // in any BrowserAccessibilityManager. |
| 181 static void SetFocusChangeCallbackForTesting(const base::Closure& callback); | 181 static void SetFocusChangeCallbackForTesting(const base::Closure& callback); |
| 182 | 182 |
| 183 // Accessibility actions. All of these are implemented asynchronously | 183 // Accessibility actions. All of these are implemented asynchronously |
| 184 // by sending a message to the renderer to perform the respective action | 184 // by sending a message to the renderer to perform the respective action |
| 185 // on the given node. See the definition of |ui::AXActionData| for more | 185 // on the given node. See the definition of |ui::AXActionData| for more |
| 186 // information about each of these actions. | 186 // information about each of these actions. |
| 187 void Decrement(const BrowserAccessibility& node); | 187 void Decrement(const BrowserAccessibility& node); |
| 188 void DoDefaultAction(const BrowserAccessibility& node); | 188 void DoDefaultAction(const BrowserAccessibility& node); |
| 189 void GetImageData(const BrowserAccessibility& node, |
| 190 const gfx::Size& max_size); |
| 189 void HitTest(const gfx::Point& point); | 191 void HitTest(const gfx::Point& point); |
| 190 void Increment(const BrowserAccessibility& node); | 192 void Increment(const BrowserAccessibility& node); |
| 191 void ScrollToMakeVisible( | 193 void ScrollToMakeVisible( |
| 192 const BrowserAccessibility& node, gfx::Rect subfocus); | 194 const BrowserAccessibility& node, gfx::Rect subfocus); |
| 193 void ScrollToPoint( | 195 void ScrollToPoint( |
| 194 const BrowserAccessibility& node, gfx::Point point); | 196 const BrowserAccessibility& node, gfx::Point point); |
| 195 void SetFocus(const BrowserAccessibility& node); | 197 void SetFocus(const BrowserAccessibility& node); |
| 196 void SetScrollOffset(const BrowserAccessibility& node, gfx::Point offset); | 198 void SetScrollOffset(const BrowserAccessibility& node, gfx::Point offset); |
| 197 void SetValue( | 199 void SetValue( |
| 198 const BrowserAccessibility& node, const base::string16& value); | 200 const BrowserAccessibility& node, const base::string16& value); |
| (...skipping 260 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 459 // node within that parent tree. It's computed as needed and cached for | 461 // node within that parent tree. It's computed as needed and cached for |
| 460 // speed so that it can be accessed quickly if it hasn't changed. | 462 // speed so that it can be accessed quickly if it hasn't changed. |
| 461 int parent_node_id_from_parent_tree_; | 463 int parent_node_id_from_parent_tree_; |
| 462 | 464 |
| 463 DISALLOW_COPY_AND_ASSIGN(BrowserAccessibilityManager); | 465 DISALLOW_COPY_AND_ASSIGN(BrowserAccessibilityManager); |
| 464 }; | 466 }; |
| 465 | 467 |
| 466 } // namespace content | 468 } // namespace content |
| 467 | 469 |
| 468 #endif // CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_MANAGER_H_ | 470 #endif // CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_MANAGER_H_ |
| OLD | NEW |