org.chromium.sdk/src/org/chromium/sdk/internal/protocol/data/SomeRef.java
changeset 2 e4420d2515f1
equal deleted inserted replaced
1:ef76fc2ac88c 2:e4420d2515f1
       
     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.JsonSubtype;
       
     8 import org.chromium.sdk.internal.protocolparser.JsonSubtypeCasting;
       
     9 import org.chromium.sdk.internal.protocolparser.JsonSubtypeCondition;
       
    10 import org.chromium.sdk.internal.protocolparser.JsonType;
       
    11 
       
    12 
       
    13 /**
       
    14  * A reference form of object data serialization. Basically it only has one field "ref" that
       
    15  * is "handle" of an object. Using this integer value as a key, all the object data may be
       
    16  * requested (lookup'ed) from debugger. However some additional data may be available via subtype.
       
    17  * <p>Gets serialized in mirror-delay.js,
       
    18  * first part of JSONProtocolSerializer.prototype.serialize_
       
    19  */
       
    20 @JsonType
       
    21 public interface SomeRef extends JsonSubtype<SomeSerialized> {
       
    22   @JsonSubtypeCondition
       
    23   long ref();
       
    24 
       
    25   @JsonSubtypeCasting
       
    26   RefWithDisplayData asWithDisplayData();
       
    27 
       
    28   @JsonSubtypeCasting
       
    29   void asJustSomeRef();
       
    30 }