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.
5 // Defines various defaults whose values varies depending upon the OS.
7 #ifndef CHROME_BROWSER_DEFAULTS_H_
8 #define CHROME_BROWSER_DEFAULTS_H_
11 #include "build/build_config.h"
12 #include "chrome/browser/prefs/session_startup_pref.h"
13 #include "ui/base/resource/resource_bundle.h"
15 namespace browser_defaults
{
19 // Size of the font used in the autocomplete box for normal windows, in pixels.
20 extern const int kAutocompleteEditFontPixelSize
;
22 // Size of the font used in the autocomplete box for popup windows, in pixels.
23 extern const int kAutocompleteEditFontPixelSizeInPopup
;
25 // Can the user toggle the system title bar?
26 extern const bool kCanToggleSystemTitleBar
;
30 // The default value for session startup.
31 extern const SessionStartupPref::Type kDefaultSessionStartupType
;
33 // Width of mini-tabs.
34 extern const int kMiniTabWidth
;
36 // Should session restore restore popup windows?
37 extern const bool kRestorePopups
;
39 // Can the browser be alive without any browser windows?
40 extern const bool kBrowserAliveWithNoWindows
;
42 // Should a link be shown on the bookmark bar allowing the user to import
44 extern const bool kShowImportOnBookmarkBar
;
46 // Should the exit menu item be shown in the toolbar menu?
47 extern const bool kShowExitMenuItem
;
49 // Does the OS support other browsers? If not, operations such as default
50 // browser check are not done.
51 extern const bool kOSSupportsOtherBrowsers
;
53 // Does the download page have the show in folder option?
54 extern const bool kDownloadPageHasShowInFolder
;
56 // Should the tab strip be sized to the top of the tab strip?
57 extern const bool kSizeTabButtonToTopOfTabStrip
;
59 // If true, we want to automatically start sync signin whenever we have
60 // credentials (user doesn't need to go through the startup flow). This is
61 // typically enabled on platforms (like ChromeOS) that have their own
62 // distinct signin flow.
63 extern const bool kSyncAutoStarts
;
65 // Should other browsers be shown in about:memory page?
66 extern const bool kShowOtherBrowsersInAboutMemory
;
68 // Should always open incognito windows when started with --incognito switch?
69 extern const bool kAlwaysOpenIncognitoWindow
;
71 // Should the close button be shown in the Task Manager dialog?
72 extern const bool kShowCancelButtonInTaskManager
;
74 // Preferred height of the bookmarks bar when shown on every page and
75 // when shown only on the new tab page.
76 extern const int kBookmarkBarHeight
;
77 extern const int kNewtabBookmarkBarHeight
;
79 // ChromiumOS network menu font
80 extern const ui::ResourceBundle::FontStyle kAssociatedNetworkFontStyle
;
82 // Preferred infobar border padding in pixels.
83 extern const int kInfoBarBorderPaddingVertical
;
85 //=============================================================================
86 // Runtime "const" - set only once after parsing command line option and should
87 // never be modified after that.
89 // Are bookmark enabled? True by default.
90 extern bool bookmarks_enabled
;
92 // Whether HelpApp is enabled. True by default. This is only used by Chrome OS
94 extern bool enable_help_app
;
96 } // namespace browser_defaults
98 #endif // CHROME_BROWSER_DEFAULTS_H_