| OLD | NEW |
| 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 Loading... |
| 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_ |
| OLD | NEW |