blob: c4d251c27fd8b3510f2a7caa8b77af03389f62ac [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_
9
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]a616688b2013-05-15 23:24:5118// Can the user toggle the system title bar?
19extern const bool kCanToggleSystemTitleBar;
20
21#endif
22
[email protected]c8a5c732011-01-28 18:54:5023// Size of the font used in the autocomplete box for normal windows, in pixels.
24extern const int kAutocompleteEditFontPixelSize;
[email protected]34cc1912009-08-11 19:45:1925
[email protected]c8a5c732011-01-28 18:54:5026// Size of the font used in the autocomplete box for popup windows, in pixels.
27extern const int kAutocompleteEditFontPixelSizeInPopup;
[email protected]eaf93d42009-07-16 04:19:1928
[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]486cf592012-04-13 21:46:1938// Whether various menu items are shown.
[email protected]c0fe9062009-11-24 18:30:4639extern const bool kShowExitMenuItem;
[email protected]486cf592012-04-13 21:46:1940extern const bool kShowFeedbackMenuItem;
41extern const bool kShowHelpMenuItemIcon;
[email protected]486cf592012-04-13 21:46:1942extern const bool kShowUpgradeMenuItem;
[email protected]c0fe9062009-11-24 18:30:4643
[email protected]a616688b2013-05-15 23:24:5144// Should a link be shown on the bookmark bar allowing the user to import
45// bookmarks?
46extern const bool kShowImportOnBookmarkBar;
47
48// Should always open incognito windows when started with --incognito switch?
49extern 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.
54extern const bool kAlwaysCreateTabbedBrowserOnSessionRestore;
55
[email protected]c0fe9062009-11-24 18:30:4656// Does the OS support other browsers? If not, operations such as default
57// browser check are not done.
58extern const bool kOSSupportsOtherBrowsers;
59
[email protected]26300b8812009-12-17 17:30:1360// Does the download page have the show in folder option?
61extern const bool kDownloadPageHasShowInFolder;
62
[email protected]df525d52010-01-12 23:17:0163// Should the tab strip be sized to the top of the tab strip?
64extern const bool kSizeTabButtonToTopOfTabStrip;
65
[email protected]e25902702011-12-21 15:18:5366// 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.
70extern const bool kSyncAutoStarts;
[email protected]595fbb42010-01-21 21:13:3071
[email protected]a66a0a12010-02-23 18:25:1772// Should other browsers be shown in about:memory page?
73extern const bool kShowOtherBrowsersInAboutMemory;
74
[email protected]5d9758a02010-11-11 05:01:2175// Should the close button be shown in the Task Manager dialog?
76extern const bool kShowCancelButtonInTaskManager;
77
[email protected]648440c2012-10-19 19:01:3278// Preferred height of the bookmarks bar when shown on every page.
[email protected]207839e92012-10-04 01:59:0379extern const int kBookmarkBarHeight;
[email protected]207839e92012-10-04 01:59:0380
[email protected]e33f01e92011-07-15 17:30:4981// ChromiumOS network menu font
82extern const ui::ResourceBundle::FontStyle kAssociatedNetworkFontStyle;
83
84// Preferred infobar border padding in pixels.
85extern const int kInfoBarBorderPaddingVertical;
86
[email protected]9d06d88d2012-02-23 22:37:0887// Last character display for passwords.
88extern const bool kPasswordEchoEnabled;
89
[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_