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

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/ui/ContextMenu.js

Issue 1760093003: [DevTools] Prepare UI module for closure compiler roll (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@remove-array-from
Patch Set: Created 4 years, 9 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) 2009 Google Inc. All rights reserved. 2 * Copyright (C) 2009 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 283 matching lines...) Expand 10 before | Expand all | Expand 10 after
294 * @param {!Event} event 294 * @param {!Event} event
295 * @param {boolean=} useSoftMenu 295 * @param {boolean=} useSoftMenu
296 * @param {number=} x 296 * @param {number=} x
297 * @param {number=} y 297 * @param {number=} y
298 */ 298 */
299 WebInspector.ContextMenu = function(event, useSoftMenu, x, y) 299 WebInspector.ContextMenu = function(event, useSoftMenu, x, y)
300 { 300 {
301 WebInspector.ContextSubMenuItem.call(this, this, ""); 301 WebInspector.ContextSubMenuItem.call(this, this, "");
302 /** @type {!Array.<!Promise.<!Array.<!WebInspector.ContextMenu.Provider>>>} */ 302 /** @type {!Array.<!Promise.<!Array.<!WebInspector.ContextMenu.Provider>>>} */
303 this._pendingPromises = []; 303 this._pendingPromises = [];
304 /** @type {!Array.<!Promise.<!Object>>} */ 304 /** @type {!Array<!Object>} */
305 this._pendingTargets = []; 305 this._pendingTargets = [];
306 this._event = event; 306 this._event = event;
307 this._useSoftMenu = !!useSoftMenu; 307 this._useSoftMenu = !!useSoftMenu;
308 this._x = x === undefined ? event.x : x; 308 this._x = x === undefined ? event.x : x;
309 this._y = y === undefined ? event.y : y; 309 this._y = y === undefined ? event.y : y;
310 this._handlers = {}; 310 this._handlers = {};
311 this._id = 0; 311 this._id = 0;
312 } 312 }
313 313
314 WebInspector.ContextMenu.initialize = function() 314 WebInspector.ContextMenu.initialize = function()
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after
481 } 481 }
482 482
483 WebInspector.ContextMenu.Provider.prototype = { 483 WebInspector.ContextMenu.Provider.prototype = {
484 /** 484 /**
485 * @param {!Event} event 485 * @param {!Event} event
486 * @param {!WebInspector.ContextMenu} contextMenu 486 * @param {!WebInspector.ContextMenu} contextMenu
487 * @param {!Object} target 487 * @param {!Object} target
488 */ 488 */
489 appendApplicableItems: function(event, contextMenu, target) { } 489 appendApplicableItems: function(event, contextMenu, target) { }
490 } 490 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698