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

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/ui/Drawer.js

Issue 2002803002: DevTools: allow focus to be restored to the drawer when dialog closes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address patch comments Created 4 years, 6 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2007, 2008 Apple Inc. All rights reserved. 2 * Copyright (C) 2007, 2008 Apple Inc. All rights reserved.
3 * Copyright (C) 2009 Joseph Pecoraro 3 * Copyright (C) 2009 Joseph Pecoraro
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 * 8 *
9 * 1. Redistributions of source code must retain the above copyright 9 * 1. Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
125 */ 125 */
126 _tabSelected: function(event) 126 _tabSelected: function(event)
127 { 127 {
128 this._firstTabSelected = true; 128 this._firstTabSelected = true;
129 var tabId = this._tabbedPane.selectedTabId; 129 var tabId = this._tabbedPane.selectedTabId;
130 if (tabId && event.data["isUserGesture"]) 130 if (tabId && event.data["isUserGesture"])
131 this._lastSelectedViewSetting.set(tabId); 131 this._lastSelectedViewSetting.set(tabId);
132 }, 132 },
133 133
134 /** 134 /**
135 * @override
136 * @return {!Element}
137 */
138 defaultFocusedElement: function()
139 {
140 return this._tabbedPane.defaultFocusedElement();
141 },
142
143 /**
135 * @return {?string} 144 * @return {?string}
136 */ 145 */
137 selectedViewId: function() 146 selectedViewId: function()
138 { 147 {
139 return this._tabbedPane.selectedTabId; 148 return this._tabbedPane.selectedTabId;
140 }, 149 },
141 150
142 initialPanelShown: function() 151 initialPanelShown: function()
143 { 152 {
144 this._initialPanelWasShown = true; 153 this._initialPanelWasShown = true;
145 }, 154 },
146 155
147 __proto__: WebInspector.VBox.prototype 156 __proto__: WebInspector.VBox.prototype
148 } 157 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698