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

Side by Side Diff: Source/core/xml/XPathNSResolver.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/XPathExpression.h ('k') | Source/core/xml/XPathResult.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 18 matching lines...) Expand all
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" 32 #include "wtf/Forward.h"
33 #include "wtf/RefCounted.h" 33 #include "wtf/RefCounted.h"
34 34
35 namespace blink { 35 namespace blink {
36 36
37 class XPathNSResolver : public RefCountedWillBeGarbageCollectedFinalized<XPathNS Resolver>, public ScriptWrappable { 37 class XPathNSResolver : public RefCountedWillBeGarbageCollectedFinalized<XPathNS Resolver>, public ScriptWrappable {
38 DECLARE_EMPTY_VIRTUAL_DESTRUCTOR_WILL_BE_REMOVED(XPathNSResolver); 38 DECLARE_EMPTY_VIRTUAL_DESTRUCTOR_WILL_BE_REMOVED(XPathNSResolver);
39 DEFINE_WRAPPERTYPEINFO();
39 public: 40 public:
40 virtual AtomicString lookupNamespaceURI(const String& prefix) = 0; 41 virtual AtomicString lookupNamespaceURI(const String& prefix) = 0;
41 42
42 virtual void trace(Visitor*) { } 43 virtual void trace(Visitor*) { }
43 44
44 protected: 45 protected:
45 XPathNSResolver() 46 XPathNSResolver()
46 { 47 {
47 ScriptWrappable::init(this); 48 ScriptWrappable::init(this);
48 } 49 }
49 }; 50 };
50 51
51 } 52 } // namespace blink
52 53
53 #endif // XPathNSResolver_h 54 #endif // XPathNSResolver_h
OLDNEW
« no previous file with comments | « Source/core/xml/XPathExpression.h ('k') | Source/core/xml/XPathResult.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698