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

Unified Diff: Source/WebCore/inspector/front-end/ShortcutsScreen.js

Issue 11413082: Merge 134944 - Web Inspector: Workaround to show shortcuts for panels that hasn't been loaded. (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/1312/
Patch Set: Created 8 years, 1 month 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | Source/WebCore/inspector/front-end/inspector.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/WebCore/inspector/front-end/ShortcutsScreen.js
===================================================================
--- Source/WebCore/inspector/front-end/ShortcutsScreen.js (revision 135261)
+++ Source/WebCore/inspector/front-end/ShortcutsScreen.js (working copy)
@@ -31,9 +31,10 @@
/**
* @constructor
*/
-WebInspector.ShortcutsScreen = function()
+WebInspector.ShortcutsScreen = function(finishShortcutsRegistrationCallback)
{
this._sections = {};
+ this._finishShortcutsRegistrationCallback = finishShortcutsRegistrationCallback;
}
WebInspector.ShortcutsScreen.prototype = {
@@ -47,6 +48,10 @@
createShortcutsTabView: function()
{
+ if (this._finishShortcutsRegistrationCallback)
+ this._finishShortcutsRegistrationCallback();
+ delete this._finishShortcutsRegistrationCallback;
+
var orderedSections = [];
for (var section in this._sections)
orderedSections.push(this._sections[section]);
« no previous file with comments | « no previous file | Source/WebCore/inspector/front-end/inspector.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698