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_MAC_H_ | 5 #ifndef CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_MANAGER_MAC_H_ |
6 #define CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_MANAGER_MAC_H_ | 6 #define CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_MANAGER_MAC_H_ |
7 | 7 |
8 #import <Cocoa/Cocoa.h> | 8 #import <Cocoa/Cocoa.h> |
9 #include <stdint.h> | 9 #include <stdint.h> |
10 | 10 |
(...skipping 28 matching lines...) Expand all Loading... |
39 ui::AXEvent event_type, | 39 ui::AXEvent event_type, |
40 BrowserAccessibility* node) override; | 40 BrowserAccessibility* node) override; |
41 | 41 |
42 void OnAccessibilityEvents( | 42 void OnAccessibilityEvents( |
43 const std::vector<AXEventNotificationDetails>& details) override; | 43 const std::vector<AXEventNotificationDetails>& details) override; |
44 | 44 |
45 NSView* GetParentView(); | 45 NSView* GetParentView(); |
46 | 46 |
47 private: | 47 private: |
48 // AXTreeDelegate methods. | 48 // AXTreeDelegate methods. |
| 49 void OnTreeDataChanged(ui::AXTree* tree, |
| 50 const ui::AXTreeData& old_tree_data, |
| 51 const ui::AXTreeData& new_tree_data) override; |
49 void OnNodeDataWillChange(ui::AXTree* tree, | 52 void OnNodeDataWillChange(ui::AXTree* tree, |
50 const ui::AXNodeData& old_node_data, | 53 const ui::AXNodeData& old_node_data, |
51 const ui::AXNodeData& new_node_data) override; | 54 const ui::AXNodeData& new_node_data) override; |
| 55 void OnStateChanged(ui::AXTree* tree, |
| 56 ui::AXNode* node, |
| 57 ui::AXState state, |
| 58 bool new_value) override; |
| 59 void OnStringAttributeChanged(ui::AXTree* tree, |
| 60 ui::AXNode* node, |
| 61 ui::AXStringAttribute attr, |
| 62 const std::string& old_value, |
| 63 const std::string& new_value) override; |
| 64 void OnIntAttributeChanged(ui::AXTree* tree, |
| 65 ui::AXNode* node, |
| 66 ui::AXIntAttribute attr, |
| 67 int32_t old_value, |
| 68 int32_t new_value) override; |
| 69 void OnFloatAttributeChanged(ui::AXTree* tree, |
| 70 ui::AXNode* node, |
| 71 ui::AXFloatAttribute attr, |
| 72 float old_value, |
| 73 float new_value) override; |
| 74 void OnAtomicUpdateFinished(ui::AXTree* tree, |
| 75 bool root_changed, |
| 76 const std::vector<Change>& changes) override; |
52 | 77 |
53 // Returns an autoreleased object. | 78 // Returns an autoreleased object. |
54 NSDictionary* GetUserInfoForSelectedTextChangedNotification(); | 79 NSDictionary* GetUserInfoForSelectedTextChangedNotification(); |
55 | 80 |
56 // Returns an autoreleased object. | 81 // Returns an autoreleased object. |
57 NSDictionary* GetUserInfoForValueChangedNotification( | 82 NSDictionary* GetUserInfoForValueChangedNotification( |
58 const BrowserAccessibilityCocoa* native_node, | 83 const BrowserAccessibilityCocoa* native_node, |
59 const base::string16& deleted_text, | 84 const base::string16& deleted_text, |
60 const base::string16& inserted_text) const; | 85 const base::string16& inserted_text) const; |
61 | 86 |
62 // This gives BrowserAccessibilityManager::Create access to the class | 87 // This gives BrowserAccessibilityManager::Create access to the class |
63 // constructor. | 88 // constructor. |
64 friend class BrowserAccessibilityManager; | 89 friend class BrowserAccessibilityManager; |
65 | 90 |
66 // Keeps track of any edits that have been made by the user during a tree | 91 // Keeps track of any edits that have been made by the user during a tree |
67 // update. Used by NSAccessibilityValueChangedNotification. | 92 // update. Used by NSAccessibilityValueChangedNotification. |
68 // Maps AXNode IDs to name or value attribute changes. | 93 // Maps AXNode IDs to name or value attribute changes. |
69 std::map<int32_t, base::string16> text_edits_; | 94 std::map<int32_t, base::string16> text_edits_; |
70 | 95 |
71 DISALLOW_COPY_AND_ASSIGN(BrowserAccessibilityManagerMac); | 96 DISALLOW_COPY_AND_ASSIGN(BrowserAccessibilityManagerMac); |
72 }; | 97 }; |
73 | 98 |
74 } | 99 } |
75 | 100 |
76 #endif // CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_MANAGER_MAC_H_ | 101 #endif // CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_MANAGER_MAC_H_ |
OLD | NEW |