| 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 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 106 return gfx::kNullAcceleratedWidget; | 106 return gfx::kNullAcceleratedWidget; |
| 107 } | 107 } |
| 108 | 108 |
| 109 void DoDefaultAction() override { | 109 void DoDefaultAction() override { |
| 110 } | 110 } |
| 111 | 111 |
| 112 bool SetStringValue(const base::string16& new_value) override { | 112 bool SetStringValue(const base::string16& new_value) override { |
| 113 return false; | 113 return false; |
| 114 } | 114 } |
| 115 | 115 |
| 116 bool ReplaceSelectedText(const base::string16& new_value) override { |
| 117 return false; |
| 118 } |
| 119 |
| 116 bool CanSetStringValue() override { return false; } | 120 bool CanSetStringValue() override { return false; } |
| 117 | 121 |
| 118 private: | 122 private: |
| 119 friend struct base::DefaultSingletonTraits<AuraLinuxApplication>; | 123 friend struct base::DefaultSingletonTraits<AuraLinuxApplication>; |
| 120 | 124 |
| 121 AuraLinuxApplication() | 125 AuraLinuxApplication() |
| 122 : platform_node_(ui::AXPlatformNode::Create(this)) { | 126 : platform_node_(ui::AXPlatformNode::Create(this)) { |
| 123 data_.role = ui::AX_ROLE_APPLICATION; | 127 data_.role = ui::AX_ROLE_APPLICATION; |
| 124 if (ViewsDelegate::GetInstance()) { | 128 if (ViewsDelegate::GetInstance()) { |
| 125 data_.AddStringAttribute( | 129 data_.AddStringAttribute( |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 165 } | 169 } |
| 166 | 170 |
| 167 gfx::NativeViewAccessible NativeViewAccessibilityAuraLinux::GetParent() { | 171 gfx::NativeViewAccessible NativeViewAccessibilityAuraLinux::GetParent() { |
| 168 gfx::NativeViewAccessible parent = NativeViewAccessibility::GetParent(); | 172 gfx::NativeViewAccessible parent = NativeViewAccessibility::GetParent(); |
| 169 if (!parent) | 173 if (!parent) |
| 170 parent = AuraLinuxApplication::GetInstance()->GetNativeViewAccessible(); | 174 parent = AuraLinuxApplication::GetInstance()->GetNativeViewAccessible(); |
| 171 return parent; | 175 return parent; |
| 172 } | 176 } |
| 173 | 177 |
| 174 } // namespace views | 178 } // namespace views |
| OLD | NEW |