defaults.cc revision 3345a6884c488ff3a535c2c9acdd33d74b37e311
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 double kAutocompleteEditFontPixelSize = 14.7;
14const double kAutocompleteEditFontPixelSizeInPopup = 10.0;
15
16// This is only used by AutocompletePopupViewGtk which is unused
17// unless TOOLKIT_VIEWS is undefined:
18const int kAutocompletePopupFontSize = 7;
19
20const SessionStartupPref::Type kDefaultSessionStartupType =
21    SessionStartupPref::LAST;
22const int kMiniTabWidth = 64;
23const bool kCanToggleSystemTitleBar = false;
24const bool kRestorePopups = true;
25const bool kShowImportOnBookmarkBar = false;
26const bool kShowExitMenuItem = true;
27const bool kShowAboutMenuItem = true;
28const bool kOSSupportsOtherBrowsers = false;
29const bool kDownloadPageHasShowInFolder = true;
30const bool kSizeTabButtonToTopOfTabStrip = true;
31const bool kBootstrapSyncAuthentication = true;
32const bool kShowOtherBrowsersInAboutMemory = false;
33const bool kAlwaysOpenIncognitoWindow = true;
34
35#elif defined(TOOLKIT_USES_GTK)
36
37// 13.4px = 10pt @ 96dpi.
38const double kAutocompleteEditFontPixelSize = 13.4;
39
40// On Windows, popup windows' autocomplete box have a font 5/6 the size of a
41// regular window, which we duplicate here for GTK.
42const double kAutocompleteEditFontPixelSizeInPopup =
43    kAutocompleteEditFontPixelSize * 5.0 / 6.0;
44
45const int kAutocompletePopupFontSize = 10;
46
47#if defined(TOOLKIT_VIEWS)
48const bool kCanToggleSystemTitleBar = false;
49#else
50const bool kCanToggleSystemTitleBar = true;
51#endif
52
53#endif
54
55#if !defined(OS_CHROMEOS)
56
57const SessionStartupPref::Type kDefaultSessionStartupType =
58    SessionStartupPref::DEFAULT;
59const int kMiniTabWidth = 56;
60const bool kRestorePopups = false;
61const bool kShowImportOnBookmarkBar = true;
62const bool kDownloadPageHasShowInFolder = true;
63#if defined(OS_MACOSX)
64const bool kShowExitMenuItem = false;
65const bool kShowAboutMenuItem = false;
66#else
67const bool kShowExitMenuItem = true;
68const bool kShowAboutMenuItem = true;
69#endif
70const bool kOSSupportsOtherBrowsers = true;
71const bool kSizeTabButtonToTopOfTabStrip = false;
72const bool kBootstrapSyncAuthentication = false;
73const bool kShowOtherBrowsersInAboutMemory = true;
74const bool kAlwaysOpenIncognitoWindow = false;
75#endif
76
77#if defined(OS_MACOSX)
78const bool kBrowserAliveWithNoWindows = true;
79#else
80const bool kBrowserAliveWithNoWindows = false;
81#endif
82
83const bool kPhantomTabsEnabled = false;
84
85bool bookmarks_enabled = true;
86
87}  // namespace browser_defaults
88