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

Side by Side Diff: ui/webui/resources/js/cr/ui/bubble.js

Issue 2603443002: Clang format JS: Disallow single line functions, conditionals, loops, and switch statements (Closed)
Patch Set: update c/b/r/ as well Created 3 years, 12 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 // require: event_tracker.js 5 // require: event_tracker.js
6 6
7 // TODO(vitalyp): Inline the enums below into cr.ui definition function, remove 7 // TODO(vitalyp): Inline the enums below into cr.ui definition function, remove
8 // cr.exportPath() call and remove exportPath from exports in cr.js when this 8 // cr.exportPath() call and remove exportPath from exports in cr.js when this
9 // issue will be fixed: 9 // issue will be fixed:
10 // https://github.com/google/closure-compiler/issues/544 10 // https://github.com/google/closure-compiler/issues/544
(...skipping 273 matching lines...) Expand 10 before | Expand all | Expand 10 after
284 this.hide(); 284 this.hide();
285 event.preventDefault(); 285 event.preventDefault();
286 event.stopPropagation(); 286 event.stopPropagation();
287 } 287 }
288 }, 288 },
289 289
290 /** 290 /**
291 * Attach the bubble to the document's DOM. 291 * Attach the bubble to the document's DOM.
292 * @private 292 * @private
293 */ 293 */
294 attachToDOM_: function() { document.body.appendChild(this); }, 294 attachToDOM_: function() {
295 document.body.appendChild(this);
296 },
295 297
296 /** 298 /**
297 * Update the arrow so that it appears at the correct position. 299 * Update the arrow so that it appears at the correct position.
298 * @param {boolean} visible Whether the arrow should be visible. 300 * @param {boolean} visible Whether the arrow should be visible.
299 * @param {boolean} atTop Whether the arrow should be at the top of the 301 * @param {boolean} atTop Whether the arrow should be at the top of the
300 * bubble. 302 * bubble.
301 * @param {number} tipOffset The horizontal distance between the tip of the 303 * @param {number} tipOffset The horizontal distance between the tip of the
302 * arrow and the reference edge of the bubble (as specified by the arrow 304 * arrow and the reference edge of the bubble (as specified by the arrow
303 * location). 305 * location).
304 * @private 306 * @private
(...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after
532 }, 534 },
533 }; 535 };
534 536
535 537
536 return { 538 return {
537 BubbleBase: BubbleBase, 539 BubbleBase: BubbleBase,
538 Bubble: Bubble, 540 Bubble: Bubble,
539 AutoCloseBubble: AutoCloseBubble 541 AutoCloseBubble: AutoCloseBubble
540 }; 542 };
541 }); 543 });
OLDNEW
« no previous file with comments | « ui/webui/resources/js/cr/ui/autocomplete_list.js ('k') | ui/webui/resources/js/cr/ui/card_slider.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698