Examples of JsDeclarativeVariable


Examples of org.chromium.sdk.JsDeclarativeVariable

            for (PropertyDescriptorValue property : propertyList) {
              final String name = property.name();

              ValueNameBuilder valueNameBuilder =
                  WipExpressionBuilder.createRootName(name, false);
              JsDeclarativeVariable variable =
                  valueBuilder.createDeclarativeVariable(property.value(), valueNameBuilder);
              properties.add(variable);
            }
            final ScopeVariables scopeVariables =
                new ScopeVariables(properties, currentCacheState);
View Full Code Here

Examples of org.chromium.sdk.JsDeclarativeVariable

          WipValueBuilder valueBuilder = valueLoader.getValueBuilder();
          for (PropertyDescriptorValue property : propertyList) {
            final String name = property.name();

            JsDeclarativeVariable variable =
                valueBuilder.createDeclarativeVariable(property.value(), name, scopeParams);
            properties.add(variable);
          }
          final ScopeVariables scopeVariables = new ScopeVariables(properties, currentCacheState);
          return new Getter<ScopeVariables>() {
View Full Code Here

Examples of org.chromium.sdk.JsDeclarativeVariable

    public String createHolderWatchExpression() {
      return expressionTrackerNode.calculateParentQualifiedName();
    }

    private ValueChanger createValueChanger() {
      final JsDeclarativeVariable declarative = jsVariable.asDeclarativeVariable();
      if (declarative != null) {
        if (!declarative.isMutable()) {
          return null;
        }
        return new ValueChanger() {
          @Override
          RelayOk setValue(JsValue newValue,
              final Callback callback, CallbackSemaphore syncCallback) {
            JsDeclarativeVariable.SetValueCallback rawCallback =
                new JsDeclarativeVariable.SetValueCallback() {
              @Override public void success() {
                callback.success();
              }
              @Override public void failure(Exception cause) {
                callback.failure(cause);
              }
            };
            return declarative.setValue(newValue, rawCallback, syncCallback);
          }
        };
      }
      JsObjectProperty property = jsVariable.asObjectProperty();
      if (property != null) {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.