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

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/sources/TabbedEditorContainer.js

Issue 1907263002: DevTools: Fix all outstanding JavaScript style issues. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: remove yoda disable. fix throw parens Created 4 years, 8 months 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 /* 1 /*
2 * Copyright (C) 2011 Google Inc. All rights reserved. 2 * Copyright (C) 2011 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 516 matching lines...) Expand 10 before | Expand all | Expand 10 after
527 this.selectionRange = selectionRange; 527 this.selectionRange = selectionRange;
528 this.scrollLineNumber = scrollLineNumber; 528 this.scrollLineNumber = scrollLineNumber;
529 } 529 }
530 530
531 WebInspector.TabbedEditorContainer.HistoryItem.serializableUrlLengthLimit = 4096 ; 531 WebInspector.TabbedEditorContainer.HistoryItem.serializableUrlLengthLimit = 4096 ;
532 532
533 /** 533 /**
534 * @param {!Object} serializedHistoryItem 534 * @param {!Object} serializedHistoryItem
535 * @return {!WebInspector.TabbedEditorContainer.HistoryItem} 535 * @return {!WebInspector.TabbedEditorContainer.HistoryItem}
536 */ 536 */
537 WebInspector.TabbedEditorContainer.HistoryItem.fromObject = function (serialized HistoryItem) 537 WebInspector.TabbedEditorContainer.HistoryItem.fromObject = function(serializedH istoryItem)
538 { 538 {
539 var selectionRange = serializedHistoryItem.selectionRange ? WebInspector.Tex tRange.fromObject(serializedHistoryItem.selectionRange) : undefined; 539 var selectionRange = serializedHistoryItem.selectionRange ? WebInspector.Tex tRange.fromObject(serializedHistoryItem.selectionRange) : undefined;
540 return new WebInspector.TabbedEditorContainer.HistoryItem(serializedHistoryI tem.url, selectionRange, serializedHistoryItem.scrollLineNumber); 540 return new WebInspector.TabbedEditorContainer.HistoryItem(serializedHistoryI tem.url, selectionRange, serializedHistoryItem.scrollLineNumber);
541 } 541 }
542 542
543 WebInspector.TabbedEditorContainer.HistoryItem.prototype = { 543 WebInspector.TabbedEditorContainer.HistoryItem.prototype = {
544 /** 544 /**
545 * @return {?Object} 545 * @return {?Object}
546 */ 546 */
547 serializeToObject: function() 547 serializeToObject: function()
(...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after
735 /** 735 /**
736 * @override 736 * @override
737 * @param {string} tabId 737 * @param {string} tabId
738 * @param {!WebInspector.ContextMenu} contextMenu 738 * @param {!WebInspector.ContextMenu} contextMenu
739 */ 739 */
740 onContextMenu: function(tabId, contextMenu) 740 onContextMenu: function(tabId, contextMenu)
741 { 741 {
742 this._editorContainer._onContextMenu(tabId, contextMenu); 742 this._editorContainer._onContextMenu(tabId, contextMenu);
743 } 743 }
744 } 744 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698