[email protected] | 990bf88 | 2012-02-15 04:08:06 | [diff] [blame] | 1 | // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
[email protected] | eaf93d4 | 2009-07-16 04:19:19 | [diff] [blame] | 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" | ||||
[email protected] | eaf93d4 | 2009-07-16 04:19:19 | [diff] [blame] | 11 | |
12 | namespace browser_defaults { | ||||
13 | |||||
[email protected] | 4070a6b | 2009-11-05 23:33:55 | [diff] [blame] | 14 | // Can the browser be alive without any browser windows? |
15 | extern const bool kBrowserAliveWithNoWindows; | ||||
16 | |||||
[email protected] | 486cf59 | 2012-04-13 21:46:19 | [diff] [blame] | 17 | // Whether various menu items are shown. |
[email protected] | c0fe906 | 2009-11-24 18:30:46 | [diff] [blame] | 18 | extern const bool kShowExitMenuItem; |
[email protected] | 486cf59 | 2012-04-13 21:46:19 | [diff] [blame] | 19 | extern const bool kShowUpgradeMenuItem; |
thestig | 397accd | 2015-04-04 00:03:04 | [diff] [blame] | 20 | #if defined(GOOGLE_CHROME_BUILD) |
21 | extern const bool kShowHelpMenuItemIcon; | ||||
22 | #endif | ||||
[email protected] | c0fe906 | 2009-11-24 18:30:46 | [diff] [blame] | 23 | |
[email protected] | a616688b | 2013-05-15 23:24:51 | [diff] [blame] | 24 | // Should a link be shown on the bookmark bar allowing the user to import |
25 | // bookmarks? | ||||
26 | extern const bool kShowImportOnBookmarkBar; | ||||
27 | |||||
28 | // Should always open incognito windows when started with --incognito switch? | ||||
29 | extern 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. | ||||
34 | extern const bool kAlwaysCreateTabbedBrowserOnSessionRestore; | ||||
35 | |||||
[email protected] | 26300b881 | 2009-12-17 17:30:13 | [diff] [blame] | 36 | // Does the download page have the show in folder option? |
37 | extern const bool kDownloadPageHasShowInFolder; | ||||
38 | |||||
[email protected] | df525d5 | 2010-01-12 23:17:01 | [diff] [blame] | 39 | // Should the tab strip be sized to the top of the tab strip? |
40 | extern const bool kSizeTabButtonToTopOfTabStrip; | ||||
41 | |||||
[email protected] | e2590270 | 2011-12-21 15:18:53 | [diff] [blame] | 42 | // 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. | ||||
46 | extern const bool kSyncAutoStarts; | ||||
[email protected] | 595fbb4 | 2010-01-21 21:13:30 | [diff] [blame] | 47 | |
[email protected] | 6812e46 | 2013-11-20 01:13:37 | [diff] [blame] | 48 | // Should scroll events on the tabstrip change tabs? |
49 | extern const bool kScrollEventChangesTab; | ||||
50 | |||||
[email protected] | 9d06d88d | 2012-02-23 22:37:08 | [diff] [blame] | 51 | // Last character display for passwords. |
52 | extern const bool kPasswordEchoEnabled; | ||||
53 | |||||
[email protected] | 4a4180a5 | 2010-08-23 06:39:48 | [diff] [blame] | 54 | //============================================================================= |
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. | ||||
59 | extern bool bookmarks_enabled; | ||||
60 | |||||
[email protected] | 0eaaa7af | 2011-01-25 07:42:05 | [diff] [blame] | 61 | // Whether HelpApp is enabled. True by default. This is only used by Chrome OS |
62 | // today. | ||||
63 | extern bool enable_help_app; | ||||
64 | |||||
[email protected] | eaf93d4 | 2009-07-16 04:19:19 | [diff] [blame] | 65 | } // namespace browser_defaults |
66 | |||||
67 | #endif // CHROME_BROWSER_DEFAULTS_H_ |