OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "platform/v8_inspector/V8DebuggerScript.h" | 5 #include "platform/v8_inspector/V8DebuggerScript.h" |
6 | 6 |
7 namespace blink { | 7 namespace blink { |
8 | 8 |
9 V8DebuggerScript::V8DebuggerScript() | 9 V8DebuggerScript::V8DebuggerScript() |
10 : m_startLine(0) | 10 : m_startLine(0) |
11 , m_startColumn(0) | 11 , m_startColumn(0) |
12 , m_endLine(0) | 12 , m_endLine(0) |
13 , m_endColumn(0) | 13 , m_endColumn(0) |
14 , m_executionContextId(0) | 14 , m_executionContextId(0) |
15 , m_isContentScript(false) | 15 , m_isContentScript(false) |
16 , m_isInternalScript(false) | 16 , m_isInternalScript(false) |
17 , m_isLiveEdit(false) | 17 , m_isLiveEdit(false) |
18 { | 18 { |
19 } | 19 } |
20 | 20 |
21 String V8DebuggerScript::sourceURL() const | 21 String16 V8DebuggerScript::sourceURL() const |
22 { | 22 { |
23 return m_sourceURL.isEmpty() ? m_url : m_sourceURL; | 23 return m_sourceURL.isEmpty() ? m_url : m_sourceURL; |
24 } | 24 } |
25 | 25 |
26 V8DebuggerScript& V8DebuggerScript::setURL(const String& url) | 26 V8DebuggerScript& V8DebuggerScript::setURL(const String16& url) |
27 { | 27 { |
28 m_url = url; | 28 m_url = url; |
29 return *this; | 29 return *this; |
30 } | 30 } |
31 | 31 |
32 V8DebuggerScript& V8DebuggerScript::setSourceURL(const String& sourceURL) | 32 V8DebuggerScript& V8DebuggerScript::setSourceURL(const String16& sourceURL) |
33 { | 33 { |
34 m_sourceURL = sourceURL; | 34 m_sourceURL = sourceURL; |
35 return *this; | 35 return *this; |
36 } | 36 } |
37 | 37 |
38 V8DebuggerScript& V8DebuggerScript::setSourceMappingURL(const String& sourceMapp
ingURL) | 38 V8DebuggerScript& V8DebuggerScript::setSourceMappingURL(const String16& sourceMa
ppingURL) |
39 { | 39 { |
40 m_sourceMappingURL = sourceMappingURL; | 40 m_sourceMappingURL = sourceMappingURL; |
41 return *this; | 41 return *this; |
42 } | 42 } |
43 | 43 |
44 V8DebuggerScript& V8DebuggerScript::setSource(const String& source) | 44 V8DebuggerScript& V8DebuggerScript::setSource(const String16& source) |
45 { | 45 { |
46 m_source = source; | 46 m_source = source; |
47 return *this; | 47 return *this; |
48 } | 48 } |
49 | 49 |
50 V8DebuggerScript& V8DebuggerScript::setHash(const String& hash) | 50 V8DebuggerScript& V8DebuggerScript::setHash(const String16& hash) |
51 { | 51 { |
52 m_hash = hash; | 52 m_hash = hash; |
53 return *this; | 53 return *this; |
54 } | 54 } |
55 | 55 |
56 V8DebuggerScript& V8DebuggerScript::setStartLine(int startLine) | 56 V8DebuggerScript& V8DebuggerScript::setStartLine(int startLine) |
57 { | 57 { |
58 m_startLine = startLine; | 58 m_startLine = startLine; |
59 return *this; | 59 return *this; |
60 } | 60 } |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
95 return *this; | 95 return *this; |
96 } | 96 } |
97 | 97 |
98 V8DebuggerScript& V8DebuggerScript::setIsLiveEdit(bool isLiveEdit) | 98 V8DebuggerScript& V8DebuggerScript::setIsLiveEdit(bool isLiveEdit) |
99 { | 99 { |
100 m_isLiveEdit = isLiveEdit; | 100 m_isLiveEdit = isLiveEdit; |
101 return *this; | 101 return *this; |
102 } | 102 } |
103 | 103 |
104 } // namespace blink | 104 } // namespace blink |
OLD | NEW |