org.chromium.sdk/src/org/chromium/sdk/internal/JsObjectImpl.java
changeset 355 8726e95bcbba
parent 276 f2f4a1259de8
equal deleted inserted replaced
354:0bceeb415e7f 355:8726e95bcbba
   165     }
   165     }
   166 
   166 
   167     List<JsVariableImpl> getPropertiesLazily() throws MethodIsBlockingException {
   167     List<JsVariableImpl> getPropertiesLazily() throws MethodIsBlockingException {
   168       synchronized (this) {
   168       synchronized (this) {
   169         if (properties == null) {
   169         if (properties == null) {
   170 
   170           List<? extends PropertyReference> propertyRefs =
   171         List<? extends PropertyReference> propertyRefs = getPropertyRefs(getSubpropertiesMirror());
   171               getPropertyRefs(getSubpropertiesMirror());
   172         ValueLoader valueLoader = context.getValueLoader();
   172           ValueLoader valueLoader = context.getValueLoader();
   173         List<ValueMirror> subMirrors = valueLoader.getOrLoadValueFromRefs(propertyRefs);
   173           List<ValueMirror> subMirrors = valueLoader.getOrLoadValueFromRefs(propertyRefs);
   174 
   174 
   175           List<JsVariableImpl> wrappedProperties = createPropertiesFromMirror(subMirrors,
   175           List<JsVariableImpl> wrappedProperties = createPropertiesFromMirror(subMirrors,
   176               propertyRefs);
   176               propertyRefs);
   177           properties = Collections.unmodifiableList(wrappedProperties);
   177           properties = Collections.unmodifiableList(wrappedProperties);
   178         }
   178         }