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

Side by Side Diff: Source/core/dom/ProcessingInstruction.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/dom/NodeList.h ('k') | Source/core/dom/Range.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 (C) 2000 Peter Kelly (pmk@post.com) 2 * Copyright (C) 2000 Peter Kelly (pmk@post.com)
3 * Copyright (C) 2006 Apple Inc. All rights reserved. 3 * Copyright (C) 2006 Apple Inc. All rights reserved.
4 * 4 *
5 * This library is free software; you can redistribute it and/or 5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Library General Public 6 * modify it under the terms of the GNU Library General Public
7 * License as published by the Free Software Foundation; either 7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version. 8 * version 2 of the License, or (at your option) any later version.
9 * 9 *
10 * This library is distributed in the hope that it will be useful, 10 * This library is distributed in the hope that it will be useful,
(...skipping 15 matching lines...) Expand all
26 #include "core/fetch/ResourceOwner.h" 26 #include "core/fetch/ResourceOwner.h"
27 #include "core/fetch/StyleSheetResource.h" 27 #include "core/fetch/StyleSheetResource.h"
28 #include "core/fetch/StyleSheetResourceClient.h" 28 #include "core/fetch/StyleSheetResourceClient.h"
29 29
30 namespace blink { 30 namespace blink {
31 31
32 class StyleSheet; 32 class StyleSheet;
33 class CSSStyleSheet; 33 class CSSStyleSheet;
34 34
35 class ProcessingInstruction FINAL : public CharacterData, private ResourceOwner< StyleSheetResource> { 35 class ProcessingInstruction FINAL : public CharacterData, private ResourceOwner< StyleSheetResource> {
36 DEFINE_WRAPPERTYPEINFO();
36 public: 37 public:
37 static PassRefPtrWillBeRawPtr<ProcessingInstruction> create(Document&, const String& target, const String& data); 38 static PassRefPtrWillBeRawPtr<ProcessingInstruction> create(Document&, const String& target, const String& data);
38 virtual ~ProcessingInstruction(); 39 virtual ~ProcessingInstruction();
39 virtual void trace(Visitor*) OVERRIDE; 40 virtual void trace(Visitor*) OVERRIDE;
40 41
41 const String& target() const { return m_target; } 42 const String& target() const { return m_target; }
42 43
43 void setCreatedByParser(bool createdByParser) { m_createdByParser = createdB yParser; } 44 void setCreatedByParser(bool createdByParser) { m_createdByParser = createdB yParser; }
44 45
45 const String& localHref() const { return m_localHref; } 46 const String& localHref() const { return m_localHref; }
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 88
88 DEFINE_NODE_TYPE_CASTS(ProcessingInstruction, nodeType() == Node::PROCESSING_INS TRUCTION_NODE); 89 DEFINE_NODE_TYPE_CASTS(ProcessingInstruction, nodeType() == Node::PROCESSING_INS TRUCTION_NODE);
89 90
90 inline bool isXSLStyleSheet(const Node& node) 91 inline bool isXSLStyleSheet(const Node& node)
91 { 92 {
92 return node.nodeType() == Node::PROCESSING_INSTRUCTION_NODE && toProcessingI nstruction(node).isXSL(); 93 return node.nodeType() == Node::PROCESSING_INSTRUCTION_NODE && toProcessingI nstruction(node).isXSL();
93 } 94 }
94 95
95 } // namespace blink 96 } // namespace blink
96 97
97 #endif 98 #endif // ProcessingInstruction_h
OLDNEW
« no previous file with comments | « Source/core/dom/NodeList.h ('k') | Source/core/dom/Range.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698