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

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

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 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 "base/macros.h" 8 #include "base/macros.h"
9 #include "ui/accessibility/ax_enums.h" 9 #include "ui/accessibility/ax_enums.h"
10 #include "ui/accessibility/platform/ax_platform_node.h" 10 #include "ui/accessibility/platform/ax_platform_node.h"
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 base::string16* value) const; 61 base::string16* value) const;
62 base::string16 GetString16Attribute( 62 base::string16 GetString16Attribute(
63 ui::AXStringAttribute attribute) const; 63 ui::AXStringAttribute attribute) const;
64 64
65 AXPlatformNodeDelegate* delegate_; // Weak. Owns this. 65 AXPlatformNodeDelegate* delegate_; // Weak. Owns this.
66 66
67 protected: 67 protected:
68 AXPlatformNodeBase(); 68 AXPlatformNodeBase();
69 ~AXPlatformNodeBase() override; 69 ~AXPlatformNodeBase() override;
70 70
71 bool IsTextOnlyObject() const;
72 bool IsNativeTextControl() const;
73 bool IsSimpleTextControl() const;
74 bool IsRichTextControl();
75 bool IsRangeValueSupported() const;
76
77 // |GetInnerText| recursively includes all the text from descendants such as
78 // text found in any embedded object.
79 base::string16 GetInnerText();
80
71 // Cast a gfx::NativeViewAccessible to an AXPlatformNodeBase if it is one, 81 // Cast a gfx::NativeViewAccessible to an AXPlatformNodeBase if it is one,
72 // or return NULL if it's not an instance of this class. 82 // or return NULL if it's not an instance of this class.
73 static AXPlatformNodeBase* FromNativeViewAccessible( 83 static AXPlatformNodeBase* FromNativeViewAccessible(
74 gfx::NativeViewAccessible accessible); 84 gfx::NativeViewAccessible accessible);
75 85
76 virtual void Dispose(); 86 virtual void Dispose();
77 87
78 // Sets the text selection in this object if possible. 88 // Sets the text selection in this object if possible.
79 bool SetTextSelection(int start_offset, int end_offset); 89 bool SetTextSelection(int start_offset, int end_offset);
80 90
81 private: 91 private:
82 DISALLOW_COPY_AND_ASSIGN(AXPlatformNodeBase); 92 DISALLOW_COPY_AND_ASSIGN(AXPlatformNodeBase);
83 }; 93 };
84 94
85 } // namespace ui 95 } // namespace ui
86 96
87 #endif // UI_ACCESSIBILITY_PLATFORM_AX_PLATFORM_NODE_BASE_H_ 97 #endif // UI_ACCESSIBILITY_PLATFORM_AX_PLATFORM_NODE_BASE_H_
OLDNEW
« no previous file with comments | « ui/accessibility/platform/ax_fake_caret_win.cc ('k') | ui/accessibility/platform/ax_platform_node_base.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698