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

Side by Side Diff: ui/accessibility/platform/ax_platform_node_base.h

Issue 975113002: Resurrect Aura Linux accessibility. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Call g_type_init from ax_platform_node_auralinux instead Created 5 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_ACCESSIBILITY_PLATFORM_AX_PLATFORM_NODE_BASE_H_ 5 #ifndef UI_ACCESSIBILITY_PLATFORM_AX_PLATFORM_NODE_BASE_H_
6 #define UI_ACCESSIBILITY_PLATFORM_AX_PLATFORM_NODE_BASE_H_ 6 #define UI_ACCESSIBILITY_PLATFORM_AX_PLATFORM_NODE_BASE_H_
7 7
8 #include "ui/accessibility/ax_enums.h" 8 #include "ui/accessibility/ax_enums.h"
9 #include "ui/accessibility/platform/ax_platform_node.h" 9 #include "ui/accessibility/platform/ax_platform_node.h"
10 #include "ui/gfx/geometry/rect.h" 10 #include "ui/gfx/geometry/rect.h"
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 bool HasStringAttribute( 54 bool HasStringAttribute(
55 ui::AXStringAttribute attribute) const; 55 ui::AXStringAttribute attribute) const;
56 const std::string& GetStringAttribute(ui::AXStringAttribute attribute) const; 56 const std::string& GetStringAttribute(ui::AXStringAttribute attribute) const;
57 bool GetStringAttribute(ui::AXStringAttribute attribute, 57 bool GetStringAttribute(ui::AXStringAttribute attribute,
58 std::string* value) const; 58 std::string* value) const;
59 bool GetString16Attribute(ui::AXStringAttribute attribute, 59 bool GetString16Attribute(ui::AXStringAttribute attribute,
60 base::string16* value) const; 60 base::string16* value) const;
61 base::string16 GetString16Attribute( 61 base::string16 GetString16Attribute(
62 ui::AXStringAttribute attribute) const; 62 ui::AXStringAttribute attribute) const;
63 63
64 AXPlatformNodeDelegate* delegate_; // Weak. Owns this.
65
64 protected: 66 protected:
65 AXPlatformNodeBase(); 67 AXPlatformNodeBase();
66 ~AXPlatformNodeBase() override; 68 ~AXPlatformNodeBase() override;
67 69
68 // Cast a gfx::NativeViewAccessible to an AXPlatformNodeBase if it is one, 70 // Cast a gfx::NativeViewAccessible to an AXPlatformNodeBase if it is one,
69 // or return NULL if it's not an instance of this class. 71 // or return NULL if it's not an instance of this class.
70 static AXPlatformNodeBase* FromNativeViewAccessible( 72 static AXPlatformNodeBase* FromNativeViewAccessible(
71 gfx::NativeViewAccessible accessible); 73 gfx::NativeViewAccessible accessible);
72 74
73 AXPlatformNodeDelegate* delegate_; // Weak. Owns this. 75
74 76
75 private: 77 private:
76 DISALLOW_COPY_AND_ASSIGN(AXPlatformNodeBase); 78 DISALLOW_COPY_AND_ASSIGN(AXPlatformNodeBase);
77 }; 79 };
78 80
79 } // namespace ui 81 } // namespace ui
80 82
81 #endif // UI_ACCESSIBILITY_PLATFORM_AX_PLATFORM_NODE_BASE_H_ 83 #endif // UI_ACCESSIBILITY_PLATFORM_AX_PLATFORM_NODE_BASE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698