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

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

Issue 246773008: RWHI should implement BrowserAccessibilityDelegate (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix Mac tests Created 6 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 | Annotate | Revision Log
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 "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/win/scoped_comptr.h" 8 #include "base/win/scoped_comptr.h"
9 #include "base/win/windows_version.h" 9 #include "base/win/windows_version.h"
10 #include "content/browser/accessibility/browser_accessibility_state_impl.h" 10 #include "content/browser/accessibility/browser_accessibility_state_impl.h"
(...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after
223 tracked_scroll_object_->IsDescendantOf(node)) { 223 tracked_scroll_object_->IsDescendantOf(node)) {
224 MaybeCallNotifyWinEvent( 224 MaybeCallNotifyWinEvent(
225 IA2_EVENT_VISIBLE_DATA_CHANGED, 225 IA2_EVENT_VISIBLE_DATA_CHANGED,
226 tracked_scroll_object_->ToBrowserAccessibilityWin()->unique_id_win()); 226 tracked_scroll_object_->ToBrowserAccessibilityWin()->unique_id_win());
227 tracked_scroll_object_->Release(); 227 tracked_scroll_object_->Release();
228 tracked_scroll_object_ = NULL; 228 tracked_scroll_object_ = NULL;
229 } 229 }
230 } 230 }
231 231
232 void BrowserAccessibilityManagerWin::OnRootChanged(ui::AXNode* new_root) { 232 void BrowserAccessibilityManagerWin::OnRootChanged(ui::AXNode* new_root) {
233 if (delegate_ && delegate_->HasFocus()) 233 if (delegate_ && delegate_->AccessibilityViewHasFocus())
234 NotifyAccessibilityEvent(ui::AX_EVENT_FOCUS, GetRoot()); 234 NotifyAccessibilityEvent(ui::AX_EVENT_FOCUS, GetRoot());
235 } 235 }
236 236
237 void BrowserAccessibilityManagerWin::TrackScrollingObject( 237 void BrowserAccessibilityManagerWin::TrackScrollingObject(
238 BrowserAccessibilityWin* node) { 238 BrowserAccessibilityWin* node) {
239 if (tracked_scroll_object_) 239 if (tracked_scroll_object_)
240 tracked_scroll_object_->Release(); 240 tracked_scroll_object_->Release();
241 tracked_scroll_object_ = node; 241 tracked_scroll_object_ = node;
242 tracked_scroll_object_->AddRef(); 242 tracked_scroll_object_->AddRef();
243 } 243 }
(...skipping 15 matching lines...) Expand all
259 // |parent_iaccessible_| are no longer valid either, since they were 259 // |parent_iaccessible_| are no longer valid either, since they were
260 // derived from AccessibleHWND. We don't have to restore them to 260 // derived from AccessibleHWND. We don't have to restore them to
261 // previous values, though, because this should only happen 261 // previous values, though, because this should only happen
262 // during the destruct sequence for this window. 262 // during the destruct sequence for this window.
263 accessible_hwnd_ = NULL; 263 accessible_hwnd_ = NULL;
264 parent_hwnd_ = NULL; 264 parent_hwnd_ = NULL;
265 parent_iaccessible_ = NULL; 265 parent_iaccessible_ = NULL;
266 } 266 }
267 267
268 } // namespace content 268 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698