• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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
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 
10 #include "build/build_config.h"
11 #include "chrome/browser/prefs/session_startup_pref.h"
12 #include "ui/base/resource/resource_bundle.h"
13 
14 namespace browser_defaults {
15 
16 #if defined(USE_X11)
17 
18 // Can the user toggle the system title bar?
19 extern const bool kCanToggleSystemTitleBar;
20 
21 #endif
22 
23 // Size of the font used in the omnibox, in pixels.
24 extern const int kOmniboxFontPixelSize;
25 
26 // Width of mini-tabs.  Inline because other constants are computed depending
27 // on this, which causes static initializers if the value isn't available in
28 // all translation units that do this.
29 #if defined(TOOLKIT_VIEWS)
30 // Windows and Chrome OS have bigger shadows in the tab art.
31 const int kMiniTabWidth = 64;
32 #else
33 const int kMiniTabWidth = 56;
34 #endif
35 
36 // Should session restore restore popup windows?
37 extern const bool kRestorePopups;
38 
39 // Can the browser be alive without any browser windows?
40 extern const bool kBrowserAliveWithNoWindows;
41 
42 // Whether various menu items are shown.
43 extern const bool kShowExitMenuItem;
44 extern const bool kShowHelpMenuItemIcon;
45 extern const bool kShowUpgradeMenuItem;
46 
47 // Should a link be shown on the bookmark bar allowing the user to import
48 // bookmarks?
49 extern const bool kShowImportOnBookmarkBar;
50 
51 // Should always open incognito windows when started with --incognito switch?
52 extern const bool kAlwaysOpenIncognitoWindow;
53 
54 // Indicates whether session restore should always create a new
55 // tabbed browser. This is true every where except on ChromeOS
56 // where we want the desktop to show through in this situation.
57 extern const bool kAlwaysCreateTabbedBrowserOnSessionRestore;
58 
59 // Does the download page have the show in folder option?
60 extern const bool kDownloadPageHasShowInFolder;
61 
62 // Should the tab strip be sized to the top of the tab strip?
63 extern const bool kSizeTabButtonToTopOfTabStrip;
64 
65 // If true, we want to automatically start sync signin whenever we have
66 // credentials (user doesn't need to go through the startup flow). This is
67 // typically enabled on platforms (like ChromeOS) that have their own
68 // distinct signin flow.
69 extern const bool kSyncAutoStarts;
70 
71 // Should other browsers be shown in about:memory page?
72 extern const bool kShowOtherBrowsersInAboutMemory;
73 
74 // Should the close button be shown in the Task Manager dialog?
75 extern const bool kShowCancelButtonInTaskManager;
76 
77 // Should scroll events on the tabstrip change tabs?
78 extern const bool kScrollEventChangesTab;
79 
80 // ChromiumOS network menu font
81 extern const ui::ResourceBundle::FontStyle kAssociatedNetworkFontStyle;
82 
83 // Last character display for passwords.
84 extern const bool kPasswordEchoEnabled;
85 
86 //=============================================================================
87 // Runtime "const" - set only once after parsing command line option and should
88 // never be modified after that.
89 
90 // Are bookmark enabled? True by default.
91 extern bool bookmarks_enabled;
92 
93 // Whether HelpApp is enabled. True by default. This is only used by Chrome OS
94 // today.
95 extern bool enable_help_app;
96 
97 }  // namespace browser_defaults
98 
99 #endif  // CHROME_BROWSER_DEFAULTS_H_
100