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

Side by Side Diff: Source/devtools/front_end/network/NetworkPanel.js

Issue 1182933010: DevTools: Switch network panel back to frame-based filmstrip. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 6 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
« no previous file with comments | « Source/devtools/front_end/components_lazy/filmStripView.css ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2007, 2008 Apple Inc. All rights reserved. 2 * Copyright (C) 2007, 2008 Apple Inc. All rights reserved.
3 * Copyright (C) 2008, 2009 Anthony Ricaud <rik@webkit.org> 3 * Copyright (C) 2008, 2009 Anthony Ricaud <rik@webkit.org>
4 * Copyright (C) 2011 Google Inc. All rights reserved. 4 * Copyright (C) 2011 Google Inc. All rights reserved.
5 * 5 *
6 * Redistribution and use in source and binary forms, with or without 6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions 7 * modification, are permitted provided that the following conditions
8 * are met: 8 * are met:
9 * 9 *
10 * 1. Redistributions of source code must retain the above copyright 10 * 1. Redistributions of source code must retain the above copyright
(...skipping 248 matching lines...) Expand 10 before | Expand all | Expand 10 after
259 else 259 else
260 this._overviewPane.detach(); 260 this._overviewPane.detach();
261 this.doResize(); 261 this.doResize();
262 }, 262 },
263 263
264 _toggleRecordFilmStrip: function() 264 _toggleRecordFilmStrip: function()
265 { 265 {
266 var toggled = this._networkRecordFilmStripSetting.get(); 266 var toggled = this._networkRecordFilmStripSetting.get();
267 if (toggled && !this._filmStripRecorder) { 267 if (toggled && !this._filmStripRecorder) {
268 this._filmStripView = new WebInspector.FilmStripView(); 268 this._filmStripView = new WebInspector.FilmStripView();
269 this._filmStripView.setMode(WebInspector.FilmStripView.Modes.FrameBa sed);
269 this._filmStripView.element.classList.add("network-film-strip"); 270 this._filmStripView.element.classList.add("network-film-strip");
270 this._filmStripRecorder = new WebInspector.NetworkPanel.FilmStripRec order(this._filmStripView); 271 this._filmStripRecorder = new WebInspector.NetworkPanel.FilmStripRec order(this._filmStripView);
271 this._filmStripView.show(this._searchableView.element, this._searcha bleView.element.firstElementChild); 272 this._filmStripView.show(this._searchableView.element, this._searcha bleView.element.firstElementChild);
272 this._filmStripView.addEventListener(WebInspector.FilmStripView.Even ts.FrameSelected, this._onFilmFrameSelected, this); 273 this._filmStripView.addEventListener(WebInspector.FilmStripView.Even ts.FrameSelected, this._onFilmFrameSelected, this);
273 this._filmStripView.addEventListener(WebInspector.FilmStripView.Even ts.FrameEnter, this._onFilmFrameEnter, this); 274 this._filmStripView.addEventListener(WebInspector.FilmStripView.Even ts.FrameEnter, this._onFilmFrameEnter, this);
274 this._filmStripView.addEventListener(WebInspector.FilmStripView.Even ts.FrameExit, this._onFilmFrameExit, this); 275 this._filmStripView.addEventListener(WebInspector.FilmStripView.Even ts.FrameExit, this._onFilmFrameExit, this);
275 } 276 }
276 277
277 if (!toggled && this._filmStripRecorder) { 278 if (!toggled && this._filmStripRecorder) {
278 this._filmStripView.detach(); 279 this._filmStripView.detach();
(...skipping 442 matching lines...) Expand 10 before | Expand all | Expand 10 after
721 { 722 {
722 if (!this._target) 723 if (!this._target)
723 return; 724 return;
724 725
725 this._target.tracingManager.stop(); 726 this._target.tracingManager.stop();
726 this._target = null; 727 this._target = null;
727 this._callback = callback; 728 this._callback = callback;
728 this._filmStripView.setFetching(); 729 this._filmStripView.setFetching();
729 } 730 }
730 } 731 }
OLDNEW
« no previous file with comments | « Source/devtools/front_end/components_lazy/filmStripView.css ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698