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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 {string} id |
55 * @param {!WebInspector.View} view | 55 * @param {!WebInspector.Widget} view |
56 */ | 56 */ |
57 _navigatorViewCreated: function(id, view) | 57 _navigatorViewCreated: function(id, view) |
58 { | 58 { |
59 var navigatorView = /** @type {!WebInspector.NavigatorView} */ (view); | 59 var navigatorView = /** @type {!WebInspector.NavigatorView} */ (view); |
60 navigatorView.addEventListener(WebInspector.NavigatorView.Events.ItemSel
ected, this._sourceSelected, this); | 60 navigatorView.addEventListener(WebInspector.NavigatorView.Events.ItemSel
ected, this._sourceSelected, this); |
61 navigatorView.addEventListener(WebInspector.NavigatorView.Events.ItemRen
amed, this._sourceRenamed, this); | 61 navigatorView.addEventListener(WebInspector.NavigatorView.Events.ItemRen
amed, this._sourceRenamed, this); |
62 this._navigatorViews.set(id, navigatorView); | 62 this._navigatorViews.set(id, navigatorView); |
63 navigatorView.setWorkspace(this._workspace); | 63 navigatorView.setWorkspace(this._workspace); |
64 }, | 64 }, |
65 | 65 |
66 /** | 66 /** |
67 * @return {!WebInspector.View} | 67 * @return {!WebInspector.Widget} |
68 */ | 68 */ |
69 get view() | 69 get view() |
70 { | 70 { |
71 return this._tabbedPane; | 71 return this._tabbedPane; |
72 }, | 72 }, |
73 | 73 |
74 /** | 74 /** |
75 * @param {!WebInspector.UISourceCode} uiSourceCode | 75 * @param {!WebInspector.UISourceCode} uiSourceCode |
76 */ | 76 */ |
77 revealUISourceCode: function(uiSourceCode) | 77 revealUISourceCode: function(uiSourceCode) |
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
195 /** | 195 /** |
196 * @override | 196 * @override |
197 */ | 197 */ |
198 sourceDeleted: function(uiSourceCode) | 198 sourceDeleted: function(uiSourceCode) |
199 { | 199 { |
200 this._handleRemoveSnippet(uiSourceCode); | 200 this._handleRemoveSnippet(uiSourceCode); |
201 }, | 201 }, |
202 | 202 |
203 __proto__: WebInspector.NavigatorView.prototype | 203 __proto__: WebInspector.NavigatorView.prototype |
204 } | 204 } |
OLD | NEW |