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

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

Issue 1925473002: Add verbose logging for native accessibility events. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@load_complete
Patch Set: address all feedback Created 4 years, 7 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
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 17 matching lines...) Expand all
28 BrowserAccessibilityDelegate* delegate, 28 BrowserAccessibilityDelegate* delegate,
29 BrowserAccessibilityFactory* factory = new BrowserAccessibilityFactory()); 29 BrowserAccessibilityFactory* factory = new BrowserAccessibilityFactory());
30 30
31 ~BrowserAccessibilityManagerMac() override; 31 ~BrowserAccessibilityManagerMac() override;
32 32
33 static ui::AXTreeUpdate GetEmptyDocument(); 33 static ui::AXTreeUpdate GetEmptyDocument();
34 34
35 BrowserAccessibility* GetFocus() override; 35 BrowserAccessibility* GetFocus() override;
36 36
37 // Implementation of BrowserAccessibilityManager. 37 // Implementation of BrowserAccessibilityManager.
38 void NotifyAccessibilityEvent(ui::AXEvent event_type, 38 void NotifyAccessibilityEvent(
39 BrowserAccessibility* node) override; 39 BrowserAccessibilityEvent::Source source,
40 ui::AXEvent event_type,
41 BrowserAccessibility* node) override;
40 42
41 void OnAccessibilityEvents( 43 void OnAccessibilityEvents(
42 const std::vector<AXEventNotificationDetails>& details) override; 44 const std::vector<AXEventNotificationDetails>& details) override;
43 45
44 NSView* parent_view() { return parent_view_; } 46 NSView* parent_view() { return parent_view_; }
45 47
46 private: 48 private:
47 // AXTreeDelegate methods. 49 // AXTreeDelegate methods.
48 void OnNodeDataWillChange(ui::AXTree* tree, 50 void OnNodeDataWillChange(ui::AXTree* tree,
49 const ui::AXNodeData& old_node_data, 51 const ui::AXNodeData& old_node_data,
(...skipping 22 matching lines...) Expand all
72 // update. Used by NSAccessibilityValueChangedNotification. 74 // update. Used by NSAccessibilityValueChangedNotification.
73 // Maps AXNode IDs to name or value attribute changes. 75 // Maps AXNode IDs to name or value attribute changes.
74 std::map<int32_t, base::string16> text_edits_; 76 std::map<int32_t, base::string16> text_edits_;
75 77
76 DISALLOW_COPY_AND_ASSIGN(BrowserAccessibilityManagerMac); 78 DISALLOW_COPY_AND_ASSIGN(BrowserAccessibilityManagerMac);
77 }; 79 };
78 80
79 } 81 }
80 82
81 #endif // CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_MANAGER_MAC_H_ 83 #endif // CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_MANAGER_MAC_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698