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

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

Issue 2933353002: Forward four more BrowserAccessibility APIs to AXPlatformNode. (Closed)
Patch Set: Use SkColor.h instead Created 3 years, 6 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 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 void OnWidgetDestroying(Widget* widget) override { 65 void OnWidgetDestroying(Widget* widget) override {
66 auto iter = std::find(widgets_.begin(), widgets_.end(), widget); 66 auto iter = std::find(widgets_.begin(), widgets_.end(), widget);
67 if (iter != widgets_.end()) 67 if (iter != widgets_.end())
68 widgets_.erase(iter); 68 widgets_.erase(iter);
69 } 69 }
70 70
71 // ui::AXPlatformNodeDelegate: 71 // ui::AXPlatformNodeDelegate:
72 72
73 const ui::AXNodeData& GetData() const override { return data_; } 73 const ui::AXNodeData& GetData() const override { return data_; }
74 74
75 const ui::AXTreeData& GetTreeData() const override {
76 CR_DEFINE_STATIC_LOCAL(ui::AXTreeData, empty_data, ());
77 return empty_data;
78 }
79
75 gfx::NativeWindow GetTopLevelWidget() override { return nullptr; } 80 gfx::NativeWindow GetTopLevelWidget() override { return nullptr; }
76 81
77 gfx::NativeViewAccessible GetParent() override { 82 gfx::NativeViewAccessible GetParent() override {
78 return nullptr; 83 return nullptr;
79 } 84 }
80 85
81 int GetChildCount() override { 86 int GetChildCount() override {
82 return static_cast<int>(widgets_.size()); 87 return static_cast<int>(widgets_.size());
83 } 88 }
84 89
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
159 } 164 }
160 165
161 gfx::NativeViewAccessible NativeViewAccessibilityAuraLinux::GetParent() { 166 gfx::NativeViewAccessible NativeViewAccessibilityAuraLinux::GetParent() {
162 gfx::NativeViewAccessible parent = NativeViewAccessibilityBase::GetParent(); 167 gfx::NativeViewAccessible parent = NativeViewAccessibilityBase::GetParent();
163 if (!parent) 168 if (!parent)
164 parent = AuraLinuxApplication::GetInstance()->GetNativeViewAccessible(); 169 parent = AuraLinuxApplication::GetInstance()->GetNativeViewAccessible();
165 return parent; 170 return parent;
166 } 171 }
167 172
168 } // namespace views 173 } // namespace views
OLDNEW
« no previous file with comments | « ui/accessibility/platform/test_ax_node_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