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

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/sdk/DebuggerModel.js

Issue 2286963002: DevTools: Turn *Model events into symbols (Closed)
Patch Set: Add SourcesTextEditor events Created 4 years, 3 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2010 Google Inc. All rights reserved. 2 * Copyright (C) 2010 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 * Keep these in sync with WebCore::V8Debugger 65 * Keep these in sync with WebCore::V8Debugger
66 * 66 *
67 * @enum {string} 67 * @enum {string}
68 */ 68 */
69 WebInspector.DebuggerModel.PauseOnExceptionsState = { 69 WebInspector.DebuggerModel.PauseOnExceptionsState = {
70 DontPauseOnExceptions : "none", 70 DontPauseOnExceptions : "none",
71 PauseOnAllExceptions : "all", 71 PauseOnAllExceptions : "all",
72 PauseOnUncaughtExceptions: "uncaught" 72 PauseOnUncaughtExceptions: "uncaught"
73 }; 73 };
74 74
75 /** @enum {string} */ 75 /** @enum {symbol} */
76 WebInspector.DebuggerModel.Events = { 76 WebInspector.DebuggerModel.Events = {
77 DebuggerWasEnabled: "DebuggerWasEnabled", 77 DebuggerWasEnabled: Symbol("DebuggerWasEnabled"),
78 DebuggerWasDisabled: "DebuggerWasDisabled", 78 DebuggerWasDisabled: Symbol("DebuggerWasDisabled"),
79 BeforeDebuggerPaused: "BeforeDebuggerPaused", 79 BeforeDebuggerPaused: Symbol("BeforeDebuggerPaused"),
80 DebuggerPaused: "DebuggerPaused", 80 DebuggerPaused: Symbol("DebuggerPaused"),
81 DebuggerResumed: "DebuggerResumed", 81 DebuggerResumed: Symbol("DebuggerResumed"),
82 ParsedScriptSource: "ParsedScriptSource", 82 ParsedScriptSource: Symbol("ParsedScriptSource"),
83 FailedToParseScriptSource: "FailedToParseScriptSource", 83 FailedToParseScriptSource: Symbol("FailedToParseScriptSource"),
84 GlobalObjectCleared: "GlobalObjectCleared", 84 GlobalObjectCleared: Symbol("GlobalObjectCleared"),
85 CallFrameSelected: "CallFrameSelected", 85 CallFrameSelected: Symbol("CallFrameSelected"),
86 ConsoleCommandEvaluatedInSelectedCallFrame: "ConsoleCommandEvaluatedInSelect edCallFrame" 86 ConsoleCommandEvaluatedInSelectedCallFrame: Symbol("ConsoleCommandEvaluatedI nSelectedCallFrame")
87 } 87 }
88 88
89 /** @enum {string} */ 89 /** @enum {string} */
90 WebInspector.DebuggerModel.BreakReason = { 90 WebInspector.DebuggerModel.BreakReason = {
91 DOM: "DOM", 91 DOM: "DOM",
92 EventListener: "EventListener", 92 EventListener: "EventListener",
93 XHR: "XHR", 93 XHR: "XHR",
94 Exception: "exception", 94 Exception: "exception",
95 PromiseRejection: "promiseRejection", 95 PromiseRejection: "promiseRejection",
96 Assert: "assert", 96 Assert: "assert",
(...skipping 1173 matching lines...) Expand 10 before | Expand all | Expand 10 after
1270 /** 1270 /**
1271 * @param {?WebInspector.Target} target 1271 * @param {?WebInspector.Target} target
1272 * @return {?WebInspector.DebuggerModel} 1272 * @return {?WebInspector.DebuggerModel}
1273 */ 1273 */
1274 WebInspector.DebuggerModel.fromTarget = function(target) 1274 WebInspector.DebuggerModel.fromTarget = function(target)
1275 { 1275 {
1276 if (!target || !target.hasJSCapability()) 1276 if (!target || !target.hasJSCapability())
1277 return null; 1277 return null;
1278 return /** @type {?WebInspector.DebuggerModel} */ (target.model(WebInspector .DebuggerModel)); 1278 return /** @type {?WebInspector.DebuggerModel} */ (target.model(WebInspector .DebuggerModel));
1279 } 1279 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698