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

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: Make WebAXObject methods noops 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 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
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. 74 // Static methods for enabling accessibility.
75 BLINK_EXPORT static void enableAccessibility(); 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(); 76 BLINK_EXPORT static void enableInlineTextBoxAccessibility();
80 77
81 BLINK_EXPORT int axID() const; 78 BLINK_EXPORT int axID() const;
82 79
83 // Update layout on the underlying tree, and return true if this object is 80 // Update layout on the underlying tree, and return true if this object is
84 // still valid (not detached). Note that calling this method 81 // still valid (not detached). Note that calling this method
85 // can cause other WebAXObjects to become invalid, too, 82 // can cause other WebAXObjects to become invalid, too,
86 // so always call isDetached if updateBackingStoreAndCheckValidity 83 // so always call isDetached if updateBackingStoreAndCheckValidity
87 // has been called on any object, or if any other WebCore code has run. 84 // has been called on any object, or if any other WebCore code has run.
88 BLINK_EXPORT bool updateLayoutAndCheckValidity(); 85 BLINK_EXPORT bool updateLayoutAndCheckValidity();
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
221 operator WTF::PassRefPtr<AXObject>() const; 218 operator WTF::PassRefPtr<AXObject>() const;
222 #endif 219 #endif
223 220
224 private: 221 private:
225 WebPrivatePtr<AXObject> m_private; 222 WebPrivatePtr<AXObject> m_private;
226 }; 223 };
227 224
228 } // namespace blink 225 } // namespace blink
229 226
230 #endif 227 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698