Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(292)

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/layers/LayersPanel.js

Issue 2819863004: DevTools: Don't focus layers panel when it is shown (Closed)
Patch Set: Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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 };
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698