| OLD | NEW |
| 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 646 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 657 WebInspector.Main.SearchActionDelegate = function() | 657 WebInspector.Main.SearchActionDelegate = function() |
| 658 { | 658 { |
| 659 } | 659 } |
| 660 | 660 |
| 661 WebInspector.Main.SearchActionDelegate.prototype = { | 661 WebInspector.Main.SearchActionDelegate.prototype = { |
| 662 /** | 662 /** |
| 663 * @override | 663 * @override |
| 664 * @param {!WebInspector.Context} context | 664 * @param {!WebInspector.Context} context |
| 665 * @param {string} actionId | 665 * @param {string} actionId |
| 666 * @return {boolean} | 666 * @return {boolean} |
| 667 * @suppressGlobalPropertiesCheck |
| 667 */ | 668 */ |
| 668 handleAction: function(context, actionId) | 669 handleAction: function(context, actionId) |
| 669 { | 670 { |
| 670 var searchableView = WebInspector.SearchableView.fromElement(WebInspecto
r.currentFocusElement()) || WebInspector.inspectorView.currentPanel().searchable
View(); | 671 var searchableView = WebInspector.SearchableView.fromElement(document.de
epActiveElement()) || WebInspector.inspectorView.currentPanel().searchableView()
; |
| 671 if (!searchableView) | 672 if (!searchableView) |
| 672 return false; | 673 return false; |
| 673 switch (actionId) { | 674 switch (actionId) { |
| 674 case "main.search-in-panel.find": | 675 case "main.search-in-panel.find": |
| 675 return searchableView.handleFindShortcut(); | 676 return searchableView.handleFindShortcut(); |
| 676 case "main.search-in-panel.cancel": | 677 case "main.search-in-panel.cancel": |
| 677 return searchableView.handleCancelSearchShortcut(); | 678 return searchableView.handleCancelSearchShortcut(); |
| 678 case "main.search-in-panel.find-next": | 679 case "main.search-in-panel.find-next": |
| 679 return searchableView.handleFindNextShortcut(); | 680 return searchableView.handleFindNextShortcut(); |
| 680 case "main.search-in-panel.find-previous": | 681 case "main.search-in-panel.find-previous": |
| (...skipping 426 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1107 * @override | 1108 * @override |
| 1108 * @return {?Element} | 1109 * @return {?Element} |
| 1109 */ | 1110 */ |
| 1110 settingElement: function() | 1111 settingElement: function() |
| 1111 { | 1112 { |
| 1112 return WebInspector.SettingsUI.createSettingCheckbox(WebInspector.UIStri
ng("Show rulers"), WebInspector.moduleSetting("showMetricsRulers")); | 1113 return WebInspector.SettingsUI.createSettingCheckbox(WebInspector.UIStri
ng("Show rulers"), WebInspector.moduleSetting("showMetricsRulers")); |
| 1113 } | 1114 } |
| 1114 } | 1115 } |
| 1115 | 1116 |
| 1116 new WebInspector.Main(); | 1117 new WebInspector.Main(); |
| OLD | NEW |