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