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

Unified Diff: ui/accessibility/platform/ax_platform_node_win.cc

Issue 2981083002: Migrate BrowserAccessibility windows unique id handling to AXPlatformNodeWin. (Closed)
Patch Set: Android fix. I was hoping I could get rid of this. Someday though! Created 3 years, 5 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 side-by-side diff with in-line comments
Download patch
Index: ui/accessibility/platform/ax_platform_node_win.cc
diff --git a/ui/accessibility/platform/ax_platform_node_win.cc b/ui/accessibility/platform/ax_platform_node_win.cc
index ca9ef23a165e5e247c421f5fa581a03b3787fa71..e957d55894f3441024ae0069828a84608280e0b5 100644
--- a/ui/accessibility/platform/ax_platform_node_win.cc
+++ b/ui/accessibility/platform/ax_platform_node_win.cc
@@ -240,7 +240,7 @@ void AXPlatformNodeWin::NotifyAccessibilityEvent(ui::AXEvent event_type) {
if (native_event < EVENT_MIN)
return;
- ::NotifyWinEvent(native_event, hwnd, OBJID_CLIENT, -unique_id_);
+ ::NotifyWinEvent(native_event, hwnd, OBJID_CLIENT, -unique_id());
// Keep track of objects that are a target of an alert event.
if (event_type == ui::AX_EVENT_ALERT)
@@ -814,7 +814,7 @@ STDMETHODIMP AXPlatformNodeWin::get_states(AccessibleStates* states) {
STDMETHODIMP AXPlatformNodeWin::get_uniqueID(LONG* unique_id) {
COM_OBJECT_VALIDATE_1_ARG(unique_id);
- *unique_id = -unique_id_;
+ *unique_id = -AXPlatformNode::unique_id();
return S_OK;
}

Powered by Google App Engine
This is Rietveld 408576698