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

Side by Side Diff: third_party/WebKit/Source/bindings/core/v8/SourceLocation.cpp

Issue 2251343003: [DevTools] Generate separate copies of inspector_protocol. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: win compile Created 4 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
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "bindings/core/v8/SourceLocation.h" 5 #include "bindings/core/v8/SourceLocation.h"
6 6
7 #include "bindings/core/v8/V8BindingMacros.h" 7 #include "bindings/core/v8/V8BindingMacros.h"
8 #include "bindings/core/v8/V8PerIsolateData.h" 8 #include "bindings/core/v8/V8PerIsolateData.h"
9 #include "core/dom/Document.h" 9 #include "core/dom/Document.h"
10 #include "core/dom/ExecutionContext.h" 10 #include "core/dom/ExecutionContext.h"
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after
153 value->setInteger("columnNumber", m_stackTrace->topColumnNumber()); 153 value->setInteger("columnNumber", m_stackTrace->topColumnNumber());
154 value->endDictionary(); 154 value->endDictionary();
155 value->endArray(); 155 value->endArray();
156 } 156 }
157 157
158 std::unique_ptr<SourceLocation> SourceLocation::clone() const 158 std::unique_ptr<SourceLocation> SourceLocation::clone() const
159 { 159 {
160 return wrapUnique(new SourceLocation(m_url.isolatedCopy(), m_lineNumber, m_c olumnNumber, m_stackTrace ? m_stackTrace->clone() : nullptr, m_scriptId)); 160 return wrapUnique(new SourceLocation(m_url.isolatedCopy(), m_lineNumber, m_c olumnNumber, m_stackTrace ? m_stackTrace->clone() : nullptr, m_scriptId));
161 } 161 }
162 162
163 std::unique_ptr<protocol::Runtime::API::StackTrace> SourceLocation::buildInspect orObject() const 163 std::unique_ptr<v8_inspector::protocol::Runtime::API::StackTrace> SourceLocation ::buildInspectorObject() const
164 { 164 {
165 return m_stackTrace ? m_stackTrace->buildInspectorObject() : nullptr; 165 return m_stackTrace ? m_stackTrace->buildInspectorObject() : nullptr;
166 } 166 }
167 167
168 String SourceLocation::toString() const 168 String SourceLocation::toString() const
169 { 169 {
170 if (!m_stackTrace) 170 if (!m_stackTrace)
171 return String(); 171 return String();
172 return toCoreString(m_stackTrace->toString()); 172 return toCoreString(m_stackTrace->toString());
173 } 173 }
174 174
175 } // namespace blink 175 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/bindings/core/v8/SourceLocation.h ('k') | third_party/WebKit/Source/core/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698