[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] | 37858e5 | 2010-08-26 00:22:02 | [diff] [blame] | 11 | #include "chrome/browser/prefs/session_startup_pref.h" |
[email protected] | ebb1b58 | 2011-06-17 00:03:47 | [diff] [blame] | 12 | #include "ui/base/resource/resource_bundle.h" |
[email protected] | eaf93d4 | 2009-07-16 04:19:19 | [diff] [blame] | 13 | |
14 | namespace browser_defaults { | ||||
15 | |||||
[email protected] | 753efc4 | 2010-03-09 19:52:16 | [diff] [blame] | 16 | #if defined(USE_X11) |
[email protected] | eaf93d4 | 2009-07-16 04:19:19 | [diff] [blame] | 17 | |
[email protected] | a616688b | 2013-05-15 23:24:51 | [diff] [blame^] | 18 | // Can the user toggle the system title bar? |
19 | extern const bool kCanToggleSystemTitleBar; | ||||
20 | |||||
21 | #endif | ||||
22 | |||||
[email protected] | c8a5c73 | 2011-01-28 18:54:50 | [diff] [blame] | 23 | // Size of the font used in the autocomplete box for normal windows, in pixels. |
24 | extern const int kAutocompleteEditFontPixelSize; | ||||
[email protected] | 34cc191 | 2009-08-11 19:45:19 | [diff] [blame] | 25 | |
[email protected] | c8a5c73 | 2011-01-28 18:54:50 | [diff] [blame] | 26 | // Size of the font used in the autocomplete box for popup windows, in pixels. |
27 | extern const int kAutocompleteEditFontPixelSizeInPopup; | ||||
[email protected] | eaf93d4 | 2009-07-16 04:19:19 | [diff] [blame] | 28 | |
[email protected] | df72ac7 | 2010-02-06 00:43:16 | [diff] [blame] | 29 | // Width of mini-tabs. |
30 | extern const int kMiniTabWidth; | ||||
[email protected] | 4889eac1 | 2009-09-14 20:34:45 | [diff] [blame] | 31 | |
[email protected] | 982921f1 | 2009-10-27 21:43:53 | [diff] [blame] | 32 | // Should session restore restore popup windows? |
33 | extern const bool kRestorePopups; | ||||
34 | |||||
[email protected] | 4070a6b | 2009-11-05 23:33:55 | [diff] [blame] | 35 | // Can the browser be alive without any browser windows? |
36 | extern const bool kBrowserAliveWithNoWindows; | ||||
37 | |||||
[email protected] | 486cf59 | 2012-04-13 21:46:19 | [diff] [blame] | 38 | // Whether various menu items are shown. |
[email protected] | c0fe906 | 2009-11-24 18:30:46 | [diff] [blame] | 39 | extern const bool kShowExitMenuItem; |
[email protected] | 486cf59 | 2012-04-13 21:46:19 | [diff] [blame] | 40 | extern const bool kShowFeedbackMenuItem; |
41 | extern const bool kShowHelpMenuItemIcon; | ||||
[email protected] | 486cf59 | 2012-04-13 21:46:19 | [diff] [blame] | 42 | extern const bool kShowUpgradeMenuItem; |
[email protected] | c0fe906 | 2009-11-24 18:30:46 | [diff] [blame] | 43 | |
[email protected] | a616688b | 2013-05-15 23:24:51 | [diff] [blame^] | 44 | // Should a link be shown on the bookmark bar allowing the user to import |
45 | // bookmarks? | ||||
46 | extern const bool kShowImportOnBookmarkBar; | ||||
47 | |||||
48 | // Should always open incognito windows when started with --incognito switch? | ||||
49 | extern const bool kAlwaysOpenIncognitoWindow; | ||||
50 | |||||
51 | // Indicates whether session restore should always create a new | ||||
52 | // tabbed browser. This is true every where except on ChromeOS | ||||
53 | // where we want the desktop to show through in this situation. | ||||
54 | extern const bool kAlwaysCreateTabbedBrowserOnSessionRestore; | ||||
55 | |||||
[email protected] | c0fe906 | 2009-11-24 18:30:46 | [diff] [blame] | 56 | // Does the OS support other browsers? If not, operations such as default |
57 | // browser check are not done. | ||||
58 | extern const bool kOSSupportsOtherBrowsers; | ||||
59 | |||||
[email protected] | 26300b881 | 2009-12-17 17:30:13 | [diff] [blame] | 60 | // Does the download page have the show in folder option? |
61 | extern const bool kDownloadPageHasShowInFolder; | ||||
62 | |||||
[email protected] | df525d5 | 2010-01-12 23:17:01 | [diff] [blame] | 63 | // Should the tab strip be sized to the top of the tab strip? |
64 | extern const bool kSizeTabButtonToTopOfTabStrip; | ||||
65 | |||||
[email protected] | e2590270 | 2011-12-21 15:18:53 | [diff] [blame] | 66 | // If true, we want to automatically start sync signin whenever we have |
67 | // credentials (user doesn't need to go through the startup flow). This is | ||||
68 | // typically enabled on platforms (like ChromeOS) that have their own | ||||
69 | // distinct signin flow. | ||||
70 | extern const bool kSyncAutoStarts; | ||||
[email protected] | 595fbb4 | 2010-01-21 21:13:30 | [diff] [blame] | 71 | |
[email protected] | a66a0a1 | 2010-02-23 18:25:17 | [diff] [blame] | 72 | // Should other browsers be shown in about:memory page? |
73 | extern const bool kShowOtherBrowsersInAboutMemory; | ||||
74 | |||||
[email protected] | 5d9758a0 | 2010-11-11 05:01:21 | [diff] [blame] | 75 | // Should the close button be shown in the Task Manager dialog? |
76 | extern const bool kShowCancelButtonInTaskManager; | ||||
77 | |||||
[email protected] | 648440c | 2012-10-19 19:01:32 | [diff] [blame] | 78 | // Preferred height of the bookmarks bar when shown on every page. |
[email protected] | 207839e9 | 2012-10-04 01:59:03 | [diff] [blame] | 79 | extern const int kBookmarkBarHeight; |
[email protected] | 207839e9 | 2012-10-04 01:59:03 | [diff] [blame] | 80 | |
[email protected] | e33f01e9 | 2011-07-15 17:30:49 | [diff] [blame] | 81 | // ChromiumOS network menu font |
82 | extern const ui::ResourceBundle::FontStyle kAssociatedNetworkFontStyle; | ||||
83 | |||||
84 | // Preferred infobar border padding in pixels. | ||||
85 | extern const int kInfoBarBorderPaddingVertical; | ||||
86 | |||||
[email protected] | 9d06d88d | 2012-02-23 22:37:08 | [diff] [blame] | 87 | // Last character display for passwords. |
88 | extern const bool kPasswordEchoEnabled; | ||||
89 | |||||
[email protected] | 4a4180a5 | 2010-08-23 06:39:48 | [diff] [blame] | 90 | //============================================================================= |
91 | // Runtime "const" - set only once after parsing command line option and should | ||||
92 | // never be modified after that. | ||||
93 | |||||
94 | // Are bookmark enabled? True by default. | ||||
95 | extern bool bookmarks_enabled; | ||||
96 | |||||
[email protected] | 0eaaa7af | 2011-01-25 07:42:05 | [diff] [blame] | 97 | // Whether HelpApp is enabled. True by default. This is only used by Chrome OS |
98 | // today. | ||||
99 | extern bool enable_help_app; | ||||
100 | |||||
[email protected] | eaf93d4 | 2009-07-16 04:19:19 | [diff] [blame] | 101 | } // namespace browser_defaults |
102 | |||||
103 | #endif // CHROME_BROWSER_DEFAULTS_H_ |