| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2011 Google Inc. All rights reserved. | 2 * Copyright (C) 2011 Google 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 are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 54 this._controlButton.addEventListener("click", this._controlButtonClicked.bin
d(this), false); | 54 this._controlButton.addEventListener("click", this._controlButtonClicked.bin
d(this), false); |
| 55 this._recordButtonEnabled = true; | 55 this._recordButtonEnabled = true; |
| 56 this._loadButton = this._contentElement.createChild("button", "text-button l
oad-profile"); | 56 this._loadButton = this._contentElement.createChild("button", "text-button l
oad-profile"); |
| 57 this._loadButton.textContent = WebInspector.UIString("Load"); | 57 this._loadButton.textContent = WebInspector.UIString("Load"); |
| 58 this._loadButton.addEventListener("click", this._loadButtonClicked.bind(this
), false); | 58 this._loadButton.addEventListener("click", this._loadButtonClicked.bind(this
), false); |
| 59 WebInspector.targetManager.observeTargets(this); | 59 WebInspector.targetManager.observeTargets(this); |
| 60 } | 60 } |
| 61 | 61 |
| 62 WebInspector.ProfileLauncherView.prototype = { | 62 WebInspector.ProfileLauncherView.prototype = { |
| 63 /** | 63 /** |
| 64 * @return {?WebInspector.SearchableView} |
| 65 */ |
| 66 searchableView: function() |
| 67 { |
| 68 return null; |
| 69 }, |
| 70 |
| 71 /** |
| 64 * @param {!WebInspector.Target} target | 72 * @param {!WebInspector.Target} target |
| 65 */ | 73 */ |
| 66 targetAdded: function(target) | 74 targetAdded: function(target) |
| 67 { | 75 { |
| 68 this._updateLoadButtonLayout(); | 76 this._updateLoadButtonLayout(); |
| 69 }, | 77 }, |
| 70 | 78 |
| 71 /** | 79 /** |
| 72 * @param {!WebInspector.Target} target | 80 * @param {!WebInspector.Target} target |
| 73 */ | 81 */ |
| (...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 249 | 257 |
| 250 profileFinished: function() | 258 profileFinished: function() |
| 251 { | 259 { |
| 252 this._isProfiling = false; | 260 this._isProfiling = false; |
| 253 this._updateControls(); | 261 this._updateControls(); |
| 254 }, | 262 }, |
| 255 | 263 |
| 256 __proto__: WebInspector.ProfileLauncherView.prototype | 264 __proto__: WebInspector.ProfileLauncherView.prototype |
| 257 } | 265 } |
| 258 | 266 |
| OLD | NEW |