Package org.chromium.sdk

Examples of org.chromium.sdk.JsDeclarativeVariable$SetValueCallback


            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


          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

    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

Related Classes of org.chromium.sdk.JsDeclarativeVariable$SetValueCallback

Copyright © 2018 www.massapicom. 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.