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

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/source_frame/SourceFrame.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) 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 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 }, 96 },
97 97
98 /** 98 /**
99 * @return {boolean} 99 * @return {boolean}
100 */ 100 */
101 isEditorShowing: function() 101 isEditorShowing: function()
102 { 102 {
103 return this.isShowing() && this._editorAttached; 103 return this.isShowing() && this._editorAttached;
104 }, 104 },
105 105
106 /**
107 * @override
108 */
106 willHide: function() 109 willHide: function()
107 { 110 {
108 WebInspector.Widget.prototype.willHide.call(this); 111 WebInspector.SimpleView.prototype.willHide.call(this);
109 112
110 this._clearPositionToReveal(); 113 this._clearPositionToReveal();
111 }, 114 },
112 115
113 /** 116 /**
114 * @override 117 * @override
115 * @return {!Array<!WebInspector.ToolbarItem>} 118 * @return {!Array<!WebInspector.ToolbarItem>}
116 */ 119 */
117 syncToolbarItems: function() 120 syncToolbarItems: function()
118 { 121 {
(...skipping 487 matching lines...) Expand 10 before | Expand all | Expand 10 after
606 _handleKeyDown: function(e) 609 _handleKeyDown: function(e)
607 { 610 {
608 var shortcutKey = WebInspector.KeyboardShortcut.makeKeyFromEvent(e); 611 var shortcutKey = WebInspector.KeyboardShortcut.makeKeyFromEvent(e);
609 var handler = this._shortcuts[shortcutKey]; 612 var handler = this._shortcuts[shortcutKey];
610 if (handler && handler()) 613 if (handler && handler())
611 e.consume(true); 614 e.consume(true);
612 }, 615 },
613 616
614 __proto__: WebInspector.SimpleView.prototype 617 __proto__: WebInspector.SimpleView.prototype
615 }; 618 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698