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

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

Issue 1702673002: DevTools: migrate remote debugging protocol generators to jinja2. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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 /* 1 /*
2 * Copyright (c) 2008, Google Inc. All rights reserved. 2 * Copyright (c) 2008, Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 unsigned ScriptCallStack::topLineNumber() const 96 unsigned ScriptCallStack::topLineNumber() const
97 { 97 {
98 return m_stackTrace->topLineNumber(); 98 return m_stackTrace->topLineNumber();
99 } 99 }
100 100
101 unsigned ScriptCallStack::topColumnNumber() const 101 unsigned ScriptCallStack::topColumnNumber() const
102 { 102 {
103 return m_stackTrace->topColumnNumber(); 103 return m_stackTrace->topColumnNumber();
104 } 104 }
105 105
106 PassRefPtr<protocol::TypeBuilder::Runtime::StackTrace> ScriptCallStack::buildIns pectorObject() const 106 PassOwnPtr<protocol::Runtime::StackTrace> ScriptCallStack::buildInspectorObject( ) const
107 { 107 {
108 return m_stackTrace->buildInspectorObject(); 108 return m_stackTrace->buildInspectorObject();
109 } 109 }
110 110
111 void ScriptCallStack::toTracedValue(TracedValue* value, const char* name) const 111 void ScriptCallStack::toTracedValue(TracedValue* value, const char* name) const
112 { 112 {
113 if (m_stackTrace->isEmpty()) 113 if (m_stackTrace->isEmpty())
114 return; 114 return;
115 value->beginArray(name); 115 value->beginArray(name);
116 value->beginDictionary(); 116 value->beginDictionary();
117 value->setString("functionName", m_stackTrace->topFunctionName()); 117 value->setString("functionName", m_stackTrace->topFunctionName());
118 value->setString("scriptId", m_stackTrace->topScriptId()); 118 value->setString("scriptId", m_stackTrace->topScriptId());
119 value->setString("url", m_stackTrace->topSourceURL()); 119 value->setString("url", m_stackTrace->topSourceURL());
120 value->setInteger("lineNumber", m_stackTrace->topLineNumber()); 120 value->setInteger("lineNumber", m_stackTrace->topLineNumber());
121 value->setInteger("columnNumber", m_stackTrace->topColumnNumber()); 121 value->setInteger("columnNumber", m_stackTrace->topColumnNumber());
122 value->endDictionary(); 122 value->endDictionary();
123 value->endArray(); 123 value->endArray();
124 } 124 }
125 125
126 String ScriptCallStack::toString() const 126 String ScriptCallStack::toString() const
127 { 127 {
128 return m_stackTrace->toString(); 128 return m_stackTrace->toString();
129 } 129 }
130 130
131 } // namespace blink 131 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/bindings/core/v8/ScriptCallStack.h ('k') | third_party/WebKit/Source/core/frame/ConsoleBase.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698