[email protected] | aee746fa | 2010-03-24 22:33:08 | [diff] [blame] | 1 | // Copyright (c) 2010 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_ | ||||
[email protected] | 32b76ef | 2010-07-26 23:08:24 | [diff] [blame] | 9 | #pragma once |
[email protected] | eaf93d4 | 2009-07-16 04:19:19 | [diff] [blame] | 10 | |
11 | #include "build/build_config.h" | ||||
[email protected] | 37858e5 | 2010-08-26 00:22:02 | [diff] [blame] | 12 | #include "chrome/browser/prefs/session_startup_pref.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] | 34cc191 | 2009-08-11 19:45:19 | [diff] [blame] | 18 | // Size of the font in pixels used in the autocomplete box for normal windows. |
19 | extern const double kAutocompleteEditFontPixelSize; | ||||
20 | |||||
21 | // Size of the font in pixels used in the autocomplete box for popup windows. | ||||
22 | extern const double kAutocompleteEditFontPixelSizeInPopup; | ||||
[email protected] | eaf93d4 | 2009-07-16 04:19:19 | [diff] [blame] | 23 | |
24 | // Size of the font used in the autocomplete popup. | ||||
25 | extern const int kAutocompletePopupFontSize; | ||||
26 | |||||
[email protected] | 7cd2fbec | 2009-09-23 16:23:13 | [diff] [blame] | 27 | // Can the user toggle the system title bar? |
28 | extern const bool kCanToggleSystemTitleBar; | ||||
29 | |||||
[email protected] | eaf93d4 | 2009-07-16 04:19:19 | [diff] [blame] | 30 | #endif |
31 | |||||
32 | // The default value for session startup. | ||||
33 | extern const SessionStartupPref::Type kDefaultSessionStartupType; | ||||
34 | |||||
[email protected] | df72ac7 | 2010-02-06 00:43:16 | [diff] [blame] | 35 | // Width of mini-tabs. |
36 | extern const int kMiniTabWidth; | ||||
[email protected] | 4889eac1 | 2009-09-14 20:34:45 | [diff] [blame] | 37 | |
[email protected] | 982921f1 | 2009-10-27 21:43:53 | [diff] [blame] | 38 | // Should session restore restore popup windows? |
39 | extern const bool kRestorePopups; | ||||
40 | |||||
[email protected] | 4070a6b | 2009-11-05 23:33:55 | [diff] [blame] | 41 | // Can the browser be alive without any browser windows? |
42 | extern const bool kBrowserAliveWithNoWindows; | ||||
43 | |||||
[email protected] | a136016 | 2009-11-30 21:19:07 | [diff] [blame] | 44 | // Should a link be shown on the bookmark bar allowing the user to import |
[email protected] | b694453 | 2009-12-15 17:11:30 | [diff] [blame] | 45 | // bookmarks? |
[email protected] | a136016 | 2009-11-30 21:19:07 | [diff] [blame] | 46 | extern const bool kShowImportOnBookmarkBar; |
47 | |||||
[email protected] | b694453 | 2009-12-15 17:11:30 | [diff] [blame] | 48 | // Should the exit menu item be shown in the toolbar menu? |
[email protected] | c0fe906 | 2009-11-24 18:30:46 | [diff] [blame] | 49 | extern const bool kShowExitMenuItem; |
50 | |||||
[email protected] | b694453 | 2009-12-15 17:11:30 | [diff] [blame] | 51 | // Should the about menu item be shown in the toolbar app menu? |
52 | extern const bool kShowAboutMenuItem; | ||||
53 | |||||
[email protected] | c0fe906 | 2009-11-24 18:30:46 | [diff] [blame] | 54 | // Does the OS support other browsers? If not, operations such as default |
55 | // browser check are not done. | ||||
56 | extern const bool kOSSupportsOtherBrowsers; | ||||
57 | |||||
[email protected] | 26300b881 | 2009-12-17 17:30:13 | [diff] [blame] | 58 | // Does the download page have the show in folder option? |
59 | extern const bool kDownloadPageHasShowInFolder; | ||||
60 | |||||
[email protected] | df525d5 | 2010-01-12 23:17:01 | [diff] [blame] | 61 | // Should the tab strip be sized to the top of the tab strip? |
62 | extern const bool kSizeTabButtonToTopOfTabStrip; | ||||
63 | |||||
[email protected] | 595fbb4 | 2010-01-21 21:13:30 | [diff] [blame] | 64 | // Whether we should bootstrap the sync authentication using cookies instead of |
65 | // asking the user for credentials. | ||||
66 | extern const bool kBootstrapSyncAuthentication; | ||||
67 | |||||
[email protected] | a66a0a1 | 2010-02-23 18:25:17 | [diff] [blame] | 68 | // Should other browsers be shown in about:memory page? |
69 | extern const bool kShowOtherBrowsersInAboutMemory; | ||||
70 | |||||
[email protected] | 047e727 | 2010-06-03 19:53:35 | [diff] [blame] | 71 | // Should always open incognito windows when started with --incognito switch? |
72 | extern const bool kAlwaysOpenIncognitoWindow; | ||||
73 | |||||
[email protected] | 3d58bf7f | 2010-06-22 20:31:10 | [diff] [blame] | 74 | // Are phantom tabs enabled? |
75 | extern const bool kPhantomTabsEnabled; | ||||
76 | |||||
[email protected] | 4a4180a5 | 2010-08-23 06:39:48 | [diff] [blame] | 77 | //============================================================================= |
78 | // Runtime "const" - set only once after parsing command line option and should | ||||
79 | // never be modified after that. | ||||
80 | |||||
81 | // Are bookmark enabled? True by default. | ||||
82 | extern bool bookmarks_enabled; | ||||
83 | |||||
[email protected] | eaf93d4 | 2009-07-16 04:19:19 | [diff] [blame] | 84 | } // namespace browser_defaults |
85 | |||||
86 | #endif // CHROME_BROWSER_DEFAULTS_H_ |