blob: 1ea1f90e8879afa4240c30e631bbe8ef9c4af96f [file] [log] [blame]
[email protected]990bf882012-02-15 04:08:061// Copyright (c) 2012 The Chromium Authors. All rights reserved.
[email protected]eaf93d42009-07-16 04:19:192// 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"
[email protected]eaf93d42009-07-16 04:19:1911
12namespace browser_defaults {
13
[email protected]4070a6b2009-11-05 23:33:5514// Can the browser be alive without any browser windows?
15extern const bool kBrowserAliveWithNoWindows;
16
[email protected]486cf592012-04-13 21:46:1917// Whether various menu items are shown.
[email protected]c0fe9062009-11-24 18:30:4618extern const bool kShowExitMenuItem;
[email protected]486cf592012-04-13 21:46:1919extern const bool kShowUpgradeMenuItem;
thestig397accd2015-04-04 00:03:0420#if defined(GOOGLE_CHROME_BUILD)
21extern const bool kShowHelpMenuItemIcon;
22#endif
[email protected]c0fe9062009-11-24 18:30:4623
[email protected]a616688b2013-05-15 23:24:5124// Should a link be shown on the bookmark bar allowing the user to import
25// bookmarks?
26extern const bool kShowImportOnBookmarkBar;
27
28// Should always open incognito windows when started with --incognito switch?
29extern const bool kAlwaysOpenIncognitoWindow;
30
31// Indicates whether session restore should always create a new
32// tabbed browser. This is true every where except on ChromeOS
33// where we want the desktop to show through in this situation.
34extern const bool kAlwaysCreateTabbedBrowserOnSessionRestore;
35
[email protected]26300b8812009-12-17 17:30:1336// Does the download page have the show in folder option?
37extern const bool kDownloadPageHasShowInFolder;
38
[email protected]df525d52010-01-12 23:17:0139// Should the tab strip be sized to the top of the tab strip?
40extern const bool kSizeTabButtonToTopOfTabStrip;
41
[email protected]e25902702011-12-21 15:18:5342// If true, we want to automatically start sync signin whenever we have
43// credentials (user doesn't need to go through the startup flow). This is
44// typically enabled on platforms (like ChromeOS) that have their own
45// distinct signin flow.
46extern const bool kSyncAutoStarts;
[email protected]595fbb42010-01-21 21:13:3047
[email protected]6812e462013-11-20 01:13:3748// Should scroll events on the tabstrip change tabs?
49extern const bool kScrollEventChangesTab;
50
[email protected]9d06d88d2012-02-23 22:37:0851// Last character display for passwords.
52extern const bool kPasswordEchoEnabled;
53
[email protected]4a4180a52010-08-23 06:39:4854//=============================================================================
55// Runtime "const" - set only once after parsing command line option and should
56// never be modified after that.
57
58// Are bookmark enabled? True by default.
59extern bool bookmarks_enabled;
60
[email protected]0eaaa7af2011-01-25 07:42:0561// Whether HelpApp is enabled. True by default. This is only used by Chrome OS
62// today.
63extern bool enable_help_app;
64
[email protected]eaf93d42009-07-16 04:19:1965} // namespace browser_defaults
66
67#endif // CHROME_BROWSER_DEFAULTS_H_