| 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 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 84 | 84 |
| 85 gfx::NativeViewAccessible ChildAtIndex(int index) override { | 85 gfx::NativeViewAccessible ChildAtIndex(int index) override { |
| 86 if (index < 0 || index >= GetChildCount()) | 86 if (index < 0 || index >= GetChildCount()) |
| 87 return nullptr; | 87 return nullptr; |
| 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::Rect GetScreenBoundsRect() const override { |
| 95 return gfx::Vector2d(); | 95 NOTREACHED(); |
| 96 return gfx::Rect(0, 0, 0, 0); |
| 96 } | 97 } |
| 97 | 98 |
| 98 gfx::NativeViewAccessible HitTestSync(int x, int y) override { | 99 gfx::NativeViewAccessible HitTestSync(int x, int y) override { |
| 99 return nullptr; | 100 return nullptr; |
| 100 } | 101 } |
| 101 | 102 |
| 102 gfx::NativeViewAccessible GetFocus() override { | 103 gfx::NativeViewAccessible GetFocus() override { |
| 103 return nullptr; | 104 return nullptr; |
| 104 } | 105 } |
| 105 | 106 |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 163 } | 164 } |
| 164 | 165 |
| 165 gfx::NativeViewAccessible NativeViewAccessibilityAuraLinux::GetParent() { | 166 gfx::NativeViewAccessible NativeViewAccessibilityAuraLinux::GetParent() { |
| 166 gfx::NativeViewAccessible parent = NativeViewAccessibilityBase::GetParent(); | 167 gfx::NativeViewAccessible parent = NativeViewAccessibilityBase::GetParent(); |
| 167 if (!parent) | 168 if (!parent) |
| 168 parent = AuraLinuxApplication::GetInstance()->GetNativeViewAccessible(); | 169 parent = AuraLinuxApplication::GetInstance()->GetNativeViewAccessible(); |
| 169 return parent; | 170 return parent; |
| 170 } | 171 } |
| 171 | 172 |
| 172 } // namespace views | 173 } // namespace views |
| OLD | NEW |