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

Side by Side Diff: Source/devtools/front_end/sources/SourcesPanel.js

Issue 426563004: DevTools: Do not focus navigator on sources panel by default. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 4 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 | Annotate | Revision Log
« 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) 2008 Apple Inc. All Rights Reserved. 2 * Copyright (C) 2008 Apple Inc. All Rights Reserved.
3 * Copyright (C) 2011 Google Inc. All rights reserved. 3 * Copyright (C) 2011 Google Inc. All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
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 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after
179 { 179 {
180 var target = /** @type {?WebInspector.Target} */ (event.data); 180 var target = /** @type {?WebInspector.Target} */ (event.data);
181 this._setTarget(target); 181 this._setTarget(target);
182 }, 182 },
183 183
184 /** 184 /**
185 * @return {!Element} 185 * @return {!Element}
186 */ 186 */
187 defaultFocusedElement: function() 187 defaultFocusedElement: function()
188 { 188 {
189 return this._sourcesView.defaultFocusedElement() || this._navigator.view .defaultFocusedElement(); 189 return this._sourcesView.defaultFocusedElement();
190 }, 190 },
191 191
192 /** 192 /**
193 * @return {boolean} 193 * @return {boolean}
194 */ 194 */
195 paused: function() 195 paused: function()
196 { 196 {
197 return this._paused; 197 return this._paused;
198 }, 198 },
199 199
(...skipping 1250 matching lines...) Expand 10 before | Expand all | Expand 10 after
1450 */ 1450 */
1451 handleAction: function() 1451 handleAction: function()
1452 { 1452 {
1453 var panel = /** @type {?WebInspector.SourcesPanel} */ (WebInspector.insp ectorView.showPanel("sources")); 1453 var panel = /** @type {?WebInspector.SourcesPanel} */ (WebInspector.insp ectorView.showPanel("sources"));
1454 if (!panel) 1454 if (!panel)
1455 return false; 1455 return false;
1456 panel.togglePause(); 1456 panel.togglePause();
1457 return true; 1457 return true;
1458 } 1458 }
1459 } 1459 }
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