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

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

Issue 2567633003: [DevTools] Make SourceFrame.setEditable work. (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
« no previous file with comments | « third_party/WebKit/Source/devtools/front_end/source_frame/SourceFrame.js ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 254 matching lines...) Expand 10 before | Expand all | Expand 10 after
265 * @protected 265 * @protected
266 */ 266 */
267 onBindingChanged() { 267 onBindingChanged() {
268 // Overriden in subclasses. 268 // Overriden in subclasses.
269 } 269 }
270 270
271 _updateStyle() { 271 _updateStyle() {
272 this.element.classList.toggle( 272 this.element.classList.toggle(
273 'source-frame-unsaved-committed-changes', 273 'source-frame-unsaved-committed-changes',
274 Persistence.persistence.hasUnsavedCommittedChanges(this._uiSourceCode)); 274 Persistence.persistence.hasUnsavedCommittedChanges(this._uiSourceCode));
275 this.setEditable(!this._canEditSource()); 275 this.setEditable(this._canEditSource());
lushnikov 2016/12/10 00:59:50 how did it work at all?
276 } 276 }
277 277
278 onUISourceCodeContentChanged() { 278 onUISourceCodeContentChanged() {
279 } 279 }
280 280
281 _updateAutocomplete() { 281 _updateAutocomplete() {
282 this.textEditor.configureAutocomplete( 282 this.textEditor.configureAutocomplete(
283 Common.moduleSetting('textEditorAutocompletion').get() ? this._autocompl eteConfig : null); 283 Common.moduleSetting('textEditorAutocompletion').get() ? this._autocompl eteConfig : null);
284 } 284 }
285 285
(...skipping 408 matching lines...) Expand 10 before | Expand all | Expand 10 after
694 694
695 /** 695 /**
696 * @param {!Workspace.UISourceCode.Message} a 696 * @param {!Workspace.UISourceCode.Message} a
697 * @param {!Workspace.UISourceCode.Message} b 697 * @param {!Workspace.UISourceCode.Message} b
698 * @return {number} 698 * @return {number}
699 */ 699 */
700 Workspace.UISourceCode.Message.messageLevelComparator = function(a, b) { 700 Workspace.UISourceCode.Message.messageLevelComparator = function(a, b) {
701 return Workspace.UISourceCode.Message._messageLevelPriority[a.level()] - 701 return Workspace.UISourceCode.Message._messageLevelPriority[a.level()] -
702 Workspace.UISourceCode.Message._messageLevelPriority[b.level()]; 702 Workspace.UISourceCode.Message._messageLevelPriority[b.level()];
703 }; 703 };
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/devtools/front_end/source_frame/SourceFrame.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698