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

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/timeline/TimelinePanel.js

Issue 2611843010: DevTools: move DOMExtension.js into ui module. (Closed)
Patch Set: Introduce progress monitor 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) 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2012 Google Inc. All rights reserved.
3 * Copyright (C) 2012 Intel Inc. All rights reserved. 3 * Copyright (C) 2012 Intel Inc. All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are 6 * modification, are permitted provided that the following conditions are
7 * met: 7 * met:
8 * 8 *
9 * * Redistributions of source code must retain the above copyright 9 * * Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 380 matching lines...) Expand 10 before | Expand all | Expand 10 after
391 } 391 }
392 392
393 _prepareToLoadTimeline() { 393 _prepareToLoadTimeline() {
394 console.assert(this._state === Timeline.TimelinePanel.State.Idle); 394 console.assert(this._state === Timeline.TimelinePanel.State.Idle);
395 this._setState(Timeline.TimelinePanel.State.Loading); 395 this._setState(Timeline.TimelinePanel.State.Loading);
396 } 396 }
397 397
398 _createFileSelector() { 398 _createFileSelector() {
399 if (this._fileSelectorElement) 399 if (this._fileSelectorElement)
400 this._fileSelectorElement.remove(); 400 this._fileSelectorElement.remove();
401 this._fileSelectorElement = Bindings.createFileSelectorElement(this._loadFro mFile.bind(this)); 401 this._fileSelectorElement = UI.createFileSelectorElement(this._loadFromFile. bind(this));
402 this.element.appendChild(this._fileSelectorElement); 402 this.element.appendChild(this._fileSelectorElement);
403 } 403 }
404 404
405 /** 405 /**
406 * @param {!Event} event 406 * @param {!Event} event
407 */ 407 */
408 _contextMenu(event) { 408 _contextMenu(event) {
409 var contextMenu = new UI.ContextMenu(event); 409 var contextMenu = new UI.ContextMenu(event);
410 contextMenu.appendItemsAtLocation('timelineMenu'); 410 contextMenu.appendItemsAtLocation('timelineMenu');
411 contextMenu.show(); 411 contextMenu.show();
(...skipping 1508 matching lines...) Expand 10 before | Expand all | Expand 10 after
1920 } 1920 }
1921 1921
1922 /** 1922 /**
1923 * @override 1923 * @override
1924 * @param {!SDK.Target} target 1924 * @param {!SDK.Target} target
1925 */ 1925 */
1926 targetRemoved(target) { 1926 targetRemoved(target) {
1927 this._targets.remove(target, true); 1927 this._targets.remove(target, true);
1928 } 1928 }
1929 }; 1929 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698