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

Side by Side Diff: plugins/org.chromium.sdk.wipbackend.dev/src/org/chromium/sdk/internal/wip/WipValueBuilder.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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 package org.chromium.sdk.internal.wip; 5 package org.chromium.sdk.internal.wip;
6 6
7 import static org.chromium.sdk.util.BasicUtil.getSafe; 7 import static org.chromium.sdk.util.BasicUtil.getSafe;
8 8
9 import java.util.ArrayList; 9 import java.util.ArrayList;
10 import java.util.Collection; 10 import java.util.Collection;
(...skipping 614 matching lines...) Expand 10 before | Expand all | Expand 10 after
625 public String getName() { 625 public String getName() {
626 return name; 626 return name;
627 } 627 }
628 628
629 @Override 629 @Override
630 public boolean isMutable() { 630 public boolean isMutable() {
631 return false; 631 return false;
632 } 632 }
633 633
634 @Override 634 @Override
635 public void setValue(String newValue, SetValueCallback callback) 635 public RelayOk setValue(JsValue newValue, SetValueCallback callback,
636 throws UnsupportedOperationException { 636 SyncCallback syncCallback) throws UnsupportedOperationException {
637 throw new UnsupportedOperationException(); 637 throw new UnsupportedOperationException();
638 } 638 }
639 } 639 }
640 640
641 private static class VariableImpl extends VariableBase { 641 private static class VariableImpl extends VariableBase {
642 VariableImpl(JsValue jsValue, String name) { 642 VariableImpl(JsValue jsValue, String name) {
643 super(jsValue, name); 643 super(jsValue, name);
644 } 644 }
645 645
646 @Override public JsObjectProperty asObjectProperty() { 646 @Override public JsObjectProperty asObjectProperty() {
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
707 new SingletonPrimitiveType(JsValue.Type.TYPE_UNDEFINED, "undefined")); 707 new SingletonPrimitiveType(JsValue.Type.TYPE_UNDEFINED, "undefined"));
708 708
709 PROTOCOL_TYPE_TO_VALUE_TYPE.put(RemoteObjectValue.Type.OBJECT, new ObjectTyp e()); 709 PROTOCOL_TYPE_TO_VALUE_TYPE.put(RemoteObjectValue.Type.OBJECT, new ObjectTyp e());
710 PROTOCOL_TYPE_TO_VALUE_TYPE.put(RemoteObjectValue.Type.FUNCTION, new Functio nType()); 710 PROTOCOL_TYPE_TO_VALUE_TYPE.put(RemoteObjectValue.Type.FUNCTION, new Functio nType());
711 711
712 assert PROTOCOL_TYPE_TO_VALUE_TYPE.size() == RemoteObjectValue.Type.values() .length; 712 assert PROTOCOL_TYPE_TO_VALUE_TYPE.size() == RemoteObjectValue.Type.values() .length;
713 } 713 }
714 714
715 private static final ValueType DEFAULT_VALUE_TYPE = new ObjectSubtype(JsValue. Type.TYPE_OBJECT); 715 private static final ValueType DEFAULT_VALUE_TYPE = new ObjectSubtype(JsValue. Type.TYPE_OBJECT);
716 } 716 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698