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

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/sources/WatchExpressionsSidebarPane.js

Issue 2440953003: DevTools: use semicolons after each statement. (Closed)
Patch Set: rebaseline Created 4 years, 1 month 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) IBM Corp. 2009 All rights reserved. 2 * Copyright (C) IBM Corp. 2009 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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 this._refreshButton.addEventListener("click", this._refreshButtonClicked.bin d(this)); 50 this._refreshButton.addEventListener("click", this._refreshButtonClicked.bin d(this));
51 51
52 this._bodyElement = this.element.createChild("div", "vbox watch-expressions" ); 52 this._bodyElement = this.element.createChild("div", "vbox watch-expressions" );
53 this._bodyElement.addEventListener("contextmenu", this._contextMenu.bind(thi s), false); 53 this._bodyElement.addEventListener("contextmenu", this._contextMenu.bind(thi s), false);
54 this._expandController = new WebInspector.ObjectPropertiesSectionExpandContr oller(); 54 this._expandController = new WebInspector.ObjectPropertiesSectionExpandContr oller();
55 55
56 WebInspector.context.addFlavorChangeListener(WebInspector.ExecutionContext, this.update, this); 56 WebInspector.context.addFlavorChangeListener(WebInspector.ExecutionContext, this.update, this);
57 WebInspector.context.addFlavorChangeListener(WebInspector.DebuggerModel.Call Frame, this.update, this); 57 WebInspector.context.addFlavorChangeListener(WebInspector.DebuggerModel.Call Frame, this.update, this);
58 this._linkifier = new WebInspector.Linkifier(); 58 this._linkifier = new WebInspector.Linkifier();
59 this.update(); 59 this.update();
60 } 60 };
61 61
62 WebInspector.WatchExpressionsSidebarPane.prototype = { 62 WebInspector.WatchExpressionsSidebarPane.prototype = {
63 /** 63 /**
64 * @override 64 * @override
65 * @return {!Array<!WebInspector.ToolbarItem>} 65 * @return {!Array<!WebInspector.ToolbarItem>}
66 */ 66 */
67 toolbarItems: function() 67 toolbarItems: function()
68 { 68 {
69 return [this._addButton, this._refreshButton]; 69 return [this._addButton, this._refreshButton];
70 }, 70 },
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after
223 * @param {!Event} event 223 * @param {!Event} event
224 * @param {!WebInspector.ContextMenu} contextMenu 224 * @param {!WebInspector.ContextMenu} contextMenu
225 * @param {!Object} target 225 * @param {!Object} target
226 */ 226 */
227 appendApplicableItems: function(event, contextMenu, target) 227 appendApplicableItems: function(event, contextMenu, target)
228 { 228 {
229 contextMenu.appendAction("sources.add-to-watch"); 229 contextMenu.appendAction("sources.add-to-watch");
230 }, 230 },
231 231
232 __proto__: WebInspector.ThrottledWidget.prototype 232 __proto__: WebInspector.ThrottledWidget.prototype
233 } 233 };
234 234
235 /** 235 /**
236 * @constructor 236 * @constructor
237 * @extends {WebInspector.Object} 237 * @extends {WebInspector.Object}
238 * @param {?string} expression 238 * @param {?string} expression
239 * @param {!WebInspector.ObjectPropertiesSectionExpandController} expandControll er 239 * @param {!WebInspector.ObjectPropertiesSectionExpandController} expandControll er
240 * @param {!WebInspector.Linkifier} linkifier 240 * @param {!WebInspector.Linkifier} linkifier
241 */ 241 */
242 WebInspector.WatchExpression = function(expression, expandController, linkifier) 242 WebInspector.WatchExpression = function(expression, expandController, linkifier)
243 { 243 {
244 this._expression = expression; 244 this._expression = expression;
245 this._expandController = expandController; 245 this._expandController = expandController;
246 this._element = createElementWithClass("div", "watch-expression monospace"); 246 this._element = createElementWithClass("div", "watch-expression monospace");
247 this._editing = false; 247 this._editing = false;
248 this._linkifier = linkifier; 248 this._linkifier = linkifier;
249 249
250 this._createWatchExpression(null); 250 this._createWatchExpression(null);
251 this.update(); 251 this.update();
252 } 252 };
253 253
254 WebInspector.WatchExpression._watchObjectGroupId = "watch-group"; 254 WebInspector.WatchExpression._watchObjectGroupId = "watch-group";
255 255
256 /** @enum {symbol} */ 256 /** @enum {symbol} */
257 WebInspector.WatchExpression.Events = { 257 WebInspector.WatchExpression.Events = {
258 ExpressionUpdated: Symbol("ExpressionUpdated") 258 ExpressionUpdated: Symbol("ExpressionUpdated")
259 } 259 };
260 260
261 WebInspector.WatchExpression.prototype = { 261 WebInspector.WatchExpression.prototype = {
262 262
263 /** 263 /**
264 * @return {!Element} 264 * @return {!Element}
265 */ 265 */
266 element: function() 266 element: function()
267 { 267 {
268 return this._element; 268 return this._element;
269 }, 269 },
(...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after
453 if (target && this._valueElement.isSelfOrAncestor(target)) 453 if (target && this._valueElement.isSelfOrAncestor(target))
454 contextMenu.appendApplicableItems(this._result); 454 contextMenu.appendApplicableItems(this._result);
455 }, 455 },
456 456
457 _copyValueButtonClicked: function() 457 _copyValueButtonClicked: function()
458 { 458 {
459 InspectorFrontendHost.copyText(this._valueElement.textContent); 459 InspectorFrontendHost.copyText(this._valueElement.textContent);
460 }, 460 },
461 461
462 __proto__: WebInspector.Object.prototype 462 __proto__: WebInspector.Object.prototype
463 } 463 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698