Update {virtual,override,final} to follow C++11 style chrome/browser/ui/webui/chromeos.
[chromium-blink-merge.git] / chrome / browser / defaults.h
blob8839cc30d4f2cf6ad22fb13c98962cb40c6b96ff
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.
5 // Defines various defaults whose values varies depending upon the OS.
7 #ifndef CHROME_BROWSER_DEFAULTS_H_
8 #define CHROME_BROWSER_DEFAULTS_H_
10 #include "build/build_config.h"
11 #include "chrome/browser/prefs/session_startup_pref.h"
12 #include "ui/base/resource/resource_bundle.h"
14 namespace browser_defaults {
16 // Size of the font used in the omnibox, in pixels.
17 extern const int kOmniboxFontPixelSize;
19 // Can the browser be alive without any browser windows?
20 extern const bool kBrowserAliveWithNoWindows;
22 // Whether various menu items are shown.
23 extern const bool kShowExitMenuItem;
24 extern const bool kShowHelpMenuItemIcon;
25 extern const bool kShowUpgradeMenuItem;
27 // Should a link be shown on the bookmark bar allowing the user to import
28 // bookmarks?
29 extern const bool kShowImportOnBookmarkBar;
31 // Should always open incognito windows when started with --incognito switch?
32 extern const bool kAlwaysOpenIncognitoWindow;
34 // Indicates whether session restore should always create a new
35 // tabbed browser. This is true every where except on ChromeOS
36 // where we want the desktop to show through in this situation.
37 extern const bool kAlwaysCreateTabbedBrowserOnSessionRestore;
39 // Does the download page have the show in folder option?
40 extern const bool kDownloadPageHasShowInFolder;
42 // Should the tab strip be sized to the top of the tab strip?
43 extern const bool kSizeTabButtonToTopOfTabStrip;
45 // If true, we want to automatically start sync signin whenever we have
46 // credentials (user doesn't need to go through the startup flow). This is
47 // typically enabled on platforms (like ChromeOS) that have their own
48 // distinct signin flow.
49 extern const bool kSyncAutoStarts;
51 // Should other browsers be shown in about:memory page?
52 extern const bool kShowOtherBrowsersInAboutMemory;
54 // Should scroll events on the tabstrip change tabs?
55 extern const bool kScrollEventChangesTab;
57 // ChromiumOS network menu font
58 extern const ui::ResourceBundle::FontStyle kAssociatedNetworkFontStyle;
60 // Last character display for passwords.
61 extern const bool kPasswordEchoEnabled;
63 //=============================================================================
64 // Runtime "const" - set only once after parsing command line option and should
65 // never be modified after that.
67 // Are bookmark enabled? True by default.
68 extern bool bookmarks_enabled;
70 // Whether HelpApp is enabled. True by default. This is only used by Chrome OS
71 // today.
72 extern bool enable_help_app;
74 } // namespace browser_defaults
76 #endif // CHROME_BROWSER_DEFAULTS_H_