OLD | NEW |
---|---|
1 /* | 1 /* |
2 * Copyright (C) 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2012 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 27 matching lines...) Expand all Loading... | |
38 WebInspector.settings.textEditorAutocompletion.addChangeListener(this._enabl eAutocompletionIfNeeded, this); | 38 WebInspector.settings.textEditorAutocompletion.addChangeListener(this._enabl eAutocompletionIfNeeded, this); |
39 this._enableAutocompletionIfNeeded(); | 39 this._enableAutocompletionIfNeeded(); |
40 | 40 |
41 this._uiSourceCode.addEventListener(WebInspector.UISourceCode.Events.Formatt edChanged, this._onFormattedChanged, this); | 41 this._uiSourceCode.addEventListener(WebInspector.UISourceCode.Events.Formatt edChanged, this._onFormattedChanged, this); |
42 this._uiSourceCode.addEventListener(WebInspector.UISourceCode.Events.Working CopyChanged, this._onWorkingCopyChanged, this); | 42 this._uiSourceCode.addEventListener(WebInspector.UISourceCode.Events.Working CopyChanged, this._onWorkingCopyChanged, this); |
43 this._uiSourceCode.addEventListener(WebInspector.UISourceCode.Events.Working CopyCommitted, this._onWorkingCopyCommitted, this); | 43 this._uiSourceCode.addEventListener(WebInspector.UISourceCode.Events.Working CopyCommitted, this._onWorkingCopyCommitted, this); |
44 this._updateStyle(); | 44 this._updateStyle(); |
45 } | 45 } |
46 | 46 |
47 WebInspector.UISourceCodeFrame.prototype = { | 47 WebInspector.UISourceCodeFrame.prototype = { |
48 /** | |
49 * @return {!WebInspector.UISourceCode} | |
50 */ | |
51 sourceCode: function() | |
vsevik
2014/01/17 16:30:01
uiSourceCode
lushnikov
2014/01/17 17:33:53
Done.
| |
52 { | |
53 return this._uiSourceCode; | |
54 }, | |
55 | |
48 _enableAutocompletionIfNeeded: function() | 56 _enableAutocompletionIfNeeded: function() |
49 { | 57 { |
50 this.textEditor.setCompletionDictionary(WebInspector.settings.textEditor Autocompletion.get() ? new WebInspector.SampleCompletionDictionary() : null); | 58 this.textEditor.setCompletionDictionary(WebInspector.settings.textEditor Autocompletion.get() ? new WebInspector.SampleCompletionDictionary() : null); |
51 }, | 59 }, |
52 | 60 |
53 wasShown: function() | 61 wasShown: function() |
54 { | 62 { |
55 WebInspector.SourceFrame.prototype.wasShown.call(this); | 63 WebInspector.SourceFrame.prototype.wasShown.call(this); |
56 this._boundWindowFocused = this._windowFocused.bind(this); | 64 this._boundWindowFocused = this._windowFocused.bind(this); |
57 window.addEventListener("focus", this._boundWindowFocused, false); | 65 window.addEventListener("focus", this._boundWindowFocused, false); |
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
196 contextMenu.appendSeparator(); | 204 contextMenu.appendSeparator(); |
197 }, | 205 }, |
198 | 206 |
199 dispose: function() | 207 dispose: function() |
200 { | 208 { |
201 this.detach(); | 209 this.detach(); |
202 }, | 210 }, |
203 | 211 |
204 __proto__: WebInspector.SourceFrame.prototype | 212 __proto__: WebInspector.SourceFrame.prototype |
205 } | 213 } |
OLD | NEW |