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

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

Issue 218613013: DevTools: Decouple shortcuts from actions, introduce shortcut contexts (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Address comments, handle Dialog key events in the glasspane keydown handler 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) 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 644 matching lines...) Expand 10 before | Expand all | Expand 10 after
655 } 655 }
656 656
657 /** 657 /**
658 * @constructor 658 * @constructor
659 * @implements {WebInspector.ActionDelegate} 659 * @implements {WebInspector.ActionDelegate}
660 */ 660 */
661 WebInspector.SettingsController.SettingsScreenActionDelegate = function() { } 661 WebInspector.SettingsController.SettingsScreenActionDelegate = function() { }
662 662
663 WebInspector.SettingsController.SettingsScreenActionDelegate.prototype = { 663 WebInspector.SettingsController.SettingsScreenActionDelegate.prototype = {
664 /** 664 /**
665 * @param {!WebInspector.Context} context
665 * @return {boolean} 666 * @return {boolean}
666 */ 667 */
667 handleAction: function() 668 handleAction: function(context)
668 { 669 {
669 WebInspector.settingsController.showSettingsScreen(WebInspector.Settings Screen.Tabs.General); 670 WebInspector.settingsController.showSettingsScreen(WebInspector.Settings Screen.Tabs.General);
670 return true; 671 return true;
671 } 672 }
672 } 673 }
673 674
674 /** 675 /**
675 * @constructor 676 * @constructor
676 * @extends {WebInspector.Object} 677 * @extends {WebInspector.Object}
677 * @param {function(!Element, string, ?string)} itemRenderer 678 * @param {function(!Element, string, ?string)} itemRenderer
(...skipping 375 matching lines...) Expand 10 before | Expand all | Expand 10 after
1053 var inputElement = this._addInputElements[columnId]; 1054 var inputElement = this._addInputElements[columnId];
1054 inputElement.value = ""; 1055 inputElement.value = "";
1055 } 1056 }
1056 }, 1057 },
1057 1058
1058 __proto__: WebInspector.SettingsList.prototype 1059 __proto__: WebInspector.SettingsList.prototype
1059 } 1060 }
1060 1061
1061 /** @type {!WebInspector.SettingsController} */ 1062 /** @type {!WebInspector.SettingsController} */
1062 WebInspector.settingsController; 1063 WebInspector.settingsController;
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698