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

Side by Side Diff: Source/devtools/front_end/Main.js

Issue 225873004: DevTools: Handle the F8 shortcut forwarded from the inspected page (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Add FIXME Created 6 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 | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2006, 2007, 2008 Apple Inc. All rights reserved. 2 * Copyright (C) 2006, 2007, 2008 Apple Inc. All rights reserved.
3 * Copyright (C) 2007 Matt Lilek (pewtermoose@gmail.com). 3 * Copyright (C) 2007 Matt Lilek (pewtermoose@gmail.com).
4 * Copyright (C) 2009 Joseph Pecoraro 4 * Copyright (C) 2009 Joseph Pecoraro
5 * 5 *
6 * Redistribution and use in source and binary forms, with or without 6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions 7 * modification, are permitted provided that the following conditions
8 * are met: 8 * are met:
9 * 9 *
10 * 1. Redistributions of source code must retain the above copyright 10 * 1. Redistributions of source code must retain the above copyright
(...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after
239 if (WebInspector.queryParam("toolbarColor") && WebInspector.queryParam(" textColor")) 239 if (WebInspector.queryParam("toolbarColor") && WebInspector.queryParam(" textColor"))
240 WebInspector.setToolbarColors(WebInspector.queryParam("toolbarColor" ), WebInspector.queryParam("textColor")); 240 WebInspector.setToolbarColors(WebInspector.queryParam("toolbarColor" ), WebInspector.queryParam("textColor"));
241 241
242 WebInspector.targetManager = new WebInspector.TargetManager(); 242 WebInspector.targetManager = new WebInspector.TargetManager();
243 WebInspector.targetManager.createTarget(connection, this._doLoadedDoneWi thCapabilities.bind(this)); 243 WebInspector.targetManager.createTarget(connection, this._doLoadedDoneWi thCapabilities.bind(this));
244 }, 244 },
245 245
246 _doLoadedDoneWithCapabilities: function(mainTarget) 246 _doLoadedDoneWithCapabilities: function(mainTarget)
247 { 247 {
248 new WebInspector.VersionController().updateVersion(); 248 new WebInspector.VersionController().updateVersion();
249 InspectorFrontendHost.setWhitelistedShortcuts(JSON.stringify([{keyCode: WebInspector.KeyboardShortcut.Keys.F8.code}]));
249 WebInspector.shortcutsScreen = new WebInspector.ShortcutsScreen(); 250 WebInspector.shortcutsScreen = new WebInspector.ShortcutsScreen();
250 this._registerShortcuts(); 251 this._registerShortcuts();
251 252
252 // set order of some sections explicitly 253 // set order of some sections explicitly
253 WebInspector.shortcutsScreen.section(WebInspector.UIString("Console")); 254 WebInspector.shortcutsScreen.section(WebInspector.UIString("Console"));
254 WebInspector.shortcutsScreen.section(WebInspector.UIString("Elements Pan el")); 255 WebInspector.shortcutsScreen.section(WebInspector.UIString("Elements Pan el"));
255 WebInspector.ShortcutsScreen.registerShortcuts(); 256 WebInspector.ShortcutsScreen.registerShortcuts();
256 257
257 if (WebInspector.experimentsSettings.workersInMainWindow.isEnabled()) 258 if (WebInspector.experimentsSettings.workersInMainWindow.isEnabled())
258 new WebInspector.WorkerTargetManager(mainTarget, WebInspector.target Manager); 259 new WebInspector.WorkerTargetManager(mainTarget, WebInspector.target Manager);
(...skipping 505 matching lines...) Expand 10 before | Expand all | Expand 10 after
764 765
765 WebInspector.__defineGetter__("inspectedPageURL", function() 766 WebInspector.__defineGetter__("inspectedPageURL", function()
766 { 767 {
767 return WebInspector.resourceTreeModel.inspectedPageURL(); 768 return WebInspector.resourceTreeModel.inspectedPageURL();
768 }); 769 });
769 770
770 WebInspector.panel = function(name) 771 WebInspector.panel = function(name)
771 { 772 {
772 return WebInspector.inspectorView.panel(name); 773 return WebInspector.inspectorView.panel(name);
773 } 774 }
OLDNEW
« no previous file with comments | « Source/devtools/front_end/InspectorFrontendHostStub.js ('k') | Source/devtools/front_end/SourcesPanel.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698