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

Unified Diff: Source/core/dom/ScriptLoader.h

Issue 1532413002: Added Dartium changes onto 45.0.2454.104 (Closed) Base URL: http://src.chromium.org/blink/branches/chromium/2454
Patch Set: Created 5 years 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/dom/DOMException.cpp ('k') | Source/core/dom/ScriptLoader.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/dom/ScriptLoader.h
diff --git a/Source/core/dom/ScriptLoader.h b/Source/core/dom/ScriptLoader.h
index 8505253716d5e551584752e02e86cf453245231a..3b1d379d46bb636dc615ee99af4a903f634ff143 100644
--- a/Source/core/dom/ScriptLoader.h
+++ b/Source/core/dom/ScriptLoader.h
@@ -61,7 +61,8 @@ public:
// XML parser calls these
void dispatchLoadEvent();
void dispatchErrorEvent();
- bool isScriptTypeSupported(LegacyTypeSupport) const;
+ enum ScriptType { ScriptNone = 0, ScriptJavaScript, ScriptDart };
+ ScriptType isScriptTypeSupported(LegacyTypeSupport) const;
bool haveFiredLoadEvent() const { return m_haveFiredLoad; }
bool willBeParserExecuted() const { return m_willBeParserExecuted; }
@@ -80,6 +81,7 @@ public:
void handleSourceAttribute(const String& sourceUrl);
void handleAsyncAttribute();
+ WTF::OrdinalNumber startLineNumber() { return m_startLineNumber; }
virtual bool isReady() const { return m_pendingScript.isReady(); }
// Clears the connection to the PendingScript (and Element and Resource).
@@ -116,6 +118,7 @@ private:
bool m_willExecuteWhenDocumentFinishedParsing : 1;
bool m_forceAsync : 1;
bool m_willExecuteInOrder : 1;
+ ScriptType m_scriptType;
};
ScriptLoader* toScriptLoaderIfPossible(Element*);
« no previous file with comments | « Source/core/dom/DOMException.cpp ('k') | Source/core/dom/ScriptLoader.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698