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

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

Issue 2490073002: MacViews/a11y: Allow accessibility clients to focus and unfocus focusable Views. (Closed)
Patch Set: Fix test. 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 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 void DoDefaultAction() override { 109 void DoDefaultAction() override {
110 } 110 }
111 111
112 bool SetStringValue(const base::string16& new_value, 112 bool SetStringValue(const base::string16& new_value,
113 bool clear_first) override { 113 bool clear_first) override {
114 return false; 114 return false;
115 } 115 }
116 116
117 bool CanSetStringValue() override { return false; } 117 bool CanSetStringValue() override { return false; }
118 118
119 bool SetFocused(bool focused) override { return false; }
120
119 private: 121 private:
120 friend struct base::DefaultSingletonTraits<AuraLinuxApplication>; 122 friend struct base::DefaultSingletonTraits<AuraLinuxApplication>;
121 123
122 AuraLinuxApplication() 124 AuraLinuxApplication()
123 : platform_node_(ui::AXPlatformNode::Create(this)) { 125 : platform_node_(ui::AXPlatformNode::Create(this)) {
124 data_.role = ui::AX_ROLE_APPLICATION; 126 data_.role = ui::AX_ROLE_APPLICATION;
125 if (ViewsDelegate::GetInstance()) { 127 if (ViewsDelegate::GetInstance()) {
126 data_.AddStringAttribute( 128 data_.AddStringAttribute(
127 ui::AX_ATTR_NAME, 129 ui::AX_ATTR_NAME,
128 ViewsDelegate::GetInstance()->GetApplicationName()); 130 ViewsDelegate::GetInstance()->GetApplicationName());
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
166 } 168 }
167 169
168 gfx::NativeViewAccessible NativeViewAccessibilityAuraLinux::GetParent() { 170 gfx::NativeViewAccessible NativeViewAccessibilityAuraLinux::GetParent() {
169 gfx::NativeViewAccessible parent = NativeViewAccessibility::GetParent(); 171 gfx::NativeViewAccessible parent = NativeViewAccessibility::GetParent();
170 if (!parent) 172 if (!parent)
171 parent = AuraLinuxApplication::GetInstance()->GetNativeViewAccessible(); 173 parent = AuraLinuxApplication::GetInstance()->GetNativeViewAccessible();
172 return parent; 174 return parent;
173 } 175 }
174 176
175 } // namespace views 177 } // namespace views
OLDNEW
« no previous file with comments | « ui/views/accessibility/native_view_accessibility.cc ('k') | ui/views/accessibility/native_view_accessibility_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698