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

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

Issue 1767883002: DevTools: generate string16-based handlers for v8_inspector. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: for landing 2 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 /* 1 /*
2 * Copyright (C) 2008 Apple Inc. All rights reserved. 2 * Copyright (C) 2008 Apple Inc. All rights reserved.
3 * Copyright (C) 2010 Google Inc. All rights reserved. 3 * Copyright (C) 2010 Google Inc. All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 8 *
9 * 1. Redistributions of source code must retain the above copyright 9 * 1. Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 13 matching lines...) Expand all
24 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 24 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
25 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 25 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
26 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 26 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
27 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
28 */ 28 */
29 29
30 #ifndef V8DebuggerScript_h 30 #ifndef V8DebuggerScript_h
31 #define V8DebuggerScript_h 31 #define V8DebuggerScript_h
32 32
33 #include "platform/inspector_protocol/Allocator.h" 33 #include "platform/inspector_protocol/Allocator.h"
34 #include "wtf/text/WTFString.h" 34 #include "platform/inspector_protocol/String16.h"
35 #include <v8.h> 35 #include <v8.h>
36 36
37 namespace blink { 37 namespace blink {
38 38
39 class V8DebuggerScript { 39 class V8DebuggerScript {
40 PROTOCOL_DISALLOW_NEW(); 40 PROTOCOL_DISALLOW_NEW();
41 public: 41 public:
42 V8DebuggerScript(); 42 V8DebuggerScript();
43 43
44 String url() const { return m_url; } 44 String16 url() const { return m_url; }
45 bool hasSourceURL() const { return !m_sourceURL.isEmpty(); } 45 bool hasSourceURL() const { return !m_sourceURL.isEmpty(); }
46 String sourceURL() const; 46 String16 sourceURL() const;
47 String sourceMappingURL() const { return m_sourceMappingURL; } 47 String16 sourceMappingURL() const { return m_sourceMappingURL; }
48 String source() const { return m_source; } 48 String16 source() const { return m_source; }
49 String hash() const { return m_hash; } 49 String16 hash() const { return m_hash; }
50 int startLine() const { return m_startLine; } 50 int startLine() const { return m_startLine; }
51 int startColumn() const { return m_startColumn; } 51 int startColumn() const { return m_startColumn; }
52 int endLine() const { return m_endLine; } 52 int endLine() const { return m_endLine; }
53 int endColumn() const { return m_endColumn; } 53 int endColumn() const { return m_endColumn; }
54 int executionContextId() const { return m_executionContextId; } 54 int executionContextId() const { return m_executionContextId; }
55 bool isContentScript() const { return m_isContentScript; } 55 bool isContentScript() const { return m_isContentScript; }
56 bool isInternalScript() const { return m_isInternalScript; } 56 bool isInternalScript() const { return m_isInternalScript; }
57 bool isLiveEdit() const { return m_isLiveEdit; } 57 bool isLiveEdit() const { return m_isLiveEdit; }
58 58
59 V8DebuggerScript& setURL(const String&); 59 V8DebuggerScript& setURL(const String16&);
60 V8DebuggerScript& setSourceURL(const String&); 60 V8DebuggerScript& setSourceURL(const String16&);
61 V8DebuggerScript& setSourceMappingURL(const String&); 61 V8DebuggerScript& setSourceMappingURL(const String16&);
62 V8DebuggerScript& setSource(const String&); 62 V8DebuggerScript& setSource(const String16&);
63 V8DebuggerScript& setHash(const String&); 63 V8DebuggerScript& setHash(const String16&);
64 V8DebuggerScript& setStartLine(int); 64 V8DebuggerScript& setStartLine(int);
65 V8DebuggerScript& setStartColumn(int); 65 V8DebuggerScript& setStartColumn(int);
66 V8DebuggerScript& setEndLine(int); 66 V8DebuggerScript& setEndLine(int);
67 V8DebuggerScript& setEndColumn(int); 67 V8DebuggerScript& setEndColumn(int);
68 V8DebuggerScript& setExecutionContextId(int); 68 V8DebuggerScript& setExecutionContextId(int);
69 V8DebuggerScript& setIsContentScript(bool); 69 V8DebuggerScript& setIsContentScript(bool);
70 V8DebuggerScript& setIsInternalScript(bool); 70 V8DebuggerScript& setIsInternalScript(bool);
71 V8DebuggerScript& setIsLiveEdit(bool); 71 V8DebuggerScript& setIsLiveEdit(bool);
72 72
73 private: 73 private:
74 String m_url; 74 String16 m_url;
75 String m_sourceURL; 75 String16 m_sourceURL;
76 String m_sourceMappingURL; 76 String16 m_sourceMappingURL;
77 String m_source; 77 String16 m_source;
78 String m_hash; 78 String16 m_hash;
79 int m_startLine; 79 int m_startLine;
80 int m_startColumn; 80 int m_startColumn;
81 int m_endLine; 81 int m_endLine;
82 int m_endColumn; 82 int m_endColumn;
83 int m_executionContextId; 83 int m_executionContextId;
84 bool m_isContentScript; 84 bool m_isContentScript;
85 bool m_isInternalScript; 85 bool m_isInternalScript;
86 bool m_isLiveEdit; 86 bool m_isLiveEdit;
87 }; 87 };
88 88
89 struct V8DebuggerParsedScript { 89 struct V8DebuggerParsedScript {
90 String scriptId; 90 String16 scriptId;
91 V8DebuggerScript script; 91 V8DebuggerScript script;
92 bool success; 92 bool success;
93 }; 93 };
94 94
95 } // namespace blink 95 } // namespace blink
96 96
97 97
98 #endif // V8DebuggerScript_h 98 #endif // V8DebuggerScript_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698