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 19 matching lines...) Expand all Loading... |
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" | 32 #include "wtf/Forward.h" |
33 #include "wtf/PassRefPtr.h" | 33 #include "wtf/PassRefPtr.h" |
34 #include "wtf/RefCounted.h" | 34 #include "wtf/RefCounted.h" |
35 | 35 |
36 namespace blink { | 36 namespace blink { |
37 | 37 |
38 class ExceptionState; | 38 class ExceptionState; |
39 class Node; | 39 class Node; |
| 40 class ScriptValue; |
40 class XPathExpression; | 41 class XPathExpression; |
41 class XPathNSResolver; | 42 class XPathNSResolver; |
42 class XPathResult; | 43 class XPathResult; |
43 | 44 |
44 class XPathEvaluator final : public RefCountedWillBeGarbageCollected<XPathEvalua
tor>, public ScriptWrappable { | 45 class XPathEvaluator final : public RefCountedWillBeGarbageCollected<XPathEvalua
tor>, public ScriptWrappable { |
45 DEFINE_WRAPPERTYPEINFO(); | 46 DEFINE_WRAPPERTYPEINFO(); |
46 public: | 47 public: |
47 static PassRefPtrWillBeRawPtr<XPathEvaluator> create() | 48 static PassRefPtrWillBeRawPtr<XPathEvaluator> create() |
48 { | 49 { |
49 return adoptRefWillBeNoop(new XPathEvaluator); | 50 return adoptRefWillBeNoop(new XPathEvaluator); |
50 } | 51 } |
51 | 52 |
52 PassRefPtrWillBeRawPtr<XPathExpression> createExpression(const String& expre
ssion, PassRefPtrWillBeRawPtr<XPathNSResolver>, ExceptionState&); | 53 PassRefPtrWillBeRawPtr<XPathExpression> createExpression(const String& expre
ssion, PassRefPtrWillBeRawPtr<XPathNSResolver>, ExceptionState&); |
53 PassRefPtrWillBeRawPtr<XPathNSResolver> createNSResolver(Node* nodeResolver)
; | 54 PassRefPtrWillBeRawPtr<XPathNSResolver> createNSResolver(Node* nodeResolver)
; |
54 PassRefPtrWillBeRawPtr<XPathResult> evaluate(const String& expression, Node*
contextNode, | 55 PassRefPtrWillBeRawPtr<XPathResult> evaluate(const String& expression, Node*
contextNode, |
55 PassRefPtrWillBeRawPtr<XPathNSResolver>, unsigned short type, XPathResul
t*, ExceptionState&); | 56 PassRefPtrWillBeRawPtr<XPathNSResolver>, unsigned short type, const Scri
ptValue&, ExceptionState&); |
56 | 57 |
57 DEFINE_INLINE_TRACE() { } | 58 DEFINE_INLINE_TRACE() { } |
58 | 59 |
59 private: | 60 private: |
60 XPathEvaluator() { } | 61 XPathEvaluator() { } |
61 }; | 62 }; |
62 | 63 |
63 } // namespace blink | 64 } // namespace blink |
64 | 65 |
65 #endif // XPathEvaluator_h | 66 #endif // XPathEvaluator_h |
OLD | NEW |