OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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 "ui/views/accessibility/native_view_accessibility_base.h" | 5 #include "ui/views/accessibility/native_view_accessibility_base.h" |
6 | 6 |
7 #include "base/memory/ptr_util.h" | 7 #include "base/memory/ptr_util.h" |
8 #include "base/strings/utf_string_conversions.h" | 8 #include "base/strings/utf_string_conversions.h" |
9 #include "ui/events/event_utils.h" | 9 #include "ui/events/event_utils.h" |
10 #include "ui/gfx/native_widget_types.h" | 10 #include "ui/gfx/native_widget_types.h" |
(...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
197 gfx::AcceleratedWidget | 197 gfx::AcceleratedWidget |
198 NativeViewAccessibilityBase::GetTargetForNativeAccessibilityEvent() { | 198 NativeViewAccessibilityBase::GetTargetForNativeAccessibilityEvent() { |
199 return gfx::kNullAcceleratedWidget; | 199 return gfx::kNullAcceleratedWidget; |
200 } | 200 } |
201 | 201 |
202 bool NativeViewAccessibilityBase::AccessibilityPerformAction( | 202 bool NativeViewAccessibilityBase::AccessibilityPerformAction( |
203 const ui::AXActionData& data) { | 203 const ui::AXActionData& data) { |
204 return view_->HandleAccessibleAction(data); | 204 return view_->HandleAccessibleAction(data); |
205 } | 205 } |
206 | 206 |
| 207 bool NativeViewAccessibilityBase::ShouldIgnoreHoveredStateForTesting() { |
| 208 return false; |
| 209 } |
| 210 |
207 void NativeViewAccessibilityBase::OnWidgetDestroying(Widget* widget) { | 211 void NativeViewAccessibilityBase::OnWidgetDestroying(Widget* widget) { |
208 if (parent_widget_ == widget) { | 212 if (parent_widget_ == widget) { |
209 parent_widget_->RemoveObserver(this); | 213 parent_widget_->RemoveObserver(this); |
210 parent_widget_ = nullptr; | 214 parent_widget_ = nullptr; |
211 } | 215 } |
212 } | 216 } |
213 | 217 |
214 void NativeViewAccessibilityBase::SetParentWidget(Widget* parent_widget) { | 218 void NativeViewAccessibilityBase::SetParentWidget(Widget* parent_widget) { |
215 if (parent_widget_) | 219 if (parent_widget_) |
216 parent_widget_->RemoveObserver(this); | 220 parent_widget_->RemoveObserver(this); |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
253 child_widget_platform_node->GetDelegate()); | 257 child_widget_platform_node->GetDelegate()); |
254 if (child_widget_view_accessibility->parent_widget() != widget) | 258 if (child_widget_view_accessibility->parent_widget() != widget) |
255 child_widget_view_accessibility->SetParentWidget(widget); | 259 child_widget_view_accessibility->SetParentWidget(widget); |
256 } | 260 } |
257 | 261 |
258 result_child_widgets->push_back(child_widget); | 262 result_child_widgets->push_back(child_widget); |
259 } | 263 } |
260 } | 264 } |
261 | 265 |
262 } // namespace views | 266 } // namespace views |
OLD | NEW |