| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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_auralinux.h" | 5 #include "ui/views/accessibility/native_view_accessibility_auralinux.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 #include <memory> | 8 #include <memory> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 88 | 88 |
| 89 Widget* widget = widgets_[index]; | 89 Widget* widget = widgets_[index]; |
| 90 CHECK(widget); | 90 CHECK(widget); |
| 91 return widget->GetRootView()->GetNativeViewAccessible(); | 91 return widget->GetRootView()->GetNativeViewAccessible(); |
| 92 } | 92 } |
| 93 | 93 |
| 94 gfx::Vector2d GetGlobalCoordinateOffset() override { | 94 gfx::Vector2d GetGlobalCoordinateOffset() override { |
| 95 return gfx::Vector2d(); | 95 return gfx::Vector2d(); |
| 96 } | 96 } |
| 97 | 97 |
| 98 gfx::Rect GetScreenBoundsRect() const override { |
| 99 NOTREACHED(); |
| 100 return gfx::Rect(0, 0, 0, 0); |
| 101 } |
| 102 |
| 98 gfx::NativeViewAccessible HitTestSync(int x, int y) override { | 103 gfx::NativeViewAccessible HitTestSync(int x, int y) override { |
| 99 return nullptr; | 104 return nullptr; |
| 100 } | 105 } |
| 101 | 106 |
| 102 gfx::NativeViewAccessible GetFocus() override { | 107 gfx::NativeViewAccessible GetFocus() override { |
| 103 return nullptr; | 108 return nullptr; |
| 104 } | 109 } |
| 105 | 110 |
| 106 gfx::AcceleratedWidget GetTargetForNativeAccessibilityEvent() override { | 111 gfx::AcceleratedWidget GetTargetForNativeAccessibilityEvent() override { |
| 107 return gfx::kNullAcceleratedWidget; | 112 return gfx::kNullAcceleratedWidget; |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 163 } | 168 } |
| 164 | 169 |
| 165 gfx::NativeViewAccessible NativeViewAccessibilityAuraLinux::GetParent() { | 170 gfx::NativeViewAccessible NativeViewAccessibilityAuraLinux::GetParent() { |
| 166 gfx::NativeViewAccessible parent = NativeViewAccessibilityBase::GetParent(); | 171 gfx::NativeViewAccessible parent = NativeViewAccessibilityBase::GetParent(); |
| 167 if (!parent) | 172 if (!parent) |
| 168 parent = AuraLinuxApplication::GetInstance()->GetNativeViewAccessible(); | 173 parent = AuraLinuxApplication::GetInstance()->GetNativeViewAccessible(); |
| 169 return parent; | 174 return parent; |
| 170 } | 175 } |
| 171 | 176 |
| 172 } // namespace views | 177 } // namespace views |
| OLD | NEW |