Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(358)

Side by Side Diff: content/browser/accessibility/browser_accessibility_manager_mac.h

Issue 2811713006: Fire event on Mac when PRESSED state changes (Closed)
Patch Set: Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | content/browser/accessibility/browser_accessibility_manager_mac.mm » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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;
52 56
53 // Returns an autoreleased object. 57 // Returns an autoreleased object.
54 NSDictionary* GetUserInfoForSelectedTextChangedNotification(); 58 NSDictionary* GetUserInfoForSelectedTextChangedNotification();
55 59
56 // Returns an autoreleased object. 60 // Returns an autoreleased object.
57 NSDictionary* GetUserInfoForValueChangedNotification( 61 NSDictionary* GetUserInfoForValueChangedNotification(
58 const BrowserAccessibilityCocoa* native_node, 62 const BrowserAccessibilityCocoa* native_node,
59 const base::string16& deleted_text, 63 const base::string16& deleted_text,
60 const base::string16& inserted_text) const; 64 const base::string16& inserted_text) const;
61 65
62 // This gives BrowserAccessibilityManager::Create access to the class 66 // This gives BrowserAccessibilityManager::Create access to the class
63 // constructor. 67 // constructor.
64 friend class BrowserAccessibilityManager; 68 friend class BrowserAccessibilityManager;
65 69
66 // Keeps track of any edits that have been made by the user during a tree 70 // Keeps track of any edits that have been made by the user during a tree
67 // update. Used by NSAccessibilityValueChangedNotification. 71 // update. Used by NSAccessibilityValueChangedNotification.
68 // Maps AXNode IDs to name or value attribute changes. 72 // Maps AXNode IDs to name or value attribute changes.
69 std::map<int32_t, base::string16> text_edits_; 73 std::map<int32_t, base::string16> text_edits_;
70 74
71 DISALLOW_COPY_AND_ASSIGN(BrowserAccessibilityManagerMac); 75 DISALLOW_COPY_AND_ASSIGN(BrowserAccessibilityManagerMac);
72 }; 76 };
73 77
74 } 78 }
75 79
76 #endif // CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_MANAGER_MAC_H_ 80 #endif // CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_MANAGER_MAC_H_
OLDNEW
« no previous file with comments | « no previous file | content/browser/accessibility/browser_accessibility_manager_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698