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 29 matching lines...) Expand all Loading... | |
40 this._breakpointManager = WebInspector.breakpointManager; | 40 this._breakpointManager = WebInspector.breakpointManager; |
41 this._uiSourceCode = uiSourceCode; | 41 this._uiSourceCode = uiSourceCode; |
42 | 42 |
43 WebInspector.UISourceCodeFrame.call(this, uiSourceCode); | 43 WebInspector.UISourceCodeFrame.call(this, uiSourceCode); |
44 if (uiSourceCode.project().type() === WebInspector.projectTypes.Debugger) | 44 if (uiSourceCode.project().type() === WebInspector.projectTypes.Debugger) |
45 this.element.addStyleClass("source-frame-debugger-script"); | 45 this.element.addStyleClass("source-frame-debugger-script"); |
46 | 46 |
47 this._popoverHelper = new WebInspector.ObjectPopoverHelper(this.textEditor.e lement, | 47 this._popoverHelper = new WebInspector.ObjectPopoverHelper(this.textEditor.e lement, |
48 this._getPopoverAnchor.bind(this), this._resolveObjectForPopover.bin d(this), this._onHidePopover.bind(this), true); | 48 this._getPopoverAnchor.bind(this), this._resolveObjectForPopover.bin d(this), this._onHidePopover.bind(this), true); |
49 | 49 |
50 if (WebInspector.experimentsSettings.textEditorAutocomplete.isEnabled()) | |
51 this.textEditor.setCompletionDictionary(new WebInspector.SampleCompletio nDictionary()); | |
vsevik
2013/05/24 16:32:34
Let's put this into UISourceCodeFrame.
| |
52 | |
50 this.textEditor.element.addEventListener("keydown", this._onKeyDown.bind(thi s), true); | 53 this.textEditor.element.addEventListener("keydown", this._onKeyDown.bind(thi s), true); |
51 | 54 |
52 this.textEditor.addEventListener(WebInspector.TextEditor.Events.GutterClick, this._handleGutterClick.bind(this), this); | 55 this.textEditor.addEventListener(WebInspector.TextEditor.Events.GutterClick, this._handleGutterClick.bind(this), this); |
53 | 56 |
54 this._breakpointManager.addEventListener(WebInspector.BreakpointManager.Even ts.BreakpointAdded, this._breakpointAdded, this); | 57 this._breakpointManager.addEventListener(WebInspector.BreakpointManager.Even ts.BreakpointAdded, this._breakpointAdded, this); |
55 this._breakpointManager.addEventListener(WebInspector.BreakpointManager.Even ts.BreakpointRemoved, this._breakpointRemoved, this); | 58 this._breakpointManager.addEventListener(WebInspector.BreakpointManager.Even ts.BreakpointRemoved, this._breakpointRemoved, this); |
56 | 59 |
57 this._uiSourceCode.addEventListener(WebInspector.UISourceCode.Events.Console MessageAdded, this._consoleMessageAdded, this); | 60 this._uiSourceCode.addEventListener(WebInspector.UISourceCode.Events.Console MessageAdded, this._consoleMessageAdded, this); |
58 this._uiSourceCode.addEventListener(WebInspector.UISourceCode.Events.Console MessageRemoved, this._consoleMessageRemoved, this); | 61 this._uiSourceCode.addEventListener(WebInspector.UISourceCode.Events.Console MessageRemoved, this._consoleMessageRemoved, this); |
59 this._uiSourceCode.addEventListener(WebInspector.UISourceCode.Events.Console MessagesCleared, this._consoleMessagesCleared, this); | 62 this._uiSourceCode.addEventListener(WebInspector.UISourceCode.Events.Console MessagesCleared, this._consoleMessagesCleared, this); |
(...skipping 535 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
595 this._uiSourceCode.removeEventListener(WebInspector.UISourceCode.Events. ConsoleMessageRemoved, this._consoleMessageRemoved, this); | 598 this._uiSourceCode.removeEventListener(WebInspector.UISourceCode.Events. ConsoleMessageRemoved, this._consoleMessageRemoved, this); |
596 this._uiSourceCode.removeEventListener(WebInspector.UISourceCode.Events. ConsoleMessagesCleared, this._consoleMessagesCleared, this); | 599 this._uiSourceCode.removeEventListener(WebInspector.UISourceCode.Events. ConsoleMessagesCleared, this._consoleMessagesCleared, this); |
597 this._uiSourceCode.removeEventListener(WebInspector.UISourceCode.Events. SourceMappingChanged, this._onSourceMappingChanged, this); | 600 this._uiSourceCode.removeEventListener(WebInspector.UISourceCode.Events. SourceMappingChanged, this._onSourceMappingChanged, this); |
598 this._uiSourceCode.removeEventListener(WebInspector.UISourceCode.Events. WorkingCopyChanged, this._workingCopyChanged, this); | 601 this._uiSourceCode.removeEventListener(WebInspector.UISourceCode.Events. WorkingCopyChanged, this._workingCopyChanged, this); |
599 this._uiSourceCode.removeEventListener(WebInspector.UISourceCode.Events. WorkingCopyCommitted, this._workingCopyCommitted, this); | 602 this._uiSourceCode.removeEventListener(WebInspector.UISourceCode.Events. WorkingCopyCommitted, this._workingCopyCommitted, this); |
600 WebInspector.UISourceCodeFrame.prototype.dispose.call(this); | 603 WebInspector.UISourceCodeFrame.prototype.dispose.call(this); |
601 }, | 604 }, |
602 | 605 |
603 __proto__: WebInspector.UISourceCodeFrame.prototype | 606 __proto__: WebInspector.UISourceCodeFrame.prototype |
604 } | 607 } |
OLD | NEW |