| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 } |
| OLD | NEW |