OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) IBM Corp. 2009 All rights reserved. | 2 * Copyright (C) IBM Corp. 2009 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 166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
177 this.update(); | 177 this.update(); |
178 } | 178 } |
179 | 179 |
180 /** | 180 /** |
181 * @override | 181 * @override |
182 * @param {!UI.Context} context | 182 * @param {!UI.Context} context |
183 * @param {string} actionId | 183 * @param {string} actionId |
184 * @return {boolean} | 184 * @return {boolean} |
185 */ | 185 */ |
186 handleAction(context, actionId) { | 186 handleAction(context, actionId) { |
187 var frame = UI.context.flavor(Sources.UISourceCodeFrame); | 187 var frame = UI.context.flavor(SourceFrame.UISourceCodeFrame); |
188 if (!frame) | 188 if (!frame) |
189 return false; | 189 return false; |
190 var text = frame.textEditor.text(frame.textEditor.selection()); | 190 var text = frame.textEditor.text(frame.textEditor.selection()); |
191 UI.viewManager.showView('sources.watch'); | 191 UI.viewManager.showView('sources.watch'); |
192 this.doUpdate(); | 192 this.doUpdate(); |
193 this._createWatchExpression(text); | 193 this._createWatchExpression(text); |
194 this._saveExpressions(); | 194 this._saveExpressions(); |
195 return true; | 195 return true; |
196 } | 196 } |
197 | 197 |
(...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
417 InspectorFrontendHost.copyText(this._valueElement.textContent); | 417 InspectorFrontendHost.copyText(this._valueElement.textContent); |
418 } | 418 } |
419 }; | 419 }; |
420 | 420 |
421 Sources.WatchExpression._watchObjectGroupId = 'watch-group'; | 421 Sources.WatchExpression._watchObjectGroupId = 'watch-group'; |
422 | 422 |
423 /** @enum {symbol} */ | 423 /** @enum {symbol} */ |
424 Sources.WatchExpression.Events = { | 424 Sources.WatchExpression.Events = { |
425 ExpressionUpdated: Symbol('ExpressionUpdated') | 425 ExpressionUpdated: Symbol('ExpressionUpdated') |
426 }; | 426 }; |
OLD | NEW |