| 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 * 1. Redistributions of source code must retain the above copyright | 8 * 1. 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 * | 10 * |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 44 this._navigatorViews = new StringMap(); | 44 this._navigatorViews = new StringMap(); |
| 45 } | 45 } |
| 46 | 46 |
| 47 WebInspector.SourcesNavigator.Events = { | 47 WebInspector.SourcesNavigator.Events = { |
| 48 SourceSelected: "SourceSelected", | 48 SourceSelected: "SourceSelected", |
| 49 SourceRenamed: "SourceRenamed" | 49 SourceRenamed: "SourceRenamed" |
| 50 } | 50 } |
| 51 | 51 |
| 52 WebInspector.SourcesNavigator.prototype = { | 52 WebInspector.SourcesNavigator.prototype = { |
| 53 /** | 53 /** |
| 54 * @param {string} id |
| 54 * @param {!WebInspector.View} view | 55 * @param {!WebInspector.View} view |
| 55 */ | 56 */ |
| 56 _navigatorViewCreated: function(id, view) | 57 _navigatorViewCreated: function(id, view) |
| 57 { | 58 { |
| 58 var navigatorView = /** @type {!WebInspector.NavigatorView} */ (view); | 59 var navigatorView = /** @type {!WebInspector.NavigatorView} */ (view); |
| 59 navigatorView.addEventListener(WebInspector.NavigatorView.Events.ItemSel
ected, this._sourceSelected, this); | 60 navigatorView.addEventListener(WebInspector.NavigatorView.Events.ItemSel
ected, this._sourceSelected, this); |
| 60 navigatorView.addEventListener(WebInspector.NavigatorView.Events.ItemRen
amed, this._sourceRenamed, this); | 61 navigatorView.addEventListener(WebInspector.NavigatorView.Events.ItemRen
amed, this._sourceRenamed, this); |
| 61 this._navigatorViews.put(id, navigatorView); | 62 this._navigatorViews.put(id, navigatorView); |
| 62 navigatorView.setWorkspace(this._workspace); | 63 navigatorView.setWorkspace(this._workspace); |
| 63 }, | 64 }, |
| (...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 195 /** | 196 /** |
| 196 * @override | 197 * @override |
| 197 */ | 198 */ |
| 198 sourceDeleted: function(uiSourceCode) | 199 sourceDeleted: function(uiSourceCode) |
| 199 { | 200 { |
| 200 this._handleRemoveSnippet(uiSourceCode); | 201 this._handleRemoveSnippet(uiSourceCode); |
| 201 }, | 202 }, |
| 202 | 203 |
| 203 __proto__: WebInspector.NavigatorView.prototype | 204 __proto__: WebInspector.NavigatorView.prototype |
| 204 } | 205 } |
| OLD | NEW |