| 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 "content/browser/accessibility/browser_accessibility_win.h" | 7 #include "content/browser/accessibility/browser_accessibility_win.h" |
| 8 #include "content/common/accessibility_messages.h" | 8 #include "content/common/accessibility_messages.h" |
| 9 | 9 |
| 10 namespace content { | 10 namespace content { |
| (...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 105 break; | 105 break; |
| 106 case AccessibilityNotificationMenuListValueChanged: | 106 case AccessibilityNotificationMenuListValueChanged: |
| 107 event_id = EVENT_OBJECT_VALUECHANGE; | 107 event_id = EVENT_OBJECT_VALUECHANGE; |
| 108 break; | 108 break; |
| 109 case AccessibilityNotificationObjectHide: | 109 case AccessibilityNotificationObjectHide: |
| 110 event_id = EVENT_OBJECT_HIDE; | 110 event_id = EVENT_OBJECT_HIDE; |
| 111 break; | 111 break; |
| 112 case AccessibilityNotificationObjectShow: | 112 case AccessibilityNotificationObjectShow: |
| 113 event_id = EVENT_OBJECT_SHOW; | 113 event_id = EVENT_OBJECT_SHOW; |
| 114 break; | 114 break; |
| 115 case AccessibilityNotificationScrolledToAnchor: |
| 116 event_id = EVENT_SYSTEM_SCROLLINGSTART; |
| 117 break; |
| 115 case AccessibilityNotificationSelectedChildrenChanged: | 118 case AccessibilityNotificationSelectedChildrenChanged: |
| 116 event_id = EVENT_OBJECT_SELECTIONWITHIN; | 119 event_id = EVENT_OBJECT_SELECTIONWITHIN; |
| 117 break; | 120 break; |
| 118 case AccessibilityNotificationSelectedTextChanged: | 121 case AccessibilityNotificationSelectedTextChanged: |
| 119 event_id = IA2_EVENT_TEXT_CARET_MOVED; | 122 event_id = IA2_EVENT_TEXT_CARET_MOVED; |
| 120 break; | 123 break; |
| 121 case AccessibilityNotificationTextChanged: | 124 case AccessibilityNotificationTextChanged: |
| 122 event_id = EVENT_OBJECT_NAMECHANGE; | 125 event_id = EVENT_OBJECT_NAMECHANGE; |
| 123 break; | 126 break; |
| 124 case AccessibilityNotificationTextInserted: | 127 case AccessibilityNotificationTextInserted: |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 156 | 159 |
| 157 void BrowserAccessibilityManagerWin::TrackScrollingObject( | 160 void BrowserAccessibilityManagerWin::TrackScrollingObject( |
| 158 BrowserAccessibilityWin* node) { | 161 BrowserAccessibilityWin* node) { |
| 159 if (tracked_scroll_object_) | 162 if (tracked_scroll_object_) |
| 160 tracked_scroll_object_->Release(); | 163 tracked_scroll_object_->Release(); |
| 161 tracked_scroll_object_ = node; | 164 tracked_scroll_object_ = node; |
| 162 tracked_scroll_object_->AddRef(); | 165 tracked_scroll_object_->AddRef(); |
| 163 } | 166 } |
| 164 | 167 |
| 165 } // namespace content | 168 } // namespace content |
| OLD | NEW |