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

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

Issue 213423010: DevTools: Migrate General tab settings to extensions (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 9 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 718 matching lines...) Expand 10 before | Expand all | Expand 10 after
729 /** 729 /**
730 * @return {boolean} 730 * @return {boolean}
731 */ 731 */
732 handleAction: function() 732 handleAction: function()
733 { 733 {
734 WebInspector.reload(); 734 WebInspector.reload();
735 return true; 735 return true;
736 } 736 }
737 } 737 }
738 738
739 /**
740 * @constructor
741 * @extends {WebInspector.UISettingDelegate}
742 */
743 WebInspector.Main.SplitVerticallySettingDelegate = function()
744 {
745 WebInspector.UISettingDelegate.call(this);
746 }
747
748 WebInspector.Main.SplitVerticallySettingDelegate.prototype = {
749 /**
750 * @return {!Array.<string>}
751 */
752 titleTemplateArguments: function()
753 {
754 return [WebInspector.experimentsSettings.dockToLeft.isEnabled() ? "left or right" : "right"];
pfeldman 2014/03/27 15:27:14 Dock to left is to be removed. Feel free to restor
apavlov 2014/03/28 10:21:23 Done.
755 },
756
757 __proto__: WebInspector.UISettingDelegate.prototype
758 }
759
760 /**
761 * @constructor
762 * @extends {WebInspector.UISettingDelegate}
763 */
764 WebInspector.Main.ShortcutPanelSwitchSettingDelegate = function()
765 {
766 WebInspector.UISettingDelegate.call(this);
767 }
768
769 WebInspector.Main.ShortcutPanelSwitchSettingDelegate.prototype = {
770 /**
771 * @return {!Array.<string>}
772 */
773 titleTemplateArguments: function()
pfeldman 2014/03/27 15:27:14 This is too complex. You should provide entire ele
apavlov 2014/03/28 10:21:23 Done.
774 {
775 return [WebInspector.isMac() ? "Cmd" : "Ctrl"];
776 },
777
778 __proto__: WebInspector.UISettingDelegate.prototype
779 }
780
739 new WebInspector.Main(); 781 new WebInspector.Main();
740 782
741 window.DEBUG = true; 783 window.DEBUG = true;
742 784
743 // These methods are added for backwards compatibility with Devtools CodeSchool extension. 785 // These methods are added for backwards compatibility with Devtools CodeSchool extension.
744 // DO NOT REMOVE 786 // DO NOT REMOVE
745 787
746 WebInspector.__defineGetter__("inspectedPageURL", function() 788 WebInspector.__defineGetter__("inspectedPageURL", function()
747 { 789 {
748 return WebInspector.resourceTreeModel.inspectedPageURL(); 790 return WebInspector.resourceTreeModel.inspectedPageURL();
749 }); 791 });
750 792
751 WebInspector.panel = function(name) 793 WebInspector.panel = function(name)
752 { 794 {
753 return WebInspector.inspectorView.panel(name); 795 return WebInspector.inspectorView.panel(name);
754 } 796 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698