OLD | NEW |
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 22 matching lines...) Expand all Loading... |
33 | 33 |
34 #include "../platform/WebCommon.h" | 34 #include "../platform/WebCommon.h" |
35 #include "../platform/WebPrivatePtr.h" | 35 #include "../platform/WebPrivatePtr.h" |
36 #include "../platform/WebVector.h" | 36 #include "../platform/WebVector.h" |
37 #include "WebAXEnums.h" | 37 #include "WebAXEnums.h" |
38 | 38 |
39 #if BLINK_IMPLEMENTATION | 39 #if BLINK_IMPLEMENTATION |
40 namespace WTF { template <typename T> class PassRefPtr; } | 40 namespace WTF { template <typename T> class PassRefPtr; } |
41 #endif | 41 #endif |
42 | 42 |
43 namespace blink { class AXObject; } | |
44 | |
45 namespace blink { | 43 namespace blink { |
46 | 44 |
| 45 class AXObject; |
47 class WebNode; | 46 class WebNode; |
48 class WebDocument; | 47 class WebDocument; |
49 class WebString; | 48 class WebString; |
50 class WebURL; | 49 class WebURL; |
51 struct WebPoint; | 50 struct WebPoint; |
52 struct WebRect; | 51 struct WebRect; |
53 | 52 |
54 // A container for passing around a reference to AXObject. | 53 // A container for passing around a reference to AXObject. |
55 class WebAXObject { | 54 class WebAXObject { |
56 public: | 55 public: |
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
210 BLINK_EXPORT void wordBoundaries(WebVector<int>& starts, WebVector<int>& end
s) const; | 209 BLINK_EXPORT void wordBoundaries(WebVector<int>& starts, WebVector<int>& end
s) const; |
211 | 210 |
212 // Make this object visible by scrolling as many nested scrollable views as
needed. | 211 // Make this object visible by scrolling as many nested scrollable views as
needed. |
213 BLINK_EXPORT void scrollToMakeVisible() const; | 212 BLINK_EXPORT void scrollToMakeVisible() const; |
214 // Same, but if the whole object can't be made visible, try for this subrect
, in local coordinates. | 213 // Same, but if the whole object can't be made visible, try for this subrect
, in local coordinates. |
215 BLINK_EXPORT void scrollToMakeVisibleWithSubFocus(const WebRect&) const; | 214 BLINK_EXPORT void scrollToMakeVisibleWithSubFocus(const WebRect&) const; |
216 // Scroll this object to a given point in global coordinates of the top-leve
l window. | 215 // Scroll this object to a given point in global coordinates of the top-leve
l window. |
217 BLINK_EXPORT void scrollToGlobalPoint(const WebPoint&) const; | 216 BLINK_EXPORT void scrollToGlobalPoint(const WebPoint&) const; |
218 | 217 |
219 #if BLINK_IMPLEMENTATION | 218 #if BLINK_IMPLEMENTATION |
220 WebAXObject(const WTF::PassRefPtr<blink::AXObject>&); | 219 WebAXObject(const WTF::PassRefPtr<AXObject>&); |
221 WebAXObject& operator=(const WTF::PassRefPtr<blink::AXObject>&); | 220 WebAXObject& operator=(const WTF::PassRefPtr<AXObject>&); |
222 operator WTF::PassRefPtr<blink::AXObject>() const; | 221 operator WTF::PassRefPtr<AXObject>() const; |
223 #endif | 222 #endif |
224 | 223 |
225 private: | 224 private: |
226 WebPrivatePtr<blink::AXObject> m_private; | 225 WebPrivatePtr<AXObject> m_private; |
227 }; | 226 }; |
228 | 227 |
229 } // namespace blink | 228 } // namespace blink |
230 | 229 |
231 #endif | 230 #endif |
OLD | NEW |