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

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

Issue 1841333002: Various fixes for aria-activedescendant. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed some Blink tests. Created 4 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/test/data/accessibility/event/listbox-focus.html » ('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 #include "content/browser/accessibility/browser_accessibility_manager_win.h" 5 #include "content/browser/accessibility/browser_accessibility_manager_win.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <vector> 10 #include <vector>
(...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after
216 // accessibility notification. 216 // accessibility notification.
217 break; 217 break;
218 } 218 }
219 219
220 if (!node) 220 if (!node)
221 return; 221 return;
222 222
223 if (event_id != EVENT_MIN) 223 if (event_id != EVENT_MIN)
224 MaybeCallNotifyWinEvent(event_id, node); 224 MaybeCallNotifyWinEvent(event_id, node);
225 225
226
227 // If this is a layout complete notification (sent when a container scrolls) 226 // If this is a layout complete notification (sent when a container scrolls)
228 // and there is a descendant tracked object, send a notification on it. 227 // and there is a descendant tracked object, send a notification on it.
229 // TODO(dmazzoni): remove once http://crbug.com/113483 is fixed. 228 // TODO(dmazzoni): remove once http://crbug.com/113483 is fixed.
230 if (event_type == ui::AX_EVENT_LAYOUT_COMPLETE && 229 if (event_type == ui::AX_EVENT_LAYOUT_COMPLETE &&
231 tracked_scroll_object_ && 230 tracked_scroll_object_ &&
232 tracked_scroll_object_->IsDescendantOf(node)) { 231 tracked_scroll_object_->IsDescendantOf(node)) {
233 MaybeCallNotifyWinEvent( 232 MaybeCallNotifyWinEvent(
234 IA2_EVENT_VISIBLE_DATA_CHANGED, tracked_scroll_object_); 233 IA2_EVENT_VISIBLE_DATA_CHANGED, tracked_scroll_object_);
235 tracked_scroll_object_->Release(); 234 tracked_scroll_object_->Release();
236 tracked_scroll_object_ = NULL; 235 tracked_scroll_object_ = NULL;
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
341 340
342 void BrowserAccessibilityManagerWin::TrackScrollingObject( 341 void BrowserAccessibilityManagerWin::TrackScrollingObject(
343 BrowserAccessibilityWin* node) { 342 BrowserAccessibilityWin* node) {
344 if (tracked_scroll_object_) 343 if (tracked_scroll_object_)
345 tracked_scroll_object_->Release(); 344 tracked_scroll_object_->Release();
346 tracked_scroll_object_ = node; 345 tracked_scroll_object_ = node;
347 tracked_scroll_object_->AddRef(); 346 tracked_scroll_object_->AddRef();
348 } 347 }
349 348
350 } // namespace content 349 } // namespace content
OLDNEW
« no previous file with comments | « no previous file | content/test/data/accessibility/event/listbox-focus.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698