OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2013 Google Inc. All rights reserved. | 2 * Copyright (C) 2013 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 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
74 this._layerTreeOutline.focus(); | 74 this._layerTreeOutline.focus(); |
75 } | 75 } |
76 | 76 |
77 /** | 77 /** |
78 * @override | 78 * @override |
79 */ | 79 */ |
80 wasShown() { | 80 wasShown() { |
81 super.wasShown(); | 81 super.wasShown(); |
82 if (this._model) | 82 if (this._model) |
83 this._model.enable(); | 83 this._model.enable(); |
84 this._layerTreeOutline.focus(); | |
85 } | 84 } |
86 | 85 |
87 /** | 86 /** |
88 * @override | 87 * @override |
89 */ | 88 */ |
90 willHide() { | 89 willHide() { |
91 if (this._model) | 90 if (this._model) |
92 this._model.disable(); | 91 this._model.disable(); |
93 super.willHide(); | 92 super.willHide(); |
94 } | 93 } |
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
189 */ | 188 */ |
190 _onScaleChanged(event) { | 189 _onScaleChanged(event) { |
191 this._paintProfilerView.setScale(/** @type {number} */ (event.data)); | 190 this._paintProfilerView.setScale(/** @type {number} */ (event.data)); |
192 } | 191 } |
193 }; | 192 }; |
194 | 193 |
195 Layers.LayersPanel.DetailsViewTabs = { | 194 Layers.LayersPanel.DetailsViewTabs = { |
196 Details: 'details', | 195 Details: 'details', |
197 Profiler: 'profiler' | 196 Profiler: 'profiler' |
198 }; | 197 }; |
OLD | NEW |