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

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: Rebased 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
« no previous file with comments | « Source/devtools/front_end/ModuleManager.js ('k') | Source/devtools/front_end/SourcesPanel.js » ('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) 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 705 matching lines...) Expand 10 before | Expand all | Expand 10 after
716 716
717 resize: function() 717 resize: function()
718 { 718 {
719 if (this._settingsScreen && this._settingsScreen.isShowing()) 719 if (this._settingsScreen && this._settingsScreen.isShowing())
720 this._settingsScreen.doResize(); 720 this._settingsScreen.doResize();
721 } 721 }
722 } 722 }
723 723
724 /** 724 /**
725 * @constructor 725 * @constructor
726 * @implements {WebInspector.ActionDelegate}
727 */
728 WebInspector.SettingsController.SettingsScreenActionDelegate = function() { }
729
730 WebInspector.SettingsController.SettingsScreenActionDelegate.prototype = {
731 /**
732 * @return {boolean}
733 */
734 handleAction: function()
735 {
736 WebInspector.settingsController.showSettingsScreen(WebInspector.Settings Screen.Tabs.General);
737 return true;
738 }
739 }
740
741 /**
742 * @constructor
726 * @extends {WebInspector.Object} 743 * @extends {WebInspector.Object}
727 * @param {function(!Element, string, ?string)} itemRenderer 744 * @param {function(!Element, string, ?string)} itemRenderer
728 */ 745 */
729 WebInspector.SettingsList = function(columns, itemRenderer) 746 WebInspector.SettingsList = function(columns, itemRenderer)
730 { 747 {
731 this.element = document.createElement("div"); 748 this.element = document.createElement("div");
732 this.element.classList.add("settings-list"); 749 this.element.classList.add("settings-list");
733 this.element.tabIndex = -1; 750 this.element.tabIndex = -1;
734 this._itemRenderer = itemRenderer; 751 this._itemRenderer = itemRenderer;
735 this._listItems = {}; 752 this._listItems = {};
(...skipping 367 matching lines...) Expand 10 before | Expand all | Expand 10 after
1103 var inputElement = this._addInputElements[columnId]; 1120 var inputElement = this._addInputElements[columnId];
1104 inputElement.value = ""; 1121 inputElement.value = "";
1105 } 1122 }
1106 }, 1123 },
1107 1124
1108 __proto__: WebInspector.SettingsList.prototype 1125 __proto__: WebInspector.SettingsList.prototype
1109 } 1126 }
1110 1127
1111 /** @type {!WebInspector.SettingsController} */ 1128 /** @type {!WebInspector.SettingsController} */
1112 WebInspector.settingsController; 1129 WebInspector.settingsController;
OLDNEW
« no previous file with comments | « Source/devtools/front_end/ModuleManager.js ('k') | Source/devtools/front_end/SourcesPanel.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698