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

Side by Side Diff: chrome/browser/resources/extensions/extension_code.js

Issue 2939273002: DO NOT SUBMIT: what chrome/browser/resources/ could eventually look like with clang-format (Closed)
Patch Set: Created 3 years, 6 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 /** 5 /**
6 * @typedef {{afterHighlight: string, 6 * @typedef {{afterHighlight: string,
7 * beforeHighlight: string, 7 * beforeHighlight: string,
8 * highlight: string, 8 * highlight: string,
9 * title: string}} 9 * title: string}}
10 */ 10 */
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 * div is hidden. 106 * div is hidden.
107 */ 107 */
108 scrollToError: function() { 108 scrollToError: function() {
109 var errorSpan = this.querySelector('.extension-code-highlighted-source'); 109 var errorSpan = this.querySelector('.extension-code-highlighted-source');
110 if (errorSpan) 110 if (errorSpan)
111 this.scrollTop = errorSpan.offsetTop - this.clientHeight / 2; 111 this.scrollTop = errorSpan.offsetTop - this.clientHeight / 2;
112 } 112 }
113 }; 113 };
114 114
115 // Export 115 // Export
116 return { 116 return {ExtensionCode: ExtensionCode};
117 ExtensionCode: ExtensionCode
118 };
119 }); 117 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698