Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(24)

Side by Side Diff: Source/core/xml/XPathExpression.h

Issue 478243002: bindings: Adds virtual ScriptWrappable::wrap method. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Synced. Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « Source/core/xml/XPathEvaluator.h ('k') | Source/core/xml/XPathNSResolver.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 28 matching lines...) Expand all
39 class Node; 39 class Node;
40 class XPathNSResolver; 40 class XPathNSResolver;
41 class XPathResult; 41 class XPathResult;
42 42
43 namespace XPath { 43 namespace XPath {
44 class Expression; 44 class Expression;
45 } 45 }
46 46
47 class XPathExpression : public RefCountedWillBeGarbageCollected<XPathExpression> , public ScriptWrappable { 47 class XPathExpression : public RefCountedWillBeGarbageCollected<XPathExpression> , public ScriptWrappable {
48 DECLARE_EMPTY_DESTRUCTOR_WILL_BE_REMOVED(XPathExpression); 48 DECLARE_EMPTY_DESTRUCTOR_WILL_BE_REMOVED(XPathExpression);
49 DEFINE_WRAPPERTYPEINFO();
49 public: 50 public:
50 static PassRefPtrWillBeRawPtr<XPathExpression> create() 51 static PassRefPtrWillBeRawPtr<XPathExpression> create()
51 { 52 {
52 return adoptRefWillBeNoop(new XPathExpression); 53 return adoptRefWillBeNoop(new XPathExpression);
53 } 54 }
54 55
55 static PassRefPtrWillBeRawPtr<XPathExpression> createExpression(const String & expression, PassRefPtrWillBeRawPtr<XPathNSResolver>, ExceptionState&); 56 static PassRefPtrWillBeRawPtr<XPathExpression> createExpression(const String & expression, PassRefPtrWillBeRawPtr<XPathNSResolver>, ExceptionState&);
56 PassRefPtrWillBeRawPtr<XPathResult> evaluate(Node* contextNode, unsigned sho rt type, XPathResult*, ExceptionState&); 57 PassRefPtrWillBeRawPtr<XPathResult> evaluate(Node* contextNode, unsigned sho rt type, XPathResult*, ExceptionState&);
57 58
58 void trace(Visitor*); 59 void trace(Visitor*);
59 60
60 private: 61 private:
61 XPathExpression(); 62 XPathExpression();
62 63
63 OwnPtrWillBeMember<XPath::Expression> m_topExpression; 64 OwnPtrWillBeMember<XPath::Expression> m_topExpression;
64 }; 65 };
65 66
66 } 67 } // namespace blink
67 68
68 #endif // XPathExpression_h 69 #endif // XPathExpression_h
OLDNEW
« no previous file with comments | « Source/core/xml/XPathEvaluator.h ('k') | Source/core/xml/XPathNSResolver.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698