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

Unified Diff: Source/core/inspector/ScriptDebugListener.cpp

Issue 1224553008: [DevTools] Move Script and enums from ScriptDebugListener to V8Debugger. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 5 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
Index: Source/core/inspector/ScriptDebugListener.cpp
diff --git a/Source/core/inspector/ScriptDebugListener.cpp b/Source/core/inspector/ScriptDebugListener.cpp
index f4573d2b5ae06fa74b9fffba638d3ae685c48362..67c3641a944d27eaeb956126eae2b842daec4c45 100644
--- a/Source/core/inspector/ScriptDebugListener.cpp
+++ b/Source/core/inspector/ScriptDebugListener.cpp
@@ -5,103 +5,6 @@
#include "config.h"
#include "core/inspector/ScriptDebugListener.h"
-namespace {
-static const unsigned kBlackboxUnknown = 0;
-}
-
namespace blink {
-ScriptDebugListener::Script::Script()
- : m_startLine(0)
- , m_startColumn(0)
- , m_endLine(0)
- , m_endColumn(0)
- , m_isContentScript(false)
- , m_isBlackboxedURL(false)
- , m_blackboxGeneration(kBlackboxUnknown)
-{
-}
-
-String ScriptDebugListener::Script::sourceURL() const
-{
- return m_sourceURL.isEmpty() ? m_url : m_sourceURL;
-}
-
-bool ScriptDebugListener::Script::getBlackboxedState(unsigned blackboxGeneration, bool* isBlackboxed) const
-{
- if (m_blackboxGeneration == kBlackboxUnknown || m_blackboxGeneration != blackboxGeneration)
- return false;
- *isBlackboxed = m_isBlackboxedURL;
- return true;
-}
-
-void ScriptDebugListener::Script::setBlackboxedState(unsigned blackboxGeneration, bool isBlackboxed)
-{
- ASSERT(blackboxGeneration);
- m_isBlackboxedURL = isBlackboxed;
- m_blackboxGeneration = blackboxGeneration;
-}
-
-ScriptDebugListener::Script& ScriptDebugListener::Script::setURL(const String& url)
-{
- m_url = url;
- m_blackboxGeneration = kBlackboxUnknown;
- return *this;
-}
-
-ScriptDebugListener::Script& ScriptDebugListener::Script::setSourceURL(const String& sourceURL)
-{
- m_sourceURL = sourceURL;
- m_blackboxGeneration = kBlackboxUnknown;
- return *this;
-}
-
-ScriptDebugListener::Script& ScriptDebugListener::Script::setSourceMappingURL(const String& sourceMappingURL)
-{
- m_sourceMappingURL = sourceMappingURL;
- return *this;
-}
-
-ScriptDebugListener::Script& ScriptDebugListener::Script::setSource(const String& source)
-{
- m_source = source;
- return *this;
-}
-
-ScriptDebugListener::Script& ScriptDebugListener::Script::setStartLine(int startLine)
-{
- m_startLine = startLine;
- return *this;
-}
-
-ScriptDebugListener::Script& ScriptDebugListener::Script::setStartColumn(int startColumn)
-{
- m_startColumn = startColumn;
- return *this;
-}
-
-ScriptDebugListener::Script& ScriptDebugListener::Script::setEndLine(int endLine)
-{
- m_endLine = endLine;
- return *this;
-}
-
-ScriptDebugListener::Script& ScriptDebugListener::Script::setEndColumn(int endColumn)
-{
- m_endColumn = endColumn;
- return *this;
-}
-
-ScriptDebugListener::Script& ScriptDebugListener::Script::setIsContentScript(bool isContentScript)
-{
- m_isContentScript = isContentScript;
- return *this;
-}
-
-ScriptDebugListener::Script& ScriptDebugListener::Script::setIsInternalScript(bool isInternalScript)
-{
- m_isInternalScript = isInternalScript;
- return *this;
-}
-
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698