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

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

Issue 1356363002: [DevTools] Remove relativeToElement from Dialog. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 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 | Annotate | Revision Log
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 687 matching lines...) Expand 10 before | Expand all | Expand 10 after
698 }, 698 },
699 699
700 /** 700 /**
701 * @param {boolean} userInitiated 701 * @param {boolean} userInitiated
702 */ 702 */
703 _startRecording: function(userInitiated) 703 _startRecording: function(userInitiated)
704 { 704 {
705 console.assert(!this._statusDialog, "Status dialog is already opened."); 705 console.assert(!this._statusDialog, "Status dialog is already opened.");
706 this._statusDialog = new WebInspector.TimelinePanel.StatusDialog(); 706 this._statusDialog = new WebInspector.TimelinePanel.StatusDialog();
707 this._statusDialog.addEventListener(WebInspector.TimelinePanel.StatusDia log.Events.Finish, this._stopRecording, this); 707 this._statusDialog.addEventListener(WebInspector.TimelinePanel.StatusDia log.Events.Finish, this._stopRecording, this);
708 WebInspector.Dialog.show(null, this._statusDialog, true); 708 WebInspector.Dialog.show(this._statusDialog, true);
709 this._updateStatus(WebInspector.UIString("Initializing recording\u2026") ); 709 this._updateStatus(WebInspector.UIString("Initializing recording\u2026") );
710 710
711 this._autoRecordGeneration = userInitiated ? null : {}; 711 this._autoRecordGeneration = userInitiated ? null : {};
712 this._model.startRecording(true, this._enableJSSamplingSettingSetting.ge t(), this._captureMemorySetting.get(), this._captureLayersAndPicturesSetting.get (), this._captureFilmStripSetting && this._captureFilmStripSetting.get()); 712 this._model.startRecording(true, this._enableJSSamplingSettingSetting.ge t(), this._captureMemorySetting.get(), this._captureLayersAndPicturesSetting.get (), this._captureFilmStripSetting && this._captureFilmStripSetting.get());
713 if (this._lazyFrameModel) 713 if (this._lazyFrameModel)
714 this._lazyFrameModel.setMergeRecords(false); 714 this._lazyFrameModel.setMergeRecords(false);
715 715
716 for (var i = 0; i < this._overviewControls.length; ++i) 716 for (var i = 0; i < this._overviewControls.length; ++i)
717 this._overviewControls[i].timelineStarted(); 717 this._overviewControls[i].timelineStarted();
718 718
(...skipping 1320 matching lines...) Expand 10 before | Expand all | Expand 10 after
2039 * @param {!WebInspector.Context} context 2039 * @param {!WebInspector.Context} context
2040 * @param {string} actionId 2040 * @param {string} actionId
2041 */ 2041 */
2042 handleAction: function(context, actionId) 2042 handleAction: function(context, actionId)
2043 { 2043 {
2044 var panel = WebInspector.context.flavor(WebInspector.TimelinePanel); 2044 var panel = WebInspector.context.flavor(WebInspector.TimelinePanel);
2045 console.assert(panel && panel instanceof WebInspector.TimelinePanel); 2045 console.assert(panel && panel instanceof WebInspector.TimelinePanel);
2046 panel._toggleTimelineButtonClicked(); 2046 panel._toggleTimelineButtonClicked();
2047 } 2047 }
2048 } 2048 }
OLDNEW
« no previous file with comments | « Source/devtools/front_end/sources/StyleSheetOutlineDialog.js ('k') | Source/devtools/front_end/ui/Dialog.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698