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

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

Issue 1659793004: Fixed handling of Dart MIME type (Closed) Base URL: svn://svn.chromium.org/blink/branches/dart/2454_1
Patch Set: Updated comment Created 4 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | 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 3b1d379d46bb636dc615ee99af4a903f634ff143..6367afd8342e05856d551b91cf214f7de6f871f5 100644
--- a/Source/core/dom/ScriptLoader.h
+++ b/Source/core/dom/ScriptLoader.h
@@ -61,8 +61,8 @@ public:
// XML parser calls these
void dispatchLoadEvent();
void dispatchErrorEvent();
- enum ScriptType { ScriptNone = 0, ScriptJavaScript, ScriptDart };
- ScriptType isScriptTypeSupported(LegacyTypeSupport) const;
+
+ bool isScriptTypeSupported(LegacyTypeSupport) const;
bool haveFiredLoadEvent() const { return m_haveFiredLoad; }
bool willBeParserExecuted() const { return m_willBeParserExecuted; }
@@ -118,6 +118,10 @@ private:
bool m_willExecuteWhenDocumentFinishedParsing : 1;
bool m_forceAsync : 1;
bool m_willExecuteInOrder : 1;
+
+ // FIXMEDART: Type of script (JS, Dart, None).
+ enum ScriptType { ScriptNone = 0, ScriptJavaScript, ScriptDart };
+ ScriptType getScriptTypeSupported(LegacyTypeSupport) const;
ScriptType m_scriptType;
};
« no previous file with comments | « no previous file | Source/core/dom/ScriptLoader.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698