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

Side by Side Diff: public/web/WebAXObject.h

Issue 495763005: Switch to using accessibilityEnabled and inlineTextBoxAccessibilityEnabled from settings (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: logspam Created 6 years, 4 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 | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2009 Google Inc. All rights reserved. 2 * Copyright (C) 2009 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 } 64 }
65 65
66 BLINK_EXPORT void reset(); 66 BLINK_EXPORT void reset();
67 BLINK_EXPORT void assign(const WebAXObject&); 67 BLINK_EXPORT void assign(const WebAXObject&);
68 BLINK_EXPORT bool equals(const WebAXObject&) const; 68 BLINK_EXPORT bool equals(const WebAXObject&) const;
69 69
70 bool isNull() const { return m_private.isNull(); } 70 bool isNull() const { return m_private.isNull(); }
71 // isDetached also checks for null, so it's safe to just call isDetached. 71 // isDetached also checks for null, so it's safe to just call isDetached.
72 BLINK_EXPORT bool isDetached() const; 72 BLINK_EXPORT bool isDetached() const;
73 73
74 // Static methods for enabling accessibility.
75 BLINK_EXPORT static void enableAccessibility();
76 BLINK_EXPORT static bool accessibilityEnabled();
77
78 // Temporary: this flag will only be toggleable until Chromium has it on by default.
79 BLINK_EXPORT static void enableInlineTextBoxAccessibility();
80
81 BLINK_EXPORT int axID() const; 74 BLINK_EXPORT int axID() const;
82 75
83 // Update layout on the underlying tree, and return true if this object is 76 // Update layout on the underlying tree, and return true if this object is
84 // still valid (not detached). Note that calling this method 77 // still valid (not detached). Note that calling this method
85 // can cause other WebAXObjects to become invalid, too, 78 // can cause other WebAXObjects to become invalid, too,
86 // so always call isDetached if updateBackingStoreAndCheckValidity 79 // so always call isDetached if updateBackingStoreAndCheckValidity
87 // has been called on any object, or if any other WebCore code has run. 80 // has been called on any object, or if any other WebCore code has run.
88 BLINK_EXPORT bool updateLayoutAndCheckValidity(); 81 BLINK_EXPORT bool updateLayoutAndCheckValidity();
89 82
90 // FIXME: Deprecated - remove once callers use updateLayoutAndCheckValidity, instead. 83 // FIXME: Deprecated - remove once callers use updateLayoutAndCheckValidity, instead.
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
221 operator WTF::PassRefPtr<AXObject>() const; 214 operator WTF::PassRefPtr<AXObject>() const;
222 #endif 215 #endif
223 216
224 private: 217 private:
225 WebPrivatePtr<AXObject> m_private; 218 WebPrivatePtr<AXObject> m_private;
226 }; 219 };
227 220
228 } // namespace blink 221 } // namespace blink
229 222
230 #endif 223 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698