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.protocol.data;
|
|
6 |
|
|
7 |
import org.chromium.sdk.internal.protocolparser.JsonOptionalField;
|
|
8 |
import org.chromium.sdk.internal.protocolparser.JsonSubtype;
|
|
9 |
import org.chromium.sdk.internal.protocolparser.JsonType;
|
|
10 |
import org.json.simple.JSONObject;
|
|
11 |
|
|
12 |
@JsonType
|
|
13 |
public interface ScriptHandle extends JsonSubtype<SomeHandle> {
|
|
14 |
|
|
15 |
long id();
|
|
16 |
long lineOffset();
|
|
17 |
long columnOffset();
|
|
18 |
long lineCount();
|
|
19 |
|
|
20 |
@JsonOptionalField
|
|
21 |
Object data();
|
|
22 |
|
|
23 |
// either sourceStart or source
|
|
24 |
@JsonOptionalField
|
|
25 |
String sourceStart();
|
|
26 |
|
|
27 |
@JsonOptionalField
|
|
28 |
String source();
|
|
29 |
|
|
30 |
long sourceLength();
|
|
31 |
long scriptType();
|
|
32 |
long compilationType();
|
|
33 |
|
|
34 |
|
|
35 |
@JsonOptionalField
|
|
36 |
SomeSerialized evalFromScript();
|
|
37 |
|
|
38 |
@JsonOptionalField
|
|
39 |
JSONObject evalFromLocation();
|
|
40 |
|
|
41 |
|
|
42 |
@JsonOptionalField
|
|
43 |
SomeRef context();
|
|
44 |
|
|
45 |
String text();
|
|
46 |
|
|
47 |
@JsonOptionalField
|
|
48 |
String name();
|
|
49 |
}
|