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

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

Issue 885163002: [Contextual Search] Check for ARIA widget roles. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Added aria-attribute check and unit test. Created 5 years, 10 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
« Source/web/WebAXObject.cpp ('K') | « Source/web/WebAXObject.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 211 matching lines...) Expand 10 before | Expand all | Expand 10 after
222 BLINK_EXPORT void characterOffsets(WebVector<int>&) const; 222 BLINK_EXPORT void characterOffsets(WebVector<int>&) const;
223 BLINK_EXPORT void wordBoundaries(WebVector<int>& starts, WebVector<int>& end s) const; 223 BLINK_EXPORT void wordBoundaries(WebVector<int>& starts, WebVector<int>& end s) const;
224 224
225 // Make this object visible by scrolling as many nested scrollable views as needed. 225 // Make this object visible by scrolling as many nested scrollable views as needed.
226 BLINK_EXPORT void scrollToMakeVisible() const; 226 BLINK_EXPORT void scrollToMakeVisible() const;
227 // Same, but if the whole object can't be made visible, try for this subrect , in local coordinates. 227 // Same, but if the whole object can't be made visible, try for this subrect , in local coordinates.
228 BLINK_EXPORT void scrollToMakeVisibleWithSubFocus(const WebRect&) const; 228 BLINK_EXPORT void scrollToMakeVisibleWithSubFocus(const WebRect&) const;
229 // Scroll this object to a given point in global coordinates of the top-leve l window. 229 // Scroll this object to a given point in global coordinates of the top-leve l window.
230 BLINK_EXPORT void scrollToGlobalPoint(const WebPoint&) const; 230 BLINK_EXPORT void scrollToGlobalPoint(const WebPoint&) const;
231 231
232 BLINK_EXPORT static bool isARIAWidget(const WebNode&);
233
232 #if BLINK_IMPLEMENTATION 234 #if BLINK_IMPLEMENTATION
233 WebAXObject(const WTF::PassRefPtr<AXObject>&); 235 WebAXObject(const WTF::PassRefPtr<AXObject>&);
234 WebAXObject& operator=(const WTF::PassRefPtr<AXObject>&); 236 WebAXObject& operator=(const WTF::PassRefPtr<AXObject>&);
235 operator WTF::PassRefPtr<AXObject>() const; 237 operator WTF::PassRefPtr<AXObject>() const;
236 #endif 238 #endif
237 239
238 private: 240 private:
239 WebPrivatePtr<AXObject> m_private; 241 WebPrivatePtr<AXObject> m_private;
240 }; 242 };
241 243
242 } // namespace blink 244 } // namespace blink
243 245
244 #endif 246 #endif
OLDNEW
« Source/web/WebAXObject.cpp ('K') | « Source/web/WebAXObject.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698