defaults.cc revision dc0f95d653279beabeb9817299e2902918ba123e
1// Copyright (c) 2010 The Chromium Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5#include "chrome/browser/defaults.h"
6
7namespace browser_defaults {
8
9#if defined(OS_CHROMEOS)
10
11// Make the regular omnibox text two points larger than the nine-point font
12// used in the tab strip (11pt / 72pt/in * 96px/in = 14.667px).
13const int kAutocompleteEditFontPixelSize = 15;
14
15const int kAutocompleteEditFontPixelSizeInPopup = 10;
16
17const SessionStartupPref::Type kDefaultSessionStartupType =
18    SessionStartupPref::LAST;
19const int kMiniTabWidth = 64;
20const bool kCanToggleSystemTitleBar = false;
21const bool kRestorePopups = true;
22const bool kShowImportOnBookmarkBar = false;
23const bool kShowExitMenuItem = true;
24const bool kOSSupportsOtherBrowsers = false;
25const bool kDownloadPageHasShowInFolder = true;
26const bool kSizeTabButtonToTopOfTabStrip = true;
27const bool kBootstrapSyncAuthentication = true;
28const bool kShowOtherBrowsersInAboutMemory = false;
29const bool kAlwaysOpenIncognitoWindow = true;
30const bool kShowCancelButtonInTaskManager = true;
31
32#elif defined(TOOLKIT_USES_GTK)
33
34// 13.4px = 10pt @ 96dpi.
35const int kAutocompleteEditFontPixelSize = 13;
36
37// On Windows, popup windows' location text uses a font 5/6 the size of
38// that in a regular window, which we duplicate here for GTK.
39const int kAutocompleteEditFontPixelSizeInPopup =
40    kAutocompleteEditFontPixelSize * 5.0 / 6.0;
41
42#if defined(TOOLKIT_VIEWS)
43const bool kCanToggleSystemTitleBar = false;
44#else
45const bool kCanToggleSystemTitleBar = true;
46#endif
47
48#endif
49
50#if !defined(OS_CHROMEOS)
51
52const SessionStartupPref::Type kDefaultSessionStartupType =
53    SessionStartupPref::DEFAULT;
54const int kMiniTabWidth = 56;
55const bool kRestorePopups = false;
56const bool kShowImportOnBookmarkBar = true;
57const bool kDownloadPageHasShowInFolder = true;
58#if defined(OS_MACOSX)
59const bool kShowExitMenuItem = false;
60#else
61const bool kShowExitMenuItem = true;
62#endif
63const bool kOSSupportsOtherBrowsers = true;
64const bool kSizeTabButtonToTopOfTabStrip = false;
65const bool kBootstrapSyncAuthentication = false;
66const bool kShowOtherBrowsersInAboutMemory = true;
67const bool kAlwaysOpenIncognitoWindow = false;
68const bool kShowCancelButtonInTaskManager = false;
69#endif
70
71#if defined(OS_MACOSX)
72const bool kBrowserAliveWithNoWindows = true;
73#else
74const bool kBrowserAliveWithNoWindows = false;
75#endif
76
77bool bookmarks_enabled = true;
78
79bool skip_restore = false;
80
81bool enable_help_app = true;
82
83}  // namespace browser_defaults
84