blob: cd635b0689c6237937fb2ba2ab6e1d28a0f73fcd [file] [log] [blame]
[email protected]aee746fa2010-03-24 22:33:081// Copyright (c) 2010 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_
[email protected]32b76ef2010-07-26 23:08:249#pragma once
[email protected]eaf93d42009-07-16 04:19:1910
11#include "build/build_config.h"
[email protected]37858e52010-08-26 00:22:0212#include "chrome/browser/prefs/session_startup_pref.h"
[email protected]eaf93d42009-07-16 04:19:1913
14namespace browser_defaults {
15
[email protected]753efc42010-03-09 19:52:1616#if defined(USE_X11)
[email protected]eaf93d42009-07-16 04:19:1917
[email protected]34cc1912009-08-11 19:45:1918// Size of the font in pixels used in the autocomplete box for normal windows.
19extern const double kAutocompleteEditFontPixelSize;
20
21// Size of the font in pixels used in the autocomplete box for popup windows.
22extern const double kAutocompleteEditFontPixelSizeInPopup;
[email protected]eaf93d42009-07-16 04:19:1923
24// Size of the font used in the autocomplete popup.
25extern const int kAutocompletePopupFontSize;
26
[email protected]7cd2fbec2009-09-23 16:23:1327// Can the user toggle the system title bar?
28extern const bool kCanToggleSystemTitleBar;
29
[email protected]eaf93d42009-07-16 04:19:1930#endif
31
32// The default value for session startup.
33extern const SessionStartupPref::Type kDefaultSessionStartupType;
34
[email protected]df72ac72010-02-06 00:43:1635// Width of mini-tabs.
36extern const int kMiniTabWidth;
[email protected]4889eac12009-09-14 20:34:4537
[email protected]982921f12009-10-27 21:43:5338// Should session restore restore popup windows?
39extern const bool kRestorePopups;
40
[email protected]4070a6b2009-11-05 23:33:5541// Can the browser be alive without any browser windows?
42extern const bool kBrowserAliveWithNoWindows;
43
[email protected]a1360162009-11-30 21:19:0744// Should a link be shown on the bookmark bar allowing the user to import
[email protected]b6944532009-12-15 17:11:3045// bookmarks?
[email protected]a1360162009-11-30 21:19:0746extern const bool kShowImportOnBookmarkBar;
47
[email protected]b6944532009-12-15 17:11:3048// Should the exit menu item be shown in the toolbar menu?
[email protected]c0fe9062009-11-24 18:30:4649extern const bool kShowExitMenuItem;
50
[email protected]b6944532009-12-15 17:11:3051// Should the about menu item be shown in the toolbar app menu?
52extern const bool kShowAboutMenuItem;
53
[email protected]c0fe9062009-11-24 18:30:4654// Does the OS support other browsers? If not, operations such as default
55// browser check are not done.
56extern const bool kOSSupportsOtherBrowsers;
57
[email protected]26300b8812009-12-17 17:30:1358// Does the download page have the show in folder option?
59extern const bool kDownloadPageHasShowInFolder;
60
[email protected]df525d52010-01-12 23:17:0161// Should the tab strip be sized to the top of the tab strip?
62extern const bool kSizeTabButtonToTopOfTabStrip;
63
[email protected]595fbb42010-01-21 21:13:3064// Whether we should bootstrap the sync authentication using cookies instead of
65// asking the user for credentials.
66extern const bool kBootstrapSyncAuthentication;
67
[email protected]a66a0a12010-02-23 18:25:1768// Should other browsers be shown in about:memory page?
69extern const bool kShowOtherBrowsersInAboutMemory;
70
[email protected]047e7272010-06-03 19:53:3571// Should always open incognito windows when started with --incognito switch?
72extern const bool kAlwaysOpenIncognitoWindow;
73
[email protected]3d58bf7f2010-06-22 20:31:1074// Are phantom tabs enabled?
75extern const bool kPhantomTabsEnabled;
76
[email protected]4a4180a52010-08-23 06:39:4877//=============================================================================
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.
82extern bool bookmarks_enabled;
83
[email protected]eaf93d42009-07-16 04:19:1984} // namespace browser_defaults
85
86#endif // CHROME_BROWSER_DEFAULTS_H_