| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2012 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 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 57 WebInspector.workspace.addEventListener(WebInspector.Workspace.Events.Workin
gCopyCommittedByUser, this._revisionAdded, this); | 57 WebInspector.workspace.addEventListener(WebInspector.Workspace.Events.Workin
gCopyCommittedByUser, this._revisionAdded, this); |
| 58 WebInspector.workspace.addEventListener(WebInspector.Workspace.Events.UISour
ceCodeRemoved, this._uiSourceCodeRemoved, this); | 58 WebInspector.workspace.addEventListener(WebInspector.Workspace.Events.UISour
ceCodeRemoved, this._uiSourceCodeRemoved, this); |
| 59 WebInspector.workspace.addEventListener(WebInspector.Workspace.Events.Projec
tRemoved, this._projectRemoved, this); | 59 WebInspector.workspace.addEventListener(WebInspector.Workspace.Events.Projec
tRemoved, this._projectRemoved, this); |
| 60 } | 60 } |
| 61 | 61 |
| 62 /** | 62 /** |
| 63 * @param {!WebInspector.UISourceCode} uiSourceCode | 63 * @param {!WebInspector.UISourceCode} uiSourceCode |
| 64 */ | 64 */ |
| 65 WebInspector.RevisionHistoryView.showHistory = function(uiSourceCode) | 65 WebInspector.RevisionHistoryView.showHistory = function(uiSourceCode) |
| 66 { | 66 { |
| 67 WebInspector.inspectorView.showViewInDrawer("sources.history"); | 67 WebInspector.viewManager.showView("sources.history"); |
| 68 var historyView = /** @type {!WebInspector.RevisionHistoryView} */ (self.run
time.sharedInstance(WebInspector.RevisionHistoryView)); | 68 var historyView = /** @type {!WebInspector.RevisionHistoryView} */ (self.run
time.sharedInstance(WebInspector.RevisionHistoryView)); |
| 69 historyView._revealUISourceCode(uiSourceCode); | 69 historyView._revealUISourceCode(uiSourceCode); |
| 70 } | 70 } |
| 71 | 71 |
| 72 WebInspector.RevisionHistoryView.prototype = { | 72 WebInspector.RevisionHistoryView.prototype = { |
| 73 /** | 73 /** |
| 74 * @param {!WebInspector.UISourceCode} uiSourceCode | 74 * @param {!WebInspector.UISourceCode} uiSourceCode |
| 75 */ | 75 */ |
| 76 _createUISourceCodeItem: function(uiSourceCode) | 76 _createUISourceCodeItem: function(uiSourceCode) |
| 77 { | 77 { |
| (...skipping 218 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 296 contentSpan.classList.add("revision-history-line-" + changeType); | 296 contentSpan.classList.add("revision-history-line-" + changeType); |
| 297 }, | 297 }, |
| 298 | 298 |
| 299 allowRevert: function() | 299 allowRevert: function() |
| 300 { | 300 { |
| 301 this._revertElement.classList.remove("hidden"); | 301 this._revertElement.classList.remove("hidden"); |
| 302 }, | 302 }, |
| 303 | 303 |
| 304 __proto__: TreeElement.prototype | 304 __proto__: TreeElement.prototype |
| 305 } | 305 } |
| OLD | NEW |