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

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

Issue 2159633002: [DevTools] Generate public versions of protocol classes to be exposed in v8_inspector/public. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: removed extra files Created 4 years, 4 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 152 matching lines...) Expand 10 before | Expand all | Expand 10 after
163 std::unique_ptr<SourceLocation> SourceLocation::clone() const 163 std::unique_ptr<SourceLocation> SourceLocation::clone() const
164 { 164 {
165 return wrapUnique(new SourceLocation(m_url, m_lineNumber, m_columnNumber, m_ stackTrace ? m_stackTrace->clone() : nullptr, m_scriptId)); 165 return wrapUnique(new SourceLocation(m_url, m_lineNumber, m_columnNumber, m_ stackTrace ? m_stackTrace->clone() : nullptr, m_scriptId));
166 } 166 }
167 167
168 std::unique_ptr<SourceLocation> SourceLocation::isolatedCopy() const 168 std::unique_ptr<SourceLocation> SourceLocation::isolatedCopy() const
169 { 169 {
170 return wrapUnique(new SourceLocation(m_url.isolatedCopy(), m_lineNumber, m_c olumnNumber, m_stackTrace ? m_stackTrace->isolatedCopy() : nullptr, m_scriptId)) ; 170 return wrapUnique(new SourceLocation(m_url.isolatedCopy(), m_lineNumber, m_c olumnNumber, m_stackTrace ? m_stackTrace->isolatedCopy() : nullptr, m_scriptId)) ;
171 } 171 }
172 172
173 std::unique_ptr<protocol::Runtime::StackTrace> SourceLocation::buildInspectorObj ect() const 173 std::unique_ptr<protocol::Runtime::API::StackTrace> SourceLocation::buildInspect orObject() const
174 { 174 {
175 return m_stackTrace ? m_stackTrace->buildInspectorObject() : nullptr; 175 return m_stackTrace ? m_stackTrace->buildInspectorObject() : nullptr;
176 } 176 }
177 177
178 String SourceLocation::toString() const 178 String SourceLocation::toString() const
179 { 179 {
180 if (!m_stackTrace) 180 if (!m_stackTrace)
181 return String(); 181 return String();
182 return m_stackTrace->toString(); 182 return m_stackTrace->toString();
183 } 183 }
184 184
185 } // namespace blink 185 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/bindings/core/v8/SourceLocation.h ('k') | third_party/WebKit/Source/core/core.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698