| 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 15 matching lines...) Expand all Loading... |
| 26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
| 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
| 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 29 */ | 29 */ |
| 30 | 30 |
| 31 #ifndef WebAXObject_h | 31 #ifndef WebAXObject_h |
| 32 #define WebAXObject_h | 32 #define WebAXObject_h |
| 33 | 33 |
| 34 #include "../platform/WebCommon.h" | 34 #include "../platform/WebCommon.h" |
| 35 #include "../platform/WebPoint.h" | 35 #include "../platform/WebPoint.h" |
| 36 #include "../platform/WebPrivateOwnPtr.h" |
| 36 #include "../platform/WebPrivatePtr.h" | 37 #include "../platform/WebPrivatePtr.h" |
| 37 #include "../platform/WebVector.h" | 38 #include "../platform/WebVector.h" |
| 38 #include "WebAXEnums.h" | 39 #include "WebAXEnums.h" |
| 39 | 40 |
| 40 #if BLINK_IMPLEMENTATION | 41 #if BLINK_IMPLEMENTATION |
| 41 namespace WTF { template <typename T> class PassRefPtr; } | 42 namespace WTF { template <typename T> class PassRefPtr; } |
| 42 #endif | 43 #endif |
| 43 | 44 |
| 44 namespace blink { | 45 namespace blink { |
| 45 | 46 |
| (...skipping 11 matching lines...) Expand all Loading... |
| 57 // should be temporarily enabled. If accessibility was enabled globally | 58 // should be temporarily enabled. If accessibility was enabled globally |
| 58 // (WebSettings::setAccessibilityEnabled), this will have no effect. | 59 // (WebSettings::setAccessibilityEnabled), this will have no effect. |
| 59 class WebScopedAXContext { | 60 class WebScopedAXContext { |
| 60 public: | 61 public: |
| 61 BLINK_EXPORT WebScopedAXContext(WebDocument& rootDocument); | 62 BLINK_EXPORT WebScopedAXContext(WebDocument& rootDocument); |
| 62 BLINK_EXPORT ~WebScopedAXContext(); | 63 BLINK_EXPORT ~WebScopedAXContext(); |
| 63 | 64 |
| 64 BLINK_EXPORT WebAXObject root() const; | 65 BLINK_EXPORT WebAXObject root() const; |
| 65 | 66 |
| 66 private: | 67 private: |
| 67 WebPrivatePtr<ScopedAXObjectCache> m_private; | 68 WebPrivateOwnPtr<ScopedAXObjectCache> m_private; |
| 68 }; | 69 }; |
| 69 | 70 |
| 70 // A container for passing around a reference to AXObject. | 71 // A container for passing around a reference to AXObject. |
| 71 class WebAXObject { | 72 class WebAXObject { |
| 72 public: | 73 public: |
| 73 ~WebAXObject() { reset(); } | 74 ~WebAXObject() { reset(); } |
| 74 | 75 |
| 75 WebAXObject() { } | 76 WebAXObject() { } |
| 76 WebAXObject(const WebAXObject& o) { assign(o); } | 77 WebAXObject(const WebAXObject& o) { assign(o); } |
| 77 WebAXObject& operator=(const WebAXObject& o) | 78 WebAXObject& operator=(const WebAXObject& o) |
| (...skipping 224 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 302 operator WTF::PassRefPtr<AXObject>() const; | 303 operator WTF::PassRefPtr<AXObject>() const; |
| 303 #endif | 304 #endif |
| 304 | 305 |
| 305 private: | 306 private: |
| 306 WebPrivatePtr<AXObject> m_private; | 307 WebPrivatePtr<AXObject> m_private; |
| 307 }; | 308 }; |
| 308 | 309 |
| 309 } // namespace blink | 310 } // namespace blink |
| 310 | 311 |
| 311 #endif | 312 #endif |
| OLD | NEW |