| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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.v8native; | 5 package org.chromium.sdk.internal.v8native; |
| 6 | 6 |
| 7 import java.util.HashMap; | 7 import java.util.HashMap; |
| 8 import java.util.Map; | 8 import java.util.Map; |
| 9 | 9 |
| 10 /** | 10 /** |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 SOURCE("source"), | 21 SOURCE("source"), |
| 22 SCOPE("scope"), | 22 SCOPE("scope"), |
| 23 SETBREAKPOINT("setbreakpoint"), | 23 SETBREAKPOINT("setbreakpoint"), |
| 24 CHANGEBREAKPOINT("changebreakpoint"), | 24 CHANGEBREAKPOINT("changebreakpoint"), |
| 25 CLEARBREAKPOINT("clearbreakpoint"), | 25 CLEARBREAKPOINT("clearbreakpoint"), |
| 26 LISTBREAKPOINTS("listbreakpoints"), | 26 LISTBREAKPOINTS("listbreakpoints"), |
| 27 LOOKUP("lookup"), | 27 LOOKUP("lookup"), |
| 28 SUSPEND("suspend"), | 28 SUSPEND("suspend"), |
| 29 VERSION("version"), | 29 VERSION("version"), |
| 30 FLAGS("flags"), | 30 FLAGS("flags"), |
| 31 SETVARIABLEVALUE("setVariableValue"), |
| 31 | 32 |
| 32 // Events | 33 // Events |
| 33 BREAK("break"), | 34 BREAK("break"), |
| 34 EXCEPTION("exception"), | 35 EXCEPTION("exception"), |
| 35 AFTER_COMPILE("afterCompile"), | 36 AFTER_COMPILE("afterCompile"), |
| 36 SCRIPT_COLLECTED("scriptCollected"), | 37 SCRIPT_COLLECTED("scriptCollected"), |
| 37 ; | 38 ; |
| 38 | 39 |
| 39 public final String value; | 40 public final String value; |
| 40 | 41 |
| (...skipping 15 matching lines...) Expand all Loading... |
| 56 * @return the DebuggerCommand instance or null if none corresponds to value | 57 * @return the DebuggerCommand instance or null if none corresponds to value |
| 57 */ | 58 */ |
| 58 public static DebuggerCommand forString(String value) { | 59 public static DebuggerCommand forString(String value) { |
| 59 if (value == null) { | 60 if (value == null) { |
| 60 return null; | 61 return null; |
| 61 } | 62 } |
| 62 return valueToCommandMap.get(value); | 63 return valueToCommandMap.get(value); |
| 63 } | 64 } |
| 64 | 65 |
| 65 } | 66 } |
| OLD | NEW |