Home | History | Annotate | Download | only in browser
      1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
      2 // Use of this source code is governed by a BSD-style license that can be
      3 // found in the LICENSE file.
      4 
      5 // Defines various defaults whose values varies depending upon the OS.
      6 
      7 #ifndef CHROME_BROWSER_DEFAULTS_H_
      8 #define CHROME_BROWSER_DEFAULTS_H_
      9 #pragma once
     10 
     11 #include "build/build_config.h"
     12 #include "chrome/browser/prefs/session_startup_pref.h"
     13 
     14 namespace browser_defaults {
     15 
     16 #if defined(USE_X11)
     17 
     18 // Size of the font used in the autocomplete box for normal windows, in pixels.
     19 extern const int kAutocompleteEditFontPixelSize;
     20 
     21 // Size of the font used in the autocomplete box for popup windows, in pixels.
     22 extern const int kAutocompleteEditFontPixelSizeInPopup;
     23 
     24 // Can the user toggle the system title bar?
     25 extern const bool kCanToggleSystemTitleBar;
     26 
     27 #endif
     28 
     29 // The default value for session startup.
     30 extern const SessionStartupPref::Type kDefaultSessionStartupType;
     31 
     32 // Width of mini-tabs.
     33 extern const int kMiniTabWidth;
     34 
     35 // Should session restore restore popup windows?
     36 extern const bool kRestorePopups;
     37 
     38 // Can the browser be alive without any browser windows?
     39 extern const bool kBrowserAliveWithNoWindows;
     40 
     41 // Should a link be shown on the bookmark bar allowing the user to import
     42 // bookmarks?
     43 extern const bool kShowImportOnBookmarkBar;
     44 
     45 // Should the exit menu item be shown in the toolbar menu?
     46 extern const bool kShowExitMenuItem;
     47 
     48 // Does the OS support other browsers? If not, operations such as default
     49 // browser check are not done.
     50 extern const bool kOSSupportsOtherBrowsers;
     51 
     52 // Does the download page have the show in folder option?
     53 extern const bool kDownloadPageHasShowInFolder;
     54 
     55 // Should the tab strip be sized to the top of the tab strip?
     56 extern const bool kSizeTabButtonToTopOfTabStrip;
     57 
     58 // Whether we should bootstrap the sync authentication using cookies instead of
     59 // asking the user for credentials.
     60 extern const bool kBootstrapSyncAuthentication;
     61 
     62 // Should other browsers be shown in about:memory page?
     63 extern const bool kShowOtherBrowsersInAboutMemory;
     64 
     65 // Should always open incognito windows when started with --incognito switch?
     66 extern const bool kAlwaysOpenIncognitoWindow;
     67 
     68 // Should the close button be shown in the Task Manager dialog?
     69 extern const bool kShowCancelButtonInTaskManager;
     70 
     71 // Are touch icons enabled? False by default.
     72 extern const bool kEnableTouchIcon;
     73 
     74 //=============================================================================
     75 // Runtime "const" - set only once after parsing command line option and should
     76 // never be modified after that.
     77 
     78 // Are bookmark enabled? True by default.
     79 extern bool bookmarks_enabled;
     80 
     81 // Should we skip the user's preference for restore. False by default.
     82 extern bool skip_restore;
     83 
     84 // Whether HelpApp is enabled. True by default. This is only used by Chrome OS
     85 // today.
     86 extern bool enable_help_app;
     87 
     88 }  // namespace browser_defaults
     89 
     90 #endif  // CHROME_BROWSER_DEFAULTS_H_
     91