| 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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 51 accessible_hwnd_->OnManagerDeleted(); | 51 accessible_hwnd_->OnManagerDeleted(); |
| 52 } | 52 } |
| 53 | 53 |
| 54 // static | 54 // static |
| 55 ui::AXNodeData BrowserAccessibilityManagerWin::GetEmptyDocument() { | 55 ui::AXNodeData BrowserAccessibilityManagerWin::GetEmptyDocument() { |
| 56 ui::AXNodeData empty_document; | 56 ui::AXNodeData empty_document; |
| 57 empty_document.id = 0; | 57 empty_document.id = 0; |
| 58 empty_document.role = ui::AX_ROLE_ROOT_WEB_AREA; | 58 empty_document.role = ui::AX_ROLE_ROOT_WEB_AREA; |
| 59 empty_document.state = | 59 empty_document.state = |
| 60 (1 << blink::WebAXStateEnabled) | | 60 (1 << blink::WebAXStateEnabled) | |
| 61 (1 << ui::AX_STATE_READONLY) | | 61 (1 << ui::AX_STATE_READ_ONLY) | |
| 62 (1 << ui::AX_STATE_BUSY); | 62 (1 << ui::AX_STATE_BUSY); |
| 63 return empty_document; | 63 return empty_document; |
| 64 } | 64 } |
| 65 | 65 |
| 66 void BrowserAccessibilityManagerWin::MaybeCallNotifyWinEvent(DWORD event, | 66 void BrowserAccessibilityManagerWin::MaybeCallNotifyWinEvent(DWORD event, |
| 67 LONG child_id) { | 67 LONG child_id) { |
| 68 // Don't fire events if this view isn't hooked up to its parent. | 68 // Don't fire events if this view isn't hooked up to its parent. |
| 69 if (!parent_iaccessible()) | 69 if (!parent_iaccessible()) |
| 70 return; | 70 return; |
| 71 | 71 |
| (...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 230 // |parent_iaccessible_| are no longer valid either, since they were | 230 // |parent_iaccessible_| are no longer valid either, since they were |
| 231 // derived from AccessibleHWND. We don't have to restore them to | 231 // derived from AccessibleHWND. We don't have to restore them to |
| 232 // previous values, though, because this should only happen | 232 // previous values, though, because this should only happen |
| 233 // during the destruct sequence for this window. | 233 // during the destruct sequence for this window. |
| 234 accessible_hwnd_ = NULL; | 234 accessible_hwnd_ = NULL; |
| 235 parent_hwnd_ = NULL; | 235 parent_hwnd_ = NULL; |
| 236 parent_iaccessible_ = NULL; | 236 parent_iaccessible_ = NULL; |
| 237 } | 237 } |
| 238 | 238 |
| 239 } // namespace content | 239 } // namespace content |
| OLD | NEW |