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 XPathNSResolver; | 41 class XPathNSResolver; |
41 class XPathResult; | 42 class XPathResult; |
42 | 43 |
43 namespace XPath { | 44 namespace XPath { |
44 class Expression; | 45 class Expression; |
45 } | 46 } |
46 | 47 |
47 class XPathExpression : public RefCountedWillBeGarbageCollected<XPathExpression>
, public ScriptWrappable { | 48 class XPathExpression : public RefCountedWillBeGarbageCollected<XPathExpression>
, public ScriptWrappable { |
48 DECLARE_EMPTY_DESTRUCTOR_WILL_BE_REMOVED(XPathExpression); | 49 DECLARE_EMPTY_DESTRUCTOR_WILL_BE_REMOVED(XPathExpression); |
49 DEFINE_WRAPPERTYPEINFO(); | 50 DEFINE_WRAPPERTYPEINFO(); |
50 public: | 51 public: |
51 static PassRefPtrWillBeRawPtr<XPathExpression> create() | 52 static PassRefPtrWillBeRawPtr<XPathExpression> create() |
52 { | 53 { |
53 return adoptRefWillBeNoop(new XPathExpression); | 54 return adoptRefWillBeNoop(new XPathExpression); |
54 } | 55 } |
55 | 56 |
56 static PassRefPtrWillBeRawPtr<XPathExpression> createExpression(const String
& expression, PassRefPtrWillBeRawPtr<XPathNSResolver>, ExceptionState&); | 57 static PassRefPtrWillBeRawPtr<XPathExpression> createExpression(const String
& expression, PassRefPtrWillBeRawPtr<XPathNSResolver>, ExceptionState&); |
57 PassRefPtrWillBeRawPtr<XPathResult> evaluate(Node* contextNode, unsigned sho
rt type, XPathResult*, ExceptionState&); | 58 PassRefPtrWillBeRawPtr<XPathResult> evaluate(Node* contextNode, unsigned sho
rt type, const ScriptValue&, ExceptionState&); |
58 | 59 |
59 DECLARE_TRACE(); | 60 DECLARE_TRACE(); |
60 | 61 |
61 private: | 62 private: |
62 XPathExpression(); | 63 XPathExpression(); |
63 | 64 |
64 OwnPtrWillBeMember<XPath::Expression> m_topExpression; | 65 OwnPtrWillBeMember<XPath::Expression> m_topExpression; |
65 }; | 66 }; |
66 | 67 |
67 } // namespace blink | 68 } // namespace blink |
68 | 69 |
69 #endif // XPathExpression_h | 70 #endif // XPathExpression_h |
OLD | NEW |