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 224 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
235 break; | 235 break; |
236 case ui::AX_EVENT_SCROLL_POSITION_CHANGED: | 236 case ui::AX_EVENT_SCROLL_POSITION_CHANGED: |
237 event_id = EVENT_SYSTEM_SCROLLINGEND; | 237 event_id = EVENT_SYSTEM_SCROLLINGEND; |
238 break; | 238 break; |
239 case ui::AX_EVENT_SCROLLED_TO_ANCHOR: | 239 case ui::AX_EVENT_SCROLLED_TO_ANCHOR: |
240 event_id = EVENT_SYSTEM_SCROLLINGSTART; | 240 event_id = EVENT_SYSTEM_SCROLLINGSTART; |
241 break; | 241 break; |
242 case ui::AX_EVENT_SELECTED_CHILDREN_CHANGED: | 242 case ui::AX_EVENT_SELECTED_CHILDREN_CHANGED: |
243 event_id = EVENT_OBJECT_SELECTIONWITHIN; | 243 event_id = EVENT_OBJECT_SELECTIONWITHIN; |
244 break; | 244 break; |
245 case ui::AX_EVENT_SELECTED_TEXT_CHANGED: | |
246 event_id = IA2_EVENT_TEXT_CARET_MOVED; | |
247 break; | |
248 case ui::AX_EVENT_TEXT_CHANGED: | 245 case ui::AX_EVENT_TEXT_CHANGED: |
249 event_id = EVENT_OBJECT_NAMECHANGE; | 246 event_id = EVENT_OBJECT_NAMECHANGE; |
250 break; | 247 break; |
251 case ui::AX_EVENT_TEXT_INSERTED: | 248 case ui::AX_EVENT_TEXT_SELECTION_CHANGED: |
252 event_id = IA2_EVENT_TEXT_INSERTED; | 249 event_id = IA2_EVENT_TEXT_CARET_MOVED; |
253 break; | |
254 case ui::AX_EVENT_TEXT_REMOVED: | |
255 event_id = IA2_EVENT_TEXT_REMOVED; | |
256 break; | 250 break; |
257 case ui::AX_EVENT_VALUE_CHANGED: | 251 case ui::AX_EVENT_VALUE_CHANGED: |
258 event_id = EVENT_OBJECT_VALUECHANGE; | 252 event_id = EVENT_OBJECT_VALUECHANGE; |
259 break; | 253 break; |
260 default: | 254 default: |
261 // Not all WebKit accessibility events result in a Windows | 255 // Not all WebKit accessibility events result in a Windows |
262 // accessibility notification. | 256 // accessibility notification. |
263 break; | 257 break; |
264 } | 258 } |
265 | 259 |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
317 // |parent_iaccessible_| are no longer valid either, since they were | 311 // |parent_iaccessible_| are no longer valid either, since they were |
318 // derived from AccessibleHWND. We don't have to restore them to | 312 // derived from AccessibleHWND. We don't have to restore them to |
319 // previous values, though, because this should only happen | 313 // previous values, though, because this should only happen |
320 // during the destruct sequence for this window. | 314 // during the destruct sequence for this window. |
321 accessible_hwnd_ = NULL; | 315 accessible_hwnd_ = NULL; |
322 parent_hwnd_ = NULL; | 316 parent_hwnd_ = NULL; |
323 parent_iaccessible_ = NULL; | 317 parent_iaccessible_ = NULL; |
324 } | 318 } |
325 | 319 |
326 } // namespace content | 320 } // namespace content |
OLD | NEW |