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

Side by Side Diff: plugins/org.chromium.sdk/src/org/chromium/sdk/JsObject.java

Issue 11659026: Fix JsObject#getProperties method so that it returns collection of JsObjectProperty (Closed) Base URL: https://chromedevtools.googlecode.com/svn/trunk
Patch Set: fcr Created 7 years, 11 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | plugins/org.chromium.sdk/src/org/chromium/sdk/internal/v8native/CallFrameImpl.java » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. 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 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 package org.chromium.sdk; 5 package org.chromium.sdk;
6 6
7 import java.util.Collection; 7 import java.util.Collection;
8 8
9 import org.chromium.sdk.util.MethodIsBlockingException; 9 import org.chromium.sdk.util.MethodIsBlockingException;
10 10
11 /** 11 /**
12 * A compound JsValue that has zero or more properties. Note that JavaScript {@c ode null} 12 * A compound JsValue that has zero or more properties. Note that JavaScript {@c ode null}
13 * value while officially being 'object' in the SDK is represented as a plain {@ link JsValue}. 13 * value while officially being 'object' in the SDK is represented as a plain {@ link JsValue}.
14 */ 14 */
15 public interface JsObject extends JsValue { 15 public interface JsObject extends JsValue {
16 16
17 /** 17 /**
18 * @return the class name of this object 18 * @return the class name of this object
19 */ 19 */
20 String getClassName(); 20 String getClassName();
21 21
22 /** 22 /**
23 * @return the own properties of this compound value (does <strong>not</strong > include 23 * @return the own properties of this compound value (does <strong>not</strong > include
24 * properties from proto object) 24 * properties from proto object)
25 * @throws MethodIsBlockingException because it may need to load value from re mote 25 * @throws MethodIsBlockingException because it may need to load value from re mote
26 * TODO: make it return list of JsObjectProperty once hacks for supporting exc eptions are
27 * removed.
28 */ 26 */
29 Collection<? extends JsVariable> getProperties() throws MethodIsBlockingExcept ion; 27 Collection<? extends JsObjectProperty> getProperties() throws MethodIsBlocking Exception;
30 28
31 /** 29 /**
32 * @return the internal properties of this compound value (e.g. those properti es which 30 * @return the internal properties of this compound value (e.g. those properti es which
33 * are not detectable with the "in" operator: __proto__ etc) 31 * are not detectable with the "in" operator: __proto__ etc)
34 * @throws MethodIsBlockingException because it may need to load value from re mote 32 * @throws MethodIsBlockingException because it may need to load value from re mote
35 */ 33 */
36 Collection<? extends JsVariable> getInternalProperties() throws MethodIsBlocki ngException; 34 Collection<? extends JsVariable> getInternalProperties() throws MethodIsBlocki ngException;
37 35
38 /** 36 /**
39 * @param name of the property to get 37 * @param name of the property to get
(...skipping 24 matching lines...) Expand all
64 * @see #getRemoteValueMapping() 62 * @see #getRemoteValueMapping()
65 */ 63 */
66 String getRefId(); 64 String getRefId();
67 65
68 /** 66 /**
69 * @return value mapping this object is associated with or null for special-ca se 67 * @return value mapping this object is associated with or null for special-ca se
70 * immutable objects 68 * immutable objects
71 */ 69 */
72 RemoteValueMapping getRemoteValueMapping(); 70 RemoteValueMapping getRemoteValueMapping();
73 } 71 }
OLDNEW
« no previous file with comments | « no previous file | plugins/org.chromium.sdk/src/org/chromium/sdk/internal/v8native/CallFrameImpl.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698