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

Unified Diff: plugins/org.chromium.sdk/src/org/chromium/sdk/internal/v8native/protocol/output/SetVariableValueMessage.java

Issue 11662019: Support variable changing in SDK interface and v8 native (Closed) Base URL: https://chromedevtools.googlecode.com/svn/trunk
Patch Set: merge 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 side-by-side diff with in-line comments
Download patch
Index: plugins/org.chromium.sdk/src/org/chromium/sdk/internal/v8native/protocol/output/SetVariableValueMessage.java
diff --git a/plugins/org.chromium.sdk/src/org/chromium/sdk/internal/v8native/protocol/output/SetVariableValueMessage.java b/plugins/org.chromium.sdk/src/org/chromium/sdk/internal/v8native/protocol/output/SetVariableValueMessage.java
new file mode 100644
index 0000000000000000000000000000000000000000..256b53168306b220629034e56db28c63e0950b9a
--- /dev/null
+++ b/plugins/org.chromium.sdk/src/org/chromium/sdk/internal/v8native/protocol/output/SetVariableValueMessage.java
@@ -0,0 +1,23 @@
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+package org.chromium.sdk.internal.v8native.protocol.output;
+
+import org.chromium.sdk.internal.v8native.DebuggerCommand;
+import org.json.simple.JSONObject;
+
+/**
+ * Represents a "setVariableValue" request message.
+ */
+public class SetVariableValueMessage extends DebuggerMessage {
+ public SetVariableValueMessage(ScopeMessage.Ref scopeRef, String variableName,
+ EvaluateMessage.Value value) {
+ super(DebuggerCommand.SETVARIABLEVALUE.value);
+ JSONObject scopeObject = new JSONObject();
+ scopeRef.fillJson(scopeObject);
+ putArgument("scope", scopeObject);
+ putArgument("name", variableName);
+ putArgument("newValue", value.createJsonParameter());
+ }
+}

Powered by Google App Engine
This is Rietveld 408576698