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

Side by Side Diff: ui/views/accessibility/native_view_accessibility_mac.h

Issue 2715543003: Views a11y: Implement AXPlatformNode::FromNativeViewAccessible on all platforms. (Closed)
Patch Set: Make GetForView protected. Created 3 years, 9 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 2017 The Chromium Authors. All rights reserved. 1 // Copyright 2017 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 #ifndef UI_VIEWS_ACCESSIBILITY_NATIVE_VIEW_ACCESSIBILITY_MAC_H_ 5 #ifndef UI_VIEWS_ACCESSIBILITY_NATIVE_VIEW_ACCESSIBILITY_MAC_H_
6 #define UI_VIEWS_ACCESSIBILITY_NATIVE_VIEW_ACCESSIBILITY_MAC_H_ 6 #define UI_VIEWS_ACCESSIBILITY_NATIVE_VIEW_ACCESSIBILITY_MAC_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "ui/views/accessibility/native_view_accessibility.h" 9 #include "ui/views/accessibility/native_view_accessibility.h"
10 10
11 namespace views { 11 namespace views {
12 12
13 // Mac-specific accessibility class for NativeViewAccessibility. 13 // Mac-specific accessibility class for NativeViewAccessibility.
14 class NativeViewAccessibilityMac : public NativeViewAccessibility { 14 class NativeViewAccessibilityMac : public NativeViewAccessibility {
15 public: 15 public:
16 explicit NativeViewAccessibilityMac(View* view); 16 explicit NativeViewAccessibilityMac(View* view);
17 17
18 protected:
18 // NativeViewAccessibility: 19 // NativeViewAccessibility:
19 gfx::NativeViewAccessible GetParent() override; 20 gfx::NativeViewAccessible GetNativeViewAccessibleForWidget() override;
20 21
22 private:
21 DISALLOW_COPY_AND_ASSIGN(NativeViewAccessibilityMac); 23 DISALLOW_COPY_AND_ASSIGN(NativeViewAccessibilityMac);
22 }; 24 };
23 25
24 } // namespace views 26 } // namespace views
25 27
26 #endif // UI_VIEWS_ACCESSIBILITY_NATIVE_VIEW_ACCESSIBILITY_MAC_H_ 28 #endif // UI_VIEWS_ACCESSIBILITY_NATIVE_VIEW_ACCESSIBILITY_MAC_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698