| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2005 Frerich Raabe <raabe@kde.org> | 2 * Copyright 2005 Frerich Raabe <raabe@kde.org> |
| 3 * Copyright (C) 2006 Apple Computer, Inc. | 3 * Copyright (C) 2006 Apple Computer, Inc. |
| 4 * | 4 * |
| 5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
| 6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
| 7 * are met: | 7 * are met: |
| 8 * | 8 * |
| 9 * 1. Redistributions of source code must retain the above copyright | 9 * 1. Redistributions of source code must retain the above copyright |
| 10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
| (...skipping 11 matching lines...) Expand all Loading... |
| 22 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 22 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
| 23 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF | 23 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF |
| 24 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 24 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 25 */ | 25 */ |
| 26 | 26 |
| 27 #ifndef XPathEvaluator_h | 27 #ifndef XPathEvaluator_h |
| 28 #define XPathEvaluator_h | 28 #define XPathEvaluator_h |
| 29 | 29 |
| 30 #include "bindings/core/v8/ScriptWrappable.h" | 30 #include "bindings/core/v8/ScriptWrappable.h" |
| 31 #include "platform/heap/Handle.h" | 31 #include "platform/heap/Handle.h" |
| 32 #include "wtf/Forward.h" | |
| 33 #include "wtf/PassRefPtr.h" | |
| 34 #include "wtf/RefCounted.h" | |
| 35 | 32 |
| 36 namespace blink { | 33 namespace blink { |
| 37 | 34 |
| 38 class ExceptionState; | 35 class ExceptionState; |
| 39 class Node; | 36 class Node; |
| 40 class XPathExpression; | 37 class XPathExpression; |
| 41 class XPathNSResolver; | 38 class XPathNSResolver; |
| 42 class XPathResult; | 39 class XPathResult; |
| 43 | 40 |
| 44 class XPathEvaluator final : public RefCountedWillBeGarbageCollected<XPathEvalua
tor>, public ScriptWrappable { | 41 class XPathEvaluator final : public GarbageCollected<XPathEvaluator>, public Scr
iptWrappable { |
| 45 DEFINE_WRAPPERTYPEINFO(); | 42 DEFINE_WRAPPERTYPEINFO(); |
| 46 public: | 43 public: |
| 47 static PassRefPtrWillBeRawPtr<XPathEvaluator> create() | 44 static XPathEvaluator* create() |
| 48 { | 45 { |
| 49 return adoptRefWillBeNoop(new XPathEvaluator); | 46 return new XPathEvaluator; |
| 50 } | 47 } |
| 51 | 48 |
| 52 PassRefPtrWillBeRawPtr<XPathExpression> createExpression(const String& expre
ssion, PassRefPtrWillBeRawPtr<XPathNSResolver>, ExceptionState&); | 49 XPathExpression* createExpression(const String& expression, XPathNSResolver*
, ExceptionState&); |
| 53 PassRefPtrWillBeRawPtr<XPathNSResolver> createNSResolver(Node* nodeResolver)
; | 50 XPathNSResolver* createNSResolver(Node* nodeResolver); |
| 54 PassRefPtrWillBeRawPtr<XPathResult> evaluate(const String& expression, Node*
contextNode, | 51 XPathResult* evaluate(const String& expression, Node* contextNode, |
| 55 PassRefPtrWillBeRawPtr<XPathNSResolver>, unsigned short type, XPathResul
t*, ExceptionState&); | 52 XPathNSResolver*, unsigned short type, XPathResult*, ExceptionState&); |
| 56 | 53 |
| 57 void trace(Visitor*) { } | 54 void trace(Visitor*) { } |
| 58 | 55 |
| 59 private: | 56 private: |
| 60 XPathEvaluator() { } | 57 XPathEvaluator() { } |
| 61 }; | 58 }; |
| 62 | 59 |
| 63 } // namespace blink | 60 } // namespace blink |
| 64 | 61 |
| 65 #endif // XPathEvaluator_h | 62 #endif // XPathEvaluator_h |
| OLD | NEW |