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

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

Issue 2560043005: DevTools: Remove unused variables. Disallow unused variables with eslint (Closed)
Patch Set: Created 4 years 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 * * 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 393 matching lines...) Expand 10 before | Expand all | Expand 10 after
404 var leftCorner = this.textEditor.cursorPositionToCoordinates(lineNumber, tok en.startColumn); 404 var leftCorner = this.textEditor.cursorPositionToCoordinates(lineNumber, tok en.startColumn);
405 var rightCorner = this.textEditor.cursorPositionToCoordinates(lineNumber, to ken.endColumn - 1); 405 var rightCorner = this.textEditor.cursorPositionToCoordinates(lineNumber, to ken.endColumn - 1);
406 var anchorBox = new AnchorBox(leftCorner.x, leftCorner.y, rightCorner.x - le ftCorner.x, leftCorner.height); 406 var anchorBox = new AnchorBox(leftCorner.x, leftCorner.y, rightCorner.x - le ftCorner.x, leftCorner.height);
407 407
408 anchorBox.highlight = {lineNumber: lineNumber, startColumn: token.startColum n, endColumn: token.endColumn - 1}; 408 anchorBox.highlight = {lineNumber: lineNumber, startColumn: token.startColum n, endColumn: token.endColumn - 1};
409 409
410 return anchorBox; 410 return anchorBox;
411 } 411 }
412 412
413 _resolveObjectForPopover(anchorBox, showCallback, objectGroupName) { 413 _resolveObjectForPopover(anchorBox, showCallback, objectGroupName) {
414 var target = UI.context.flavor(SDK.Target);
415 var selectedCallFrame = UI.context.flavor(SDK.DebuggerModel.CallFrame); 414 var selectedCallFrame = UI.context.flavor(SDK.DebuggerModel.CallFrame);
416 if (!selectedCallFrame) { 415 if (!selectedCallFrame) {
417 this._popoverHelper.hidePopover(); 416 this._popoverHelper.hidePopover();
418 return; 417 return;
419 } 418 }
420 var lineNumber = anchorBox.highlight.lineNumber; 419 var lineNumber = anchorBox.highlight.lineNumber;
421 var startHighlight = anchorBox.highlight.startColumn; 420 var startHighlight = anchorBox.highlight.startColumn;
422 var endHighlight = anchorBox.highlight.endColumn; 421 var endHighlight = anchorBox.highlight.endColumn;
423 var line = this.textEditor.line(lineNumber); 422 var line = this.textEditor.line(lineNumber);
424 if (!anchorBox.forSelection) { 423 if (!anchorBox.forSelection) {
(...skipping 947 matching lines...) Expand 10 before | Expand all | Expand 10 after
1372 hide() { 1371 hide() {
1373 if (!this.bookmark) 1372 if (!this.bookmark)
1374 return; 1373 return;
1375 this.bookmark.clear(); 1374 this.bookmark.clear();
1376 this.bookmark = null; 1375 this.bookmark = null;
1377 } 1376 }
1378 }; 1377 };
1379 1378
1380 Sources.JavaScriptSourceFrame.BreakpointDecoration.bookmarkSymbol = Symbol('book mark'); 1379 Sources.JavaScriptSourceFrame.BreakpointDecoration.bookmarkSymbol = Symbol('book mark');
1381 Sources.JavaScriptSourceFrame.BreakpointDecoration._elementSymbolForTest = Symbo l('element'); 1380 Sources.JavaScriptSourceFrame.BreakpointDecoration._elementSymbolForTest = Symbo l('element');
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698