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

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

Issue 170273003: DevTools: Implement extensions-based shortcut bindings (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 10 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) 2013 Google Inc. All rights reserved. 2 * Copyright (C) 2013 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 715 matching lines...) Expand 10 before | Expand all | Expand 10 after
726 726
727 resize: function() 727 resize: function()
728 { 728 {
729 if (this._settingsScreen && this._settingsScreen.isShowing()) 729 if (this._settingsScreen && this._settingsScreen.isShowing())
730 this._settingsScreen.doResize(); 730 this._settingsScreen.doResize();
731 } 731 }
732 } 732 }
733 733
734 /** 734 /**
735 * @constructor 735 * @constructor
736 * @implements {WebInspector.ActionDelegate}
737 */
738 WebInspector.SettingsController.SettingsScreenActionDelegate = function() { }
739
740 WebInspector.SettingsController.SettingsScreenActionDelegate.prototype = {
741 /**
742 * @param {!KeyboardEvent=} keyEvent
743 * @return {boolean}
744 */
745 handleAction: function(keyEvent)
746 {
747 WebInspector.settingsController.showSettingsScreen(!!keyEvent ? WebInspe ctor.SettingsScreen.Tabs.General : undefined);
748 return true;
749 }
750 }
751
752 /**
753 * @constructor
736 * @extends {WebInspector.Object} 754 * @extends {WebInspector.Object}
737 * @param {function(!Element, string, ?string)} itemRenderer 755 * @param {function(!Element, string, ?string)} itemRenderer
738 */ 756 */
739 WebInspector.SettingsList = function(columns, itemRenderer) 757 WebInspector.SettingsList = function(columns, itemRenderer)
740 { 758 {
741 this.element = document.createElement("div"); 759 this.element = document.createElement("div");
742 this.element.classList.add("settings-list"); 760 this.element.classList.add("settings-list");
743 this.element.tabIndex = -1; 761 this.element.tabIndex = -1;
744 this._itemRenderer = itemRenderer; 762 this._itemRenderer = itemRenderer;
745 this._listItems = {}; 763 this._listItems = {};
(...skipping 367 matching lines...) Expand 10 before | Expand all | Expand 10 after
1113 var inputElement = this._addInputElements[columnId]; 1131 var inputElement = this._addInputElements[columnId];
1114 inputElement.value = ""; 1132 inputElement.value = "";
1115 } 1133 }
1116 }, 1134 },
1117 1135
1118 __proto__: WebInspector.SettingsList.prototype 1136 __proto__: WebInspector.SettingsList.prototype
1119 } 1137 }
1120 1138
1121 /** @type {!WebInspector.SettingsController} */ 1139 /** @type {!WebInspector.SettingsController} */
1122 WebInspector.settingsController; 1140 WebInspector.settingsController;
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698