| 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 <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| (...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 99 } | 99 } |
| 100 | 100 |
| 101 gfx::NativeViewAccessible GetFocus() override { | 101 gfx::NativeViewAccessible GetFocus() override { |
| 102 return nullptr; | 102 return nullptr; |
| 103 } | 103 } |
| 104 | 104 |
| 105 gfx::AcceleratedWidget GetTargetForNativeAccessibilityEvent() override { | 105 gfx::AcceleratedWidget GetTargetForNativeAccessibilityEvent() override { |
| 106 return gfx::kNullAcceleratedWidget; | 106 return gfx::kNullAcceleratedWidget; |
| 107 } | 107 } |
| 108 | 108 |
| 109 void DoDefaultAction() override { | 109 bool AccessibilityPerformAction(const ui::AXActionData& data) override { |
| 110 } | |
| 111 | |
| 112 bool SetStringValue(const base::string16& new_value, | |
| 113 bool clear_first) override { | |
| 114 return false; | 110 return false; |
| 115 } | 111 } |
| 116 | 112 |
| 117 bool CanSetStringValue() override { return false; } | 113 void DoDefaultAction() override {} |
| 118 | |
| 119 bool SetFocused(bool focused) override { return false; } | |
| 120 | 114 |
| 121 private: | 115 private: |
| 122 friend struct base::DefaultSingletonTraits<AuraLinuxApplication>; | 116 friend struct base::DefaultSingletonTraits<AuraLinuxApplication>; |
| 123 | 117 |
| 124 AuraLinuxApplication() | 118 AuraLinuxApplication() |
| 125 : platform_node_(ui::AXPlatformNode::Create(this)) { | 119 : platform_node_(ui::AXPlatformNode::Create(this)) { |
| 126 data_.role = ui::AX_ROLE_APPLICATION; | 120 data_.role = ui::AX_ROLE_APPLICATION; |
| 127 if (ViewsDelegate::GetInstance()) { | 121 if (ViewsDelegate::GetInstance()) { |
| 128 data_.AddStringAttribute( | 122 data_.AddStringAttribute( |
| 129 ui::AX_ATTR_NAME, | 123 ui::AX_ATTR_NAME, |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 168 } | 162 } |
| 169 | 163 |
| 170 gfx::NativeViewAccessible NativeViewAccessibilityAuraLinux::GetParent() { | 164 gfx::NativeViewAccessible NativeViewAccessibilityAuraLinux::GetParent() { |
| 171 gfx::NativeViewAccessible parent = NativeViewAccessibility::GetParent(); | 165 gfx::NativeViewAccessible parent = NativeViewAccessibility::GetParent(); |
| 172 if (!parent) | 166 if (!parent) |
| 173 parent = AuraLinuxApplication::GetInstance()->GetNativeViewAccessible(); | 167 parent = AuraLinuxApplication::GetInstance()->GetNativeViewAccessible(); |
| 174 return parent; | 168 return parent; |
| 175 } | 169 } |
| 176 | 170 |
| 177 } // namespace views | 171 } // namespace views |
| OLD | NEW |