2
|
1 |
// Copyright (c) 2009 The Chromium Authors. All rights reserved.
|
|
2 |
// Use of this source code is governed by a BSD-style license that can be
|
|
3 |
// found in the LICENSE file.
|
|
4 |
|
|
5 |
package org.chromium.sdk.internal.tools.v8.request;
|
|
6 |
|
|
7 |
import org.chromium.sdk.internal.tools.v8.DebuggerCommand;
|
|
8 |
|
|
9 |
/**
|
|
10 |
* Represents a "source" V8 request message.
|
|
11 |
*/
|
|
12 |
public class SourceMessage extends ContextlessDebuggerMessage {
|
|
13 |
|
|
14 |
/**
|
|
15 |
* @param frame number. Nullable, default is the selected frame
|
|
16 |
* @param fromLine nullable start line within the source. Default is line 0
|
|
17 |
* @param toLine nullable end line within the source (this line is not included in the
|
|
18 |
* result). Default is the number of lines in the script
|
|
19 |
*/
|
|
20 |
public SourceMessage(Integer frame, Integer fromLine, Integer toLine) {
|
|
21 |
super(DebuggerCommand.SOURCE.value);
|
|
22 |
putArgument("frame", frame);
|
|
23 |
putArgument("fromLine", fromLine);
|
|
24 |
putArgument("toLine", toLine);
|
|
25 |
}
|
|
26 |
}
|