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

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

Issue 405803004: [DevTools] Move device mode button to AdvancedApp and add shortcut. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 5 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 | « Source/devtools/front_end/main/App.js ('k') | Source/devtools/front_end/main/module.json » ('j') | 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) 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 474 matching lines...) Expand 10 before | Expand all | Expand 10 after
485 485
486 keys = [ 486 keys = [
487 shortcut.makeDescriptor("[", shortcut.Modifiers.CtrlOrMeta | shortcu t.Modifiers.Alt), 487 shortcut.makeDescriptor("[", shortcut.Modifiers.CtrlOrMeta | shortcu t.Modifiers.Alt),
488 shortcut.makeDescriptor("]", shortcut.Modifiers.CtrlOrMeta | shortcu t.Modifiers.Alt) 488 shortcut.makeDescriptor("]", shortcut.Modifiers.CtrlOrMeta | shortcu t.Modifiers.Alt)
489 ]; 489 ];
490 section.addRelatedKeys(keys, WebInspector.UIString("Go back/forward in p anel history")); 490 section.addRelatedKeys(keys, WebInspector.UIString("Go back/forward in p anel history"));
491 491
492 var toggleConsoleLabel = WebInspector.UIString("Show console"); 492 var toggleConsoleLabel = WebInspector.UIString("Show console");
493 section.addKey(shortcut.makeDescriptor(shortcut.Keys.Tilde, shortcut.Mod ifiers.Ctrl), toggleConsoleLabel); 493 section.addKey(shortcut.makeDescriptor(shortcut.Keys.Tilde, shortcut.Mod ifiers.Ctrl), toggleConsoleLabel);
494 section.addKey(shortcut.makeDescriptor(shortcut.Keys.Esc), WebInspector. UIString("Toggle drawer")); 494 section.addKey(shortcut.makeDescriptor(shortcut.Keys.Esc), WebInspector. UIString("Toggle drawer"));
495 if (WebInspector.overridesSupport.responsiveDesignAvailable())
496 section.addKey(shortcut.makeDescriptor("M", shortcut.Modifiers.CtrlO rMeta | shortcut.Modifiers.Shift), WebInspector.UIString("Toggle device mode"));
495 section.addKey(shortcut.makeDescriptor("f", shortcut.Modifiers.CtrlOrMet a), WebInspector.UIString("Search")); 497 section.addKey(shortcut.makeDescriptor("f", shortcut.Modifiers.CtrlOrMet a), WebInspector.UIString("Search"));
496 498
497 var advancedSearchShortcutModifier = WebInspector.isMac() 499 var advancedSearchShortcutModifier = WebInspector.isMac()
498 ? WebInspector.KeyboardShortcut.Modifiers.Meta | WebInspector.Ke yboardShortcut.Modifiers.Alt 500 ? WebInspector.KeyboardShortcut.Modifiers.Meta | WebInspector.Ke yboardShortcut.Modifiers.Alt
499 : WebInspector.KeyboardShortcut.Modifiers.Ctrl | WebInspector.Ke yboardShortcut.Modifiers.Shift; 501 : WebInspector.KeyboardShortcut.Modifiers.Ctrl | WebInspector.Ke yboardShortcut.Modifiers.Shift;
500 var advancedSearchShortcut = shortcut.makeDescriptor("f", advancedSearch ShortcutModifier); 502 var advancedSearchShortcut = shortcut.makeDescriptor("f", advancedSearch ShortcutModifier);
501 section.addKey(advancedSearchShortcut, WebInspector.UIString("Search acr oss all sources")); 503 section.addKey(advancedSearchShortcut, WebInspector.UIString("Search acr oss all sources"));
502 504
503 var inspectElementModeShortcut = WebInspector.InspectElementModeControll er.createShortcut(); 505 var inspectElementModeShortcut = WebInspector.InspectElementModeControll er.createShortcut();
504 section.addKey(inspectElementModeShortcut, WebInspector.UIString("Select node to inspect")); 506 section.addKey(inspectElementModeShortcut, WebInspector.UIString("Select node to inspect"));
(...skipping 378 matching lines...) Expand 10 before | Expand all | Expand 10 after
883 885
884 WebInspector.Main.InspectedNodeRevealer.prototype = { 886 WebInspector.Main.InspectedNodeRevealer.prototype = {
885 /** 887 /**
886 * @param {!WebInspector.Event} event 888 * @param {!WebInspector.Event} event
887 */ 889 */
888 _inspectNode: function(event) 890 _inspectNode: function(event)
889 { 891 {
890 WebInspector.Revealer.reveal(/** @type {!WebInspector.DOMNode} */ (event .data)); 892 WebInspector.Revealer.reveal(/** @type {!WebInspector.DOMNode} */ (event .data));
891 } 893 }
892 } 894 }
OLDNEW
« no previous file with comments | « Source/devtools/front_end/main/App.js ('k') | Source/devtools/front_end/main/module.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698