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

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

Issue 2623743002: DevTools: extract modules (non-extensions) (Closed)
Patch Set: rebaseline Created 3 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2008 Apple Inc. All Rights Reserved. 2 * Copyright (C) 2008 Apple 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 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 384 matching lines...) Expand 10 before | Expand all | Expand 10 after
395 lastCallFrame = callFrame; 395 lastCallFrame = callFrame;
396 } 396 }
397 InspectorFrontendHost.copyText(text); 397 InspectorFrontendHost.copyText(text);
398 } 398 }
399 399
400 /** 400 /**
401 * @param {function(!Array.<!UI.KeyboardShortcut.Descriptor>, function(!Event= ):boolean)} registerShortcutDelegate 401 * @param {function(!Array.<!UI.KeyboardShortcut.Descriptor>, function(!Event= ):boolean)} registerShortcutDelegate
402 */ 402 */
403 registerShortcuts(registerShortcutDelegate) { 403 registerShortcuts(registerShortcutDelegate) {
404 registerShortcutDelegate( 404 registerShortcutDelegate(
405 Components.ShortcutsScreen.SourcesPanelShortcuts.NextCallFrame, this._se lectNextCallFrameOnStack.bind(this)); 405 UI.ShortcutsScreen.SourcesPanelShortcuts.NextCallFrame, this._selectNext CallFrameOnStack.bind(this));
406 registerShortcutDelegate( 406 registerShortcutDelegate(
407 Components.ShortcutsScreen.SourcesPanelShortcuts.PrevCallFrame, 407 UI.ShortcutsScreen.SourcesPanelShortcuts.PrevCallFrame, this._selectPrev iousCallFrameOnStack.bind(this));
408 this._selectPreviousCallFrameOnStack.bind(this));
409 } 408 }
410 }; 409 };
411 410
412 /** 411 /**
413 * @unrestricted 412 * @unrestricted
414 */ 413 */
415 Sources.CallStackSidebarPane.CallFrame = class extends Sources.UIList.Item { 414 Sources.CallStackSidebarPane.CallFrame = class extends Sources.UIList.Item {
416 /** 415 /**
417 * @param {string} functionName 416 * @param {string} functionName
418 * @param {!SDK.DebuggerModel.Location} location 417 * @param {!SDK.DebuggerModel.Location} location
(...skipping 15 matching lines...) Expand all
434 */ 433 */
435 _update(liveLocation) { 434 _update(liveLocation) {
436 var uiLocation = liveLocation.uiLocation(); 435 var uiLocation = liveLocation.uiLocation();
437 if (!uiLocation) 436 if (!uiLocation)
438 return; 437 return;
439 var text = uiLocation.linkText(); 438 var text = uiLocation.linkText();
440 this.setSubtitle(text.trimMiddle(30)); 439 this.setSubtitle(text.trimMiddle(30));
441 this.subtitleElement.title = text; 440 this.subtitleElement.title = text;
442 } 441 }
443 }; 442 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698