Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(292)

Side by Side Diff: ui/views/accessibility/native_view_accessibility_auralinux.cc

Issue 2341633006: MacViews/a11y: Allow accessibility clients to update the selected text. (Closed)
Patch Set: Review comments. Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 void DoDefaultAction() override {
110 } 110 }
111 111
112 bool SetStringValue(const base::string16& new_value) override { 112 bool SetStringValue(const base::string16& new_value,
113 bool clear_first) override {
113 return false; 114 return false;
114 } 115 }
115 116
116 bool CanSetStringValue() override { return false; } 117 bool CanSetStringValue() override { return false; }
117 118
118 private: 119 private:
119 friend struct base::DefaultSingletonTraits<AuraLinuxApplication>; 120 friend struct base::DefaultSingletonTraits<AuraLinuxApplication>;
120 121
121 AuraLinuxApplication() 122 AuraLinuxApplication()
122 : platform_node_(ui::AXPlatformNode::Create(this)) { 123 : platform_node_(ui::AXPlatformNode::Create(this)) {
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
165 } 166 }
166 167
167 gfx::NativeViewAccessible NativeViewAccessibilityAuraLinux::GetParent() { 168 gfx::NativeViewAccessible NativeViewAccessibilityAuraLinux::GetParent() {
168 gfx::NativeViewAccessible parent = NativeViewAccessibility::GetParent(); 169 gfx::NativeViewAccessible parent = NativeViewAccessibility::GetParent();
169 if (!parent) 170 if (!parent)
170 parent = AuraLinuxApplication::GetInstance()->GetNativeViewAccessible(); 171 parent = AuraLinuxApplication::GetInstance()->GetNativeViewAccessible();
171 return parent; 172 return parent;
172 } 173 }
173 174
174 } // namespace views 175 } // namespace views
OLDNEW
« no previous file with comments | « ui/views/accessibility/native_view_accessibility.cc ('k') | ui/views/controls/textfield/textfield.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698