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

Side by Side Diff: chrome/browser/resources/options/options_page.js

Issue 331333002: [linux] Put action button on the right in chrome://settings dialogs. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 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
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
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 });
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698