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

Side by Side Diff: chrome/browser/resources/options/chromeos/display_layout_manager_multi.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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 cr.exportPath('options'); 5 cr.exportPath('options');
6 6
7 cr.define('options', function() { 7 cr.define('options', function() {
8 'use strict'; 8 'use strict';
9 9
10 var DisplayLayoutManager = options.DisplayLayoutManager; 10 var DisplayLayoutManager = options.DisplayLayoutManager;
11 11
12 /** 12 /**
13 * @constructor 13 * @constructor
14 * @extends {options.DisplayLayoutManager} 14 * @extends {options.DisplayLayoutManager}
15 */ 15 */
16 function DisplayLayoutManagerMulti() { DisplayLayoutManager.call(this); } 16 function DisplayLayoutManagerMulti() {
17 DisplayLayoutManager.call(this);
18 }
17 19
18 // Helper class for display layout management. Implements logic for laying 20 // Helper class for display layout management. Implements logic for laying
19 // out 3+ displays. 21 // out 3+ displays.
20 DisplayLayoutManagerMulti.prototype = { 22 DisplayLayoutManagerMulti.prototype = {
21 __proto__: DisplayLayoutManager.prototype, 23 __proto__: DisplayLayoutManager.prototype,
22 24
23 /** @type {string} */ 25 /** @type {string} */
24 dragId_: '', 26 dragId_: '',
25 27
26 /** @type {string} */ 28 /** @type {string} */
(...skipping 332 matching lines...) Expand 10 before | Expand all | Expand 10 after
359 // Parent layout bounds may not be calculated yet, so calculate (but 361 // Parent layout bounds may not be calculated yet, so calculate (but
360 // do not set) them. 362 // do not set) them.
361 var parentBounds = this.calcLayoutBounds_(parent); 363 var parentBounds = this.calcLayoutBounds_(parent);
362 return layout.calculateBounds(parentBounds); 364 return layout.calculateBounds(parentBounds);
363 }, 365 },
364 }; 366 };
365 367
366 // Export 368 // Export
367 return {DisplayLayoutManagerMulti: DisplayLayoutManagerMulti}; 369 return {DisplayLayoutManagerMulti: DisplayLayoutManagerMulti};
368 }); 370 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698