blob: 23629ec44cf38b952a43e3c91c0e4430ee9ba964 [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_
[email protected]eaf93d42009-07-16 04:19:199
10#include "build/build_config.h"
[email protected]37858e52010-08-26 00:22:0211#include "chrome/browser/prefs/session_startup_pref.h"
[email protected]ebb1b582011-06-17 00:03:4712#include "ui/base/resource/resource_bundle.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]c8a5c732011-01-28 18:54:5018// Size of the font used in the autocomplete box for normal windows, in pixels.
19extern const int kAutocompleteEditFontPixelSize;
[email protected]34cc1912009-08-11 19:45:1920
[email protected]c8a5c732011-01-28 18:54:5021// Size of the font used in the autocomplete box for popup windows, in pixels.
22extern const int kAutocompleteEditFontPixelSizeInPopup;
[email protected]eaf93d42009-07-16 04:19:1923
[email protected]7cd2fbec2009-09-23 16:23:1324// Can the user toggle the system title bar?
25extern const bool kCanToggleSystemTitleBar;
26
[email protected]eaf93d42009-07-16 04:19:1927#endif
28
[email protected]df72ac72010-02-06 00:43:1629// Width of mini-tabs.
30extern const int kMiniTabWidth;
[email protected]4889eac12009-09-14 20:34:4531
[email protected]982921f12009-10-27 21:43:5332// Should session restore restore popup windows?
33extern const bool kRestorePopups;
34
[email protected]4070a6b2009-11-05 23:33:5535// Can the browser be alive without any browser windows?
36extern const bool kBrowserAliveWithNoWindows;
37
[email protected]a1360162009-11-30 21:19:0738// Should a link be shown on the bookmark bar allowing the user to import
[email protected]b6944532009-12-15 17:11:3039// bookmarks?
[email protected]a1360162009-11-30 21:19:0740extern const bool kShowImportOnBookmarkBar;
41
[email protected]486cf592012-04-13 21:46:1942// Whether various menu items are shown.
[email protected]c0fe9062009-11-24 18:30:4643extern const bool kShowExitMenuItem;
[email protected]486cf592012-04-13 21:46:1944extern const bool kShowFeedbackMenuItem;
45extern const bool kShowHelpMenuItemIcon;
[email protected]486cf592012-04-13 21:46:1946extern const bool kShowUpgradeMenuItem;
[email protected]c0fe9062009-11-24 18:30:4647
48// Does the OS support other browsers? If not, operations such as default
49// browser check are not done.
50extern const bool kOSSupportsOtherBrowsers;
51
[email protected]26300b8812009-12-17 17:30:1352// Does the download page have the show in folder option?
53extern const bool kDownloadPageHasShowInFolder;
54
[email protected]df525d52010-01-12 23:17:0155// Should the tab strip be sized to the top of the tab strip?
56extern const bool kSizeTabButtonToTopOfTabStrip;
57
[email protected]e25902702011-12-21 15:18:5358// If true, we want to automatically start sync signin whenever we have
59// credentials (user doesn't need to go through the startup flow). This is
60// typically enabled on platforms (like ChromeOS) that have their own
61// distinct signin flow.
62extern const bool kSyncAutoStarts;
[email protected]595fbb42010-01-21 21:13:3063
[email protected]a66a0a12010-02-23 18:25:1764// Should other browsers be shown in about:memory page?
65extern const bool kShowOtherBrowsersInAboutMemory;
66
[email protected]047e7272010-06-03 19:53:3567// Should always open incognito windows when started with --incognito switch?
68extern const bool kAlwaysOpenIncognitoWindow;
69
[email protected]5d9758a02010-11-11 05:01:2170// Should the close button be shown in the Task Manager dialog?
71extern const bool kShowCancelButtonInTaskManager;
72
[email protected]648440c2012-10-19 19:01:3273// Preferred height of the bookmarks bar when shown on every page.
[email protected]207839e92012-10-04 01:59:0374extern const int kBookmarkBarHeight;
[email protected]207839e92012-10-04 01:59:0375
[email protected]e33f01e92011-07-15 17:30:4976// ChromiumOS network menu font
77extern const ui::ResourceBundle::FontStyle kAssociatedNetworkFontStyle;
78
79// Preferred infobar border padding in pixels.
80extern const int kInfoBarBorderPaddingVertical;
81
[email protected]9d06d88d2012-02-23 22:37:0882// Last character display for passwords.
83extern const bool kPasswordEchoEnabled;
84
[email protected]2bfe6ce2012-09-13 09:47:3985// Indicates whether session restore should always create a new
86// tabbed browser. This is true every where except on ChromeOS
87// where we want the desktop to show through in this situation.
88extern const bool kAlwaysCreateTabbedBrowserOnSessionRestore;
[email protected]d28c4772012-05-08 18:34:0989
[email protected]4a4180a52010-08-23 06:39:4890//=============================================================================
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.
95extern bool bookmarks_enabled;
96
[email protected]0eaaa7af2011-01-25 07:42:0597// Whether HelpApp is enabled. True by default. This is only used by Chrome OS
98// today.
99extern bool enable_help_app;
100
[email protected]eaf93d42009-07-16 04:19:19101} // namespace browser_defaults
102
103#endif // CHROME_BROWSER_DEFAULTS_H_