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::IsHotTrackingOn() { |
| 203 return true; |
| 204 } |
| 205 |
202 void NativeViewAccessibilityBase::OnWidgetDestroying(Widget* widget) { | 206 void NativeViewAccessibilityBase::OnWidgetDestroying(Widget* widget) { |
203 if (parent_widget_ == widget) { | 207 if (parent_widget_ == widget) { |
204 parent_widget_->RemoveObserver(this); | 208 parent_widget_->RemoveObserver(this); |
205 parent_widget_ = nullptr; | 209 parent_widget_ = nullptr; |
206 } | 210 } |
207 } | 211 } |
208 | 212 |
209 void NativeViewAccessibilityBase::SetParentWidget(Widget* parent_widget) { | 213 void NativeViewAccessibilityBase::SetParentWidget(Widget* parent_widget) { |
210 if (parent_widget_) | 214 if (parent_widget_) |
211 parent_widget_->RemoveObserver(this); | 215 parent_widget_->RemoveObserver(this); |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
248 child_widget_platform_node->GetDelegate()); | 252 child_widget_platform_node->GetDelegate()); |
249 if (child_widget_view_accessibility->parent_widget() != widget) | 253 if (child_widget_view_accessibility->parent_widget() != widget) |
250 child_widget_view_accessibility->SetParentWidget(widget); | 254 child_widget_view_accessibility->SetParentWidget(widget); |
251 } | 255 } |
252 | 256 |
253 result_child_widgets->push_back(child_widget); | 257 result_child_widgets->push_back(child_widget); |
254 } | 258 } |
255 } | 259 } |
256 | 260 |
257 } // namespace views | 261 } // namespace views |
OLD | NEW |