| OLD | NEW |
| 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 cr.define('options', function() { | 5 cr.define('options', function() { |
| 6 /** @const */ var FocusOutlineManager = cr.ui.FocusOutlineManager; | 6 /** @const */ var FocusOutlineManager = cr.ui.FocusOutlineManager; |
| 7 | 7 |
| 8 ///////////////////////////////////////////////////////////////////////////// | 8 ///////////////////////////////////////////////////////////////////////////// |
| 9 // OptionsPage class: | 9 // OptionsPage class: |
| 10 | 10 |
| (...skipping 518 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 529 overlay.associatedSection = | 529 overlay.associatedSection = |
| 530 this.findSectionForNode_(associatedControls[0]); | 530 this.findSectionForNode_(associatedControls[0]); |
| 531 } | 531 } |
| 532 | 532 |
| 533 // Sanity check. | 533 // Sanity check. |
| 534 for (var i = 0; i < associatedControls.length; ++i) { | 534 for (var i = 0; i < associatedControls.length; ++i) { |
| 535 assert(associatedControls[i], 'Invalid element passed.'); | 535 assert(associatedControls[i], 'Invalid element passed.'); |
| 536 } | 536 } |
| 537 } | 537 } |
| 538 | 538 |
| 539 // Reverse the button strip for views. See the documentation of | 539 // Reverse the button strip for Windows and CrOS. See the documentation of |
| 540 // reverseButtonStripIfNecessary_() for an explanation of why this is done. | 540 // reverseButtonStripIfNecessary_() for an explanation of why this is done. |
| 541 if (cr.isViews) | 541 if (cr.isWindows || cr.isChromeOS) |
| 542 this.reverseButtonStripIfNecessary_(overlay); | 542 this.reverseButtonStripIfNecessary_(overlay); |
| 543 | 543 |
| 544 overlay.tab = undefined; | 544 overlay.tab = undefined; |
| 545 overlay.isOverlay = true; | 545 overlay.isOverlay = true; |
| 546 overlay.initializePage(); | 546 overlay.initializePage(); |
| 547 }; | 547 }; |
| 548 | 548 |
| 549 /** | 549 /** |
| 550 * Reverses the child elements of a button strip if it hasn't already been | 550 * Reverses the child elements of a button strip if it hasn't already been |
| 551 * reversed. This is necessary because WebKit does not alter the tab order for | 551 * reversed. This is necessary because WebKit does not alter the tab order for |
| (...skipping 463 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1015 canShowPage: function() { | 1015 canShowPage: function() { |
| 1016 return true; | 1016 return true; |
| 1017 }, | 1017 }, |
| 1018 }; | 1018 }; |
| 1019 | 1019 |
| 1020 // Export | 1020 // Export |
| 1021 return { | 1021 return { |
| 1022 OptionsPage: OptionsPage | 1022 OptionsPage: OptionsPage |
| 1023 }; | 1023 }; |
| 1024 }); | 1024 }); |
| OLD | NEW |