Package org.chromium.sdk.internal.v8native.value

Examples of org.chromium.sdk.internal.v8native.value.JsValueBase$Impl


            } catch (JsonProtocolParseException e) {
              throw new RuntimeException(e);
            }
            InternalContext internalContext = getInternalContext();
            ValueMirror mirror = internalContext.getValueLoader().addDataToMap(body);
            JsValueBase value =
                JsVariableBase.createValue(internalContext.getValueLoader(), mirror);
            callback.success(value);
          }
          @Override
          public void failure(String message, ErrorDetails errorDetails) {
            // We are not fully correct here.
            // All that we actually receive from the other side is a string message.
            // It might be message of exception or it could be diagnostic of any other
            // kind of error.
            // We incorrectly create string value out of this message and return
            // it as an exception.
            // TODO: Return actual exception value when protocol supports it.
            JsValueBase pseudoException = getValueFactory().createString(message);
            callback.exception(pseudoException);
          }
        };

    return getInternalContext().sendV8CommandAsync(message, true, commandCallback,
View Full Code Here


      return null;
    }
    final List<Map.Entry<String, EvaluateMessage.Value>> dataList =
        new ArrayList<Map.Entry<String,EvaluateMessage.Value>>(source.size());
    for (final Map.Entry<String, ? extends JsValue> en : source.entrySet()) {
      JsValueBase jsValueBase = JsValueBase.cast(en.getValue());
      final EvaluateMessage.Value value = jsValueBase.getJsonParam(internalContext);
      Map.Entry<String, EvaluateMessage.Value> convertedEntry =
          new Map.Entry<String, EvaluateMessage.Value>() {
        @Override public String getKey() {
          return en.getKey();
        }
View Full Code Here

TOP

Related Classes of org.chromium.sdk.internal.v8native.value.JsValueBase$Impl

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.