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

Side by Side Diff: third_party/WebKit/Source/platform/v8_inspector/public/V8StackTrace.h

Issue 1767883002: DevTools: generate string16-based handlers for v8_inspector. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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 #ifndef V8StackTrace_h 5 #ifndef V8StackTrace_h
6 #define V8StackTrace_h 6 #define V8StackTrace_h
7 7
8 #include "platform/inspector_protocol/TypeBuilder.h" 8 #include "platform/inspector_protocol/TypeBuilder.h"
9 #include "wtf/PassOwnPtr.h" 9 #include "wtf/PassOwnPtr.h"
10 10
11 #include <v8.h> 11 #include <v8.h>
12 12
13 namespace blink { 13 namespace blink {
14 14
15 class TracedValue; 15 class TracedValue;
16 16
17 const v8::StackTrace::StackTraceOptions stackTraceOptions = static_cast<v8::Stac kTrace::StackTraceOptions>( 17 const v8::StackTrace::StackTraceOptions stackTraceOptions = static_cast<v8::Stac kTrace::StackTraceOptions>(
18 v8::StackTrace::kLineNumber | 18 v8::StackTrace::kLineNumber |
19 v8::StackTrace::kColumnOffset | 19 v8::StackTrace::kColumnOffset |
20 v8::StackTrace::kScriptId | 20 v8::StackTrace::kScriptId |
21 v8::StackTrace::kScriptNameOrSourceURL | 21 v8::StackTrace::kScriptNameOrSourceURL |
22 v8::StackTrace::kFunctionName); 22 v8::StackTrace::kFunctionName);
23 23
24 class V8StackTrace { 24 class V8StackTrace {
25 public: 25 public:
26 static const size_t maxCallStackSizeToCapture = 200; 26 static const size_t maxCallStackSizeToCapture = 200;
27 27
28 virtual bool isEmpty() const = 0; 28 virtual bool isEmpty() const = 0;
29 virtual String topSourceURL() const = 0; 29 virtual String16 topSourceURL() const = 0;
30 virtual int topLineNumber() const = 0; 30 virtual int topLineNumber() const = 0;
31 virtual int topColumnNumber() const = 0; 31 virtual int topColumnNumber() const = 0;
32 virtual String topScriptId() const = 0; 32 virtual String16 topScriptId() const = 0;
33 virtual String topFunctionName() const = 0; 33 virtual String16 topFunctionName() const = 0;
34 34
35 virtual ~V8StackTrace() { } 35 virtual ~V8StackTrace() { }
36 virtual PassOwnPtr<protocol::Runtime::StackTrace> buildInspectorObject() con st = 0; 36 virtual PassOwnPtr<protocol::Runtime::StackTrace> buildInspectorObject() con st = 0;
37 virtual String toString() const = 0; 37 virtual String16 toString() const = 0;
38 }; 38 };
39 39
40 } // namespace blink 40 } // namespace blink
41 41
42 #endif // V8StackTrace_h 42 #endif // V8StackTrace_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698