| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |