| OLD | NEW |
| 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 399 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 410 var leftCorner = this.textEditor.cursorPositionToCoordinates(lineNumber, tok
en.startColumn); | 410 var leftCorner = this.textEditor.cursorPositionToCoordinates(lineNumber, tok
en.startColumn); |
| 411 var rightCorner = this.textEditor.cursorPositionToCoordinates(lineNumber, to
ken.endColumn - 1); | 411 var rightCorner = this.textEditor.cursorPositionToCoordinates(lineNumber, to
ken.endColumn - 1); |
| 412 var anchorBox = new AnchorBox(leftCorner.x, leftCorner.y, rightCorner.x - le
ftCorner.x, leftCorner.height); | 412 var anchorBox = new AnchorBox(leftCorner.x, leftCorner.y, rightCorner.x - le
ftCorner.x, leftCorner.height); |
| 413 | 413 |
| 414 anchorBox.highlight = {lineNumber: lineNumber, startColumn: token.startColum
n, endColumn: token.endColumn - 1}; | 414 anchorBox.highlight = {lineNumber: lineNumber, startColumn: token.startColum
n, endColumn: token.endColumn - 1}; |
| 415 | 415 |
| 416 return anchorBox; | 416 return anchorBox; |
| 417 } | 417 } |
| 418 | 418 |
| 419 _resolveObjectForPopover(anchorBox, showCallback, objectGroupName) { | 419 _resolveObjectForPopover(anchorBox, showCallback, objectGroupName) { |
| 420 var target = UI.context.flavor(SDK.Target); | |
| 421 var selectedCallFrame = UI.context.flavor(SDK.DebuggerModel.CallFrame); | 420 var selectedCallFrame = UI.context.flavor(SDK.DebuggerModel.CallFrame); |
| 422 if (!selectedCallFrame) { | 421 if (!selectedCallFrame) { |
| 423 this._popoverHelper.hidePopover(); | 422 this._popoverHelper.hidePopover(); |
| 424 return; | 423 return; |
| 425 } | 424 } |
| 426 var lineNumber = anchorBox.highlight.lineNumber; | 425 var lineNumber = anchorBox.highlight.lineNumber; |
| 427 var startHighlight = anchorBox.highlight.startColumn; | 426 var startHighlight = anchorBox.highlight.startColumn; |
| 428 var endHighlight = anchorBox.highlight.endColumn; | 427 var endHighlight = anchorBox.highlight.endColumn; |
| 429 var line = this.textEditor.line(lineNumber); | 428 var line = this.textEditor.line(lineNumber); |
| 430 if (!anchorBox.forSelection) { | 429 if (!anchorBox.forSelection) { |
| (...skipping 947 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1378 hide() { | 1377 hide() { |
| 1379 if (!this.bookmark) | 1378 if (!this.bookmark) |
| 1380 return; | 1379 return; |
| 1381 this.bookmark.clear(); | 1380 this.bookmark.clear(); |
| 1382 this.bookmark = null; | 1381 this.bookmark = null; |
| 1383 } | 1382 } |
| 1384 }; | 1383 }; |
| 1385 | 1384 |
| 1386 Sources.JavaScriptSourceFrame.BreakpointDecoration.bookmarkSymbol = Symbol('book
mark'); | 1385 Sources.JavaScriptSourceFrame.BreakpointDecoration.bookmarkSymbol = Symbol('book
mark'); |
| 1387 Sources.JavaScriptSourceFrame.BreakpointDecoration._elementSymbolForTest = Symbo
l('element'); | 1386 Sources.JavaScriptSourceFrame.BreakpointDecoration._elementSymbolForTest = Symbo
l('element'); |
| OLD | NEW |