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

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

Issue 344573003: More NVDA browse mode fixes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@x64_2
Patch Set: Address feedback Created 6 years, 6 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_win.cc » ('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_WIN_H_ 5 #ifndef CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_MANAGER_WIN_H_
6 #define CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_MANAGER_WIN_H_ 6 #define CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_MANAGER_WIN_H_
7 7
8 #include <oleacc.h> 8 #include <oleacc.h>
9 9
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 44
45 // Calls NotifyWinEvent if the parent window's IAccessible pointer is known. 45 // Calls NotifyWinEvent if the parent window's IAccessible pointer is known.
46 void MaybeCallNotifyWinEvent(DWORD event, LONG child_id); 46 void MaybeCallNotifyWinEvent(DWORD event, LONG child_id);
47 47
48 // AXTree methods 48 // AXTree methods
49 virtual void OnNodeWillBeDeleted(ui::AXNode* node) OVERRIDE; 49 virtual void OnNodeWillBeDeleted(ui::AXNode* node) OVERRIDE;
50 virtual void OnNodeCreated(ui::AXNode* node) OVERRIDE; 50 virtual void OnNodeCreated(ui::AXNode* node) OVERRIDE;
51 51
52 // BrowserAccessibilityManager methods 52 // BrowserAccessibilityManager methods
53 virtual void OnWindowFocused() OVERRIDE; 53 virtual void OnWindowFocused() OVERRIDE;
54 virtual void OnWindowBlurred() OVERRIDE;
55 virtual void NotifyAccessibilityEvent( 54 virtual void NotifyAccessibilityEvent(
56 ui::AXEvent event_type, BrowserAccessibility* node) OVERRIDE; 55 ui::AXEvent event_type, BrowserAccessibility* node) OVERRIDE;
57 56
58 // Track this object and post a VISIBLE_DATA_CHANGED notification when 57 // Track this object and post a VISIBLE_DATA_CHANGED notification when
59 // its container scrolls. 58 // its container scrolls.
60 // TODO(dmazzoni): remove once http://crbug.com/113483 is fixed. 59 // TODO(dmazzoni): remove once http://crbug.com/113483 is fixed.
61 void TrackScrollingObject(BrowserAccessibilityWin* node); 60 void TrackScrollingObject(BrowserAccessibilityWin* node);
62 61
63 // Return a pointer to the object corresponding to the given windows-specific 62 // Return a pointer to the object corresponding to the given windows-specific
64 // unique id, does not make a new reference. 63 // unique id, does not make a new reference.
(...skipping 21 matching lines...) Expand all
86 // TODO(dmazzoni): remove once http://crbug.com/113483 is fixed. 85 // TODO(dmazzoni): remove once http://crbug.com/113483 is fixed.
87 BrowserAccessibilityWin* tracked_scroll_object_; 86 BrowserAccessibilityWin* tracked_scroll_object_;
88 87
89 // A mapping from the Windows-specific unique IDs (unique within the 88 // A mapping from the Windows-specific unique IDs (unique within the
90 // browser process) to accessibility ids within this page. 89 // browser process) to accessibility ids within this page.
91 base::hash_map<long, int32> unique_id_to_ax_id_map_; 90 base::hash_map<long, int32> unique_id_to_ax_id_map_;
92 91
93 // Owned by its parent; OnAccessibleHwndDeleted gets called upon deletion. 92 // Owned by its parent; OnAccessibleHwndDeleted gets called upon deletion.
94 LegacyRenderWidgetHostHWND* accessible_hwnd_; 93 LegacyRenderWidgetHostHWND* accessible_hwnd_;
95 94
95 // Set to true if we need to fire a focus event on the root as soon as
96 // possible.
97 bool focus_event_on_root_needed_;
98
96 DISALLOW_COPY_AND_ASSIGN(BrowserAccessibilityManagerWin); 99 DISALLOW_COPY_AND_ASSIGN(BrowserAccessibilityManagerWin);
97 }; 100 };
98 101
99 } // namespace content 102 } // namespace content
100 103
101 #endif // CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_MANAGER_WIN_H_ 104 #endif // CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_MANAGER_WIN_H_
OLDNEW
« no previous file with comments | « no previous file | content/browser/accessibility/browser_accessibility_manager_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698