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

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

Issue 2230093002: MacViews a11y: Allow accessibility clients to set the AXValue on some controls. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Don't say attributes are settable until implemented. Created 4 years, 4 months 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 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 CanSetStringValue() override { return false; }
117
116 private: 118 private:
117 friend struct base::DefaultSingletonTraits<AuraLinuxApplication>; 119 friend struct base::DefaultSingletonTraits<AuraLinuxApplication>;
118 120
119 AuraLinuxApplication() 121 AuraLinuxApplication()
120 : platform_node_(ui::AXPlatformNode::Create(this)) { 122 : platform_node_(ui::AXPlatformNode::Create(this)) {
121 data_.role = ui::AX_ROLE_APPLICATION; 123 data_.role = ui::AX_ROLE_APPLICATION;
122 if (ViewsDelegate::GetInstance()) { 124 if (ViewsDelegate::GetInstance()) {
123 data_.AddStringAttribute( 125 data_.AddStringAttribute(
124 ui::AX_ATTR_NAME, 126 ui::AX_ATTR_NAME,
125 ViewsDelegate::GetInstance()->GetApplicationName()); 127 ViewsDelegate::GetInstance()->GetApplicationName());
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
163 } 165 }
164 166
165 gfx::NativeViewAccessible NativeViewAccessibilityAuraLinux::GetParent() { 167 gfx::NativeViewAccessible NativeViewAccessibilityAuraLinux::GetParent() {
166 gfx::NativeViewAccessible parent = NativeViewAccessibility::GetParent(); 168 gfx::NativeViewAccessible parent = NativeViewAccessibility::GetParent();
167 if (!parent) 169 if (!parent)
168 parent = AuraLinuxApplication::GetInstance()->GetNativeViewAccessible(); 170 parent = AuraLinuxApplication::GetInstance()->GetNativeViewAccessible();
169 return parent; 171 return parent;
170 } 172 }
171 173
172 } // namespace views 174 } // namespace views
OLDNEW
« no previous file with comments | « ui/views/accessibility/native_view_accessibility.cc ('k') | ui/views/widget/native_widget_mac_accessibility_unittest.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698