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 181 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
192 gfx::AcceleratedWidget | 192 gfx::AcceleratedWidget |
193 NativeViewAccessibilityBase::GetTargetForNativeAccessibilityEvent() { | 193 NativeViewAccessibilityBase::GetTargetForNativeAccessibilityEvent() { |
194 return gfx::kNullAcceleratedWidget; | 194 return gfx::kNullAcceleratedWidget; |
195 } | 195 } |
196 | 196 |
197 bool NativeViewAccessibilityBase::AccessibilityPerformAction( | 197 bool NativeViewAccessibilityBase::AccessibilityPerformAction( |
198 const ui::AXActionData& data) { | 198 const ui::AXActionData& data) { |
199 return view_->HandleAccessibleAction(data); | 199 return view_->HandleAccessibleAction(data); |
200 } | 200 } |
201 | 201 |
202 bool NativeViewAccessibilityBase::ShouldIgnoreHoveredStateForTesting() { | |
203 return false; | |
204 } | |
205 | |
206 void NativeViewAccessibilityBase::OnWidgetDestroying(Widget* widget) { | 202 void NativeViewAccessibilityBase::OnWidgetDestroying(Widget* widget) { |
207 if (parent_widget_ == widget) { | 203 if (parent_widget_ == widget) { |
208 parent_widget_->RemoveObserver(this); | 204 parent_widget_->RemoveObserver(this); |
209 parent_widget_ = nullptr; | 205 parent_widget_ = nullptr; |
210 } | 206 } |
211 } | 207 } |
212 | 208 |
213 void NativeViewAccessibilityBase::SetParentWidget(Widget* parent_widget) { | 209 void NativeViewAccessibilityBase::SetParentWidget(Widget* parent_widget) { |
214 if (parent_widget_) | 210 if (parent_widget_) |
215 parent_widget_->RemoveObserver(this); | 211 parent_widget_->RemoveObserver(this); |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
252 child_widget_platform_node->GetDelegate()); | 248 child_widget_platform_node->GetDelegate()); |
253 if (child_widget_view_accessibility->parent_widget() != widget) | 249 if (child_widget_view_accessibility->parent_widget() != widget) |
254 child_widget_view_accessibility->SetParentWidget(widget); | 250 child_widget_view_accessibility->SetParentWidget(widget); |
255 } | 251 } |
256 | 252 |
257 result_child_widgets->push_back(child_widget); | 253 result_child_widgets->push_back(child_widget); |
258 } | 254 } |
259 } | 255 } |
260 | 256 |
261 } // namespace views | 257 } // namespace views |
OLD | NEW |