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

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

Issue 2466123002: DevTools: reformat front-end code to match chromium style. (Closed)
Patch Set: Created 4 years, 1 month 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
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 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 82
83 WebInspector.UISourceCodeFrame.prototype = { 83 WebInspector.UISourceCodeFrame.prototype = {
84 /** 84 /**
85 * @return {!WebInspector.UISourceCode} 85 * @return {!WebInspector.UISourceCode}
86 */ 86 */
87 uiSourceCode: function() 87 uiSourceCode: function()
88 { 88 {
89 return this._uiSourceCode; 89 return this._uiSourceCode;
90 }, 90 },
91 91
92 /**
93 * @override
94 */
92 wasShown: function() 95 wasShown: function()
93 { 96 {
94 WebInspector.SourceFrame.prototype.wasShown.call(this); 97 WebInspector.SourceFrame.prototype.wasShown.call(this);
95 this._boundWindowFocused = this._windowFocused.bind(this); 98 this._boundWindowFocused = this._windowFocused.bind(this);
96 this.element.ownerDocument.defaultView.addEventListener("focus", this._b oundWindowFocused, false); 99 this.element.ownerDocument.defaultView.addEventListener("focus", this._b oundWindowFocused, false);
97 this._checkContentUpdated(); 100 this._checkContentUpdated();
98 // We need CodeMirrorTextEditor to be initialized prior to this call as it calls |cursorPositionToCoordinates| internally. @see crbug.com/506566 101 // We need CodeMirrorTextEditor to be initialized prior to this call as it calls |cursorPositionToCoordinates| internally. @see crbug.com/506566
99 setImmediate(this._updateBucketDecorations.bind(this)); 102 setImmediate(this._updateBucketDecorations.bind(this));
100 }, 103 },
101 104
105 /**
106 * @override
107 */
102 willHide: function() 108 willHide: function()
103 { 109 {
104 WebInspector.SourceFrame.prototype.willHide.call(this); 110 WebInspector.SourceFrame.prototype.willHide.call(this);
105 WebInspector.context.setFlavor(WebInspector.UISourceCodeFrame, null); 111 WebInspector.context.setFlavor(WebInspector.UISourceCodeFrame, null);
106 this.element.ownerDocument.defaultView.removeEventListener("focus", this ._boundWindowFocused, false); 112 this.element.ownerDocument.defaultView.removeEventListener("focus", this ._boundWindowFocused, false);
107 delete this._boundWindowFocused; 113 delete this._boundWindowFocused;
108 this._uiSourceCode.removeWorkingCopyGetter(); 114 this._uiSourceCode.removeWorkingCopyGetter();
109 }, 115 },
110 116
111 /** 117 /**
(...skipping 560 matching lines...) Expand 10 before | Expand all | Expand 10 after
672 678
673 /** 679 /**
674 * @param {!WebInspector.UISourceCode.Message} a 680 * @param {!WebInspector.UISourceCode.Message} a
675 * @param {!WebInspector.UISourceCode.Message} b 681 * @param {!WebInspector.UISourceCode.Message} b
676 * @return {number} 682 * @return {number}
677 */ 683 */
678 WebInspector.UISourceCode.Message.messageLevelComparator = function(a, b) 684 WebInspector.UISourceCode.Message.messageLevelComparator = function(a, b)
679 { 685 {
680 return WebInspector.UISourceCode.Message._messageLevelPriority[a.level()] - WebInspector.UISourceCode.Message._messageLevelPriority[b.level()]; 686 return WebInspector.UISourceCode.Message._messageLevelPriority[a.level()] - WebInspector.UISourceCode.Message._messageLevelPriority[b.level()];
681 }; 687 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698