OLD | NEW |
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 Loading... |
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 Loading... |
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; |
OLD | NEW |