Chromium Code Reviews| OLD | NEW |
|---|---|
| 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.define('inline', function() { | 5 cr.define('inline', function() { |
| 6 'use strict'; | 6 'use strict'; |
| 7 | 7 |
| 8 function computeClasses(isCombined) { | 8 function computeClasses(isCombined) { |
| 9 if (isCombined) | 9 if (isCombined) |
| 10 return 'section expandable expanded'; | 10 return 'section expandable expanded'; |
| (...skipping 16 matching lines...) Expand all Loading... | |
| 27 }); | 27 }); |
| 28 } | 28 } |
| 29 } | 29 } |
| 30 | 30 |
| 31 function initialize() { | 31 function initialize() { |
| 32 var app = $('inline-app'); | 32 var app = $('inline-app'); |
| 33 | 33 |
| 34 // Set variables. | 34 // Set variables. |
| 35 // Determines if the combined variant should be displayed. The combined | 35 // Determines if the combined variant should be displayed. The combined |
| 36 // variant includes instructions on how to pin Chrome to the taskbar. | 36 // variant includes instructions on how to pin Chrome to the taskbar. |
| 37 app.isCombined = false; | 37 app.isCombined = true; |
|
tommycli
2017/02/27 23:17:22
I guess I'm a bit confused as how changing this wo
tmartino
2017/02/28 00:08:53
Whoops, that's a great catch--this is slightly com
| |
| 38 | 38 |
| 39 // Set handlers. | 39 // Set handlers. |
| 40 app.computeClasses = computeClasses; | 40 app.computeClasses = computeClasses; |
| 41 app.onContinue = onContinue; | 41 app.onContinue = onContinue; |
| 42 app.onOpenSettings = onOpenSettings; | 42 app.onOpenSettings = onOpenSettings; |
| 43 app.onToggle = onToggle.bind(this, app); | 43 app.onToggle = onToggle.bind(this, app); |
| 44 | 44 |
| 45 // Asynchronously check if Chrome is pinned to the taskbar. | 45 // Asynchronously check if Chrome is pinned to the taskbar. |
| 46 cr.sendWithPromise('getPinnedToTaskbarState').then( | 46 cr.sendWithPromise('getPinnedToTaskbarState').then( |
| 47 function(isPinnedToTaskbar) { | 47 function(isPinnedToTaskbar) { |
| (...skipping 15 matching lines...) Expand all Loading... | |
| 63 } | 63 } |
| 64 }); | 64 }); |
| 65 } | 65 } |
| 66 | 66 |
| 67 return { | 67 return { |
| 68 initialize: initialize | 68 initialize: initialize |
| 69 }; | 69 }; |
| 70 }); | 70 }); |
| 71 | 71 |
| 72 document.addEventListener('DOMContentLoaded', inline.initialize); | 72 document.addEventListener('DOMContentLoaded', inline.initialize); |
| OLD | NEW |