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 * 1. Redistributions of source code must retain the above copyright | 8 * 1. 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 * | 10 * |
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
86 { | 86 { |
87 if (!WebInspector.inspectElementModeController) | 87 if (!WebInspector.inspectElementModeController) |
88 return false; | 88 return false; |
89 WebInspector.inspectElementModeController._toggleSearch(); | 89 WebInspector.inspectElementModeController._toggleSearch(); |
90 return true; | 90 return true; |
91 } | 91 } |
92 } | 92 } |
93 | 93 |
94 /** | 94 /** |
95 * @constructor | 95 * @constructor |
96 * @implements {WebInspector.StatusBarButton.Provider} | 96 * @implements {WebInspector.StatusBarItem.Provider} |
97 */ | 97 */ |
98 WebInspector.InspectElementModeController.ToggleButtonProvider = function() | 98 WebInspector.InspectElementModeController.ToggleButtonProvider = function() |
99 { | 99 { |
100 } | 100 } |
101 | 101 |
102 WebInspector.InspectElementModeController.ToggleButtonProvider.prototype = { | 102 WebInspector.InspectElementModeController.ToggleButtonProvider.prototype = { |
103 /** | 103 /** |
104 * @return {?WebInspector.StatusBarButton} | 104 * @return {?WebInspector.StatusBarItem} |
105 */ | 105 */ |
106 button: function() | 106 item: function() |
107 { | 107 { |
108 if (!WebInspector.inspectElementModeController) | 108 if (!WebInspector.inspectElementModeController) |
109 return null; | 109 return null; |
110 | 110 |
111 return WebInspector.inspectElementModeController._toggleSearchButton; | 111 return WebInspector.inspectElementModeController._toggleSearchButton; |
112 } | 112 } |
113 } | 113 } |
114 | 114 |
115 /** @type {?WebInspector.InspectElementModeController} */ | 115 /** @type {?WebInspector.InspectElementModeController} */ |
116 WebInspector.inspectElementModeController = null; | 116 WebInspector.inspectElementModeController = null; |
OLD | NEW |