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

Side by Side Diff: Source/devtools/front_end/UISourceCodeFrame.js

Issue 23474010: DevTools: "Jump between editing locations" experiment (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: address @vsevik comments Created 6 years, 11 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 | Annotate | Revision Log
OLDNEW
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
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
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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698