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

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

Issue 2795843002: Move implementation of accessibility actions to views::View (Closed)
Patch Set: Fix win compile Created 3 years, 8 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 <memory> 8 #include <memory>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 } 104 }
105 105
106 gfx::AcceleratedWidget GetTargetForNativeAccessibilityEvent() override { 106 gfx::AcceleratedWidget GetTargetForNativeAccessibilityEvent() override {
107 return gfx::kNullAcceleratedWidget; 107 return gfx::kNullAcceleratedWidget;
108 } 108 }
109 109
110 bool AccessibilityPerformAction(const ui::AXActionData& data) override { 110 bool AccessibilityPerformAction(const ui::AXActionData& data) override {
111 return false; 111 return false;
112 } 112 }
113 113
114 void DoDefaultAction() override {}
115
116 private: 114 private:
117 friend struct base::DefaultSingletonTraits<AuraLinuxApplication>; 115 friend struct base::DefaultSingletonTraits<AuraLinuxApplication>;
118 116
119 AuraLinuxApplication() 117 AuraLinuxApplication()
120 : platform_node_(ui::AXPlatformNode::Create(this)) { 118 : platform_node_(ui::AXPlatformNode::Create(this)) {
121 data_.role = ui::AX_ROLE_APPLICATION; 119 data_.role = ui::AX_ROLE_APPLICATION;
122 if (ViewsDelegate::GetInstance()) { 120 if (ViewsDelegate::GetInstance()) {
123 data_.AddStringAttribute( 121 data_.AddStringAttribute(
124 ui::AX_ATTR_NAME, 122 ui::AX_ATTR_NAME,
125 ViewsDelegate::GetInstance()->GetApplicationName()); 123 ViewsDelegate::GetInstance()->GetApplicationName());
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
163 } 161 }
164 162
165 gfx::NativeViewAccessible NativeViewAccessibilityAuraLinux::GetParent() { 163 gfx::NativeViewAccessible NativeViewAccessibilityAuraLinux::GetParent() {
166 gfx::NativeViewAccessible parent = NativeViewAccessibilityBase::GetParent(); 164 gfx::NativeViewAccessible parent = NativeViewAccessibilityBase::GetParent();
167 if (!parent) 165 if (!parent)
168 parent = AuraLinuxApplication::GetInstance()->GetNativeViewAccessible(); 166 parent = AuraLinuxApplication::GetInstance()->GetNativeViewAccessible();
169 return parent; 167 return parent;
170 } 168 }
171 169
172 } // namespace views 170 } // namespace views
OLDNEW
« no previous file with comments | « ui/views/accessibility/ax_view_obj_wrapper.cc ('k') | ui/views/accessibility/native_view_accessibility_base.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698