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

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/source_frame/SourcesTextEditor.js

Issue 2515763003: DevTools: use shorthand syntax in interface definitions. (Closed)
Patch Set: Created 4 years, 1 month 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
OLDNEW
1 // Copyright (c) 2016 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 /** 4 /**
5 * @unrestricted 5 * @unrestricted
6 */ 6 */
7 SourceFrame.SourcesTextEditor = class extends TextEditor.CodeMirrorTextEditor { 7 SourceFrame.SourcesTextEditor = class extends TextEditor.CodeMirrorTextEditor {
8 /** 8 /**
9 * @param {!SourceFrame.SourcesTextEditorDelegate} delegate 9 * @param {!SourceFrame.SourcesTextEditorDelegate} delegate
10 */ 10 */
(...skipping 613 matching lines...) Expand 10 before | Expand all | Expand 10 after
624 /** 624 /**
625 * @interface 625 * @interface
626 */ 626 */
627 SourceFrame.SourcesTextEditorDelegate = function() {}; 627 SourceFrame.SourcesTextEditorDelegate = function() {};
628 SourceFrame.SourcesTextEditorDelegate.prototype = { 628 SourceFrame.SourcesTextEditorDelegate.prototype = {
629 /** 629 /**
630 * @param {!UI.ContextMenu} contextMenu 630 * @param {!UI.ContextMenu} contextMenu
631 * @param {number} lineNumber 631 * @param {number} lineNumber
632 * @return {!Promise} 632 * @return {!Promise}
633 */ 633 */
634 populateLineGutterContextMenu: function(contextMenu, lineNumber) {}, 634 populateLineGutterContextMenu(contextMenu, lineNumber) {},
635 635
636 /** 636 /**
637 * @param {!UI.ContextMenu} contextMenu 637 * @param {!UI.ContextMenu} contextMenu
638 * @param {number} lineNumber 638 * @param {number} lineNumber
639 * @param {number} columnNumber 639 * @param {number} columnNumber
640 * @return {!Promise} 640 * @return {!Promise}
641 */ 641 */
642 populateTextAreaContextMenu: function(contextMenu, lineNumber, columnNumber) { }, 642 populateTextAreaContextMenu(contextMenu, lineNumber, columnNumber) {},
643 }; 643 };
644 644
645 /** 645 /**
646 * @param {!CodeMirror} codeMirror 646 * @param {!CodeMirror} codeMirror
647 */ 647 */
648 CodeMirror.commands.smartNewlineAndIndent = function(codeMirror) { 648 CodeMirror.commands.smartNewlineAndIndent = function(codeMirror) {
649 codeMirror.operation(innerSmartNewlineAndIndent.bind(null, codeMirror)); 649 codeMirror.operation(innerSmartNewlineAndIndent.bind(null, codeMirror));
650 function innerSmartNewlineAndIndent(codeMirror) { 650 function innerSmartNewlineAndIndent(codeMirror) {
651 var selections = codeMirror.listSelections(); 651 var selections = codeMirror.listSelections();
652 var replacements = []; 652 var replacements = [];
(...skipping 249 matching lines...) Expand 10 before | Expand all | Expand 10 after
902 */ 902 */
903 _setHighlighter(highlighter, selectionStart) { 903 _setHighlighter(highlighter, selectionStart) {
904 var overlayMode = {token: highlighter}; 904 var overlayMode = {token: highlighter};
905 this._codeMirror.addOverlay(overlayMode); 905 this._codeMirror.addOverlay(overlayMode);
906 this._highlightDescriptor = {overlay: overlayMode, selectionStart: selection Start}; 906 this._highlightDescriptor = {overlay: overlayMode, selectionStart: selection Start};
907 } 907 }
908 }; 908 };
909 909
910 SourceFrame.SourcesTextEditor.LinesToScanForIndentationGuessing = 1000; 910 SourceFrame.SourcesTextEditor.LinesToScanForIndentationGuessing = 1000;
911 SourceFrame.SourcesTextEditor.MaximumNumberOfWhitespacesPerSingleSpan = 16; 911 SourceFrame.SourcesTextEditor.MaximumNumberOfWhitespacesPerSingleSpan = 16;
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698