| 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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 OnNodeDataWillChange(ui::AXTree* tree, | 49 void OnNodeDataWillChange(ui::AXTree* tree, |
| 50 const ui::AXNodeData& old_node_data, | 50 const ui::AXNodeData& old_node_data, |
| 51 const ui::AXNodeData& new_node_data) override; | 51 const ui::AXNodeData& new_node_data) override; |
| 52 void OnStateChanged(ui::AXTree* tree, | |
| 53 ui::AXNode* node, | |
| 54 ui::AXState state, | |
| 55 bool new_value) override; | |
| 56 | 52 |
| 57 // Returns an autoreleased object. | 53 // Returns an autoreleased object. |
| 58 NSDictionary* GetUserInfoForSelectedTextChangedNotification(); | 54 NSDictionary* GetUserInfoForSelectedTextChangedNotification(); |
| 59 | 55 |
| 60 // Returns an autoreleased object. | 56 // Returns an autoreleased object. |
| 61 NSDictionary* GetUserInfoForValueChangedNotification( | 57 NSDictionary* GetUserInfoForValueChangedNotification( |
| 62 const BrowserAccessibilityCocoa* native_node, | 58 const BrowserAccessibilityCocoa* native_node, |
| 63 const base::string16& deleted_text, | 59 const base::string16& deleted_text, |
| 64 const base::string16& inserted_text) const; | 60 const base::string16& inserted_text) const; |
| 65 | 61 |
| 66 // This gives BrowserAccessibilityManager::Create access to the class | 62 // This gives BrowserAccessibilityManager::Create access to the class |
| 67 // constructor. | 63 // constructor. |
| 68 friend class BrowserAccessibilityManager; | 64 friend class BrowserAccessibilityManager; |
| 69 | 65 |
| 70 // Keeps track of any edits that have been made by the user during a tree | 66 // Keeps track of any edits that have been made by the user during a tree |
| 71 // update. Used by NSAccessibilityValueChangedNotification. | 67 // update. Used by NSAccessibilityValueChangedNotification. |
| 72 // Maps AXNode IDs to name or value attribute changes. | 68 // Maps AXNode IDs to name or value attribute changes. |
| 73 std::map<int32_t, base::string16> text_edits_; | 69 std::map<int32_t, base::string16> text_edits_; |
| 74 | 70 |
| 75 DISALLOW_COPY_AND_ASSIGN(BrowserAccessibilityManagerMac); | 71 DISALLOW_COPY_AND_ASSIGN(BrowserAccessibilityManagerMac); |
| 76 }; | 72 }; |
| 77 | 73 |
| 78 } | 74 } |
| 79 | 75 |
| 80 #endif // CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_MANAGER_MAC_H_ | 76 #endif // CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_MANAGER_MAC_H_ |
| OLD | NEW |