1// Copyright (c) 2011 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// 14px = 10.5pt @ 96dpi. 35const int kAutocompleteEditFontPixelSize = 14; 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 71const bool kEnableTouchIcon = false; 72 73#if defined(OS_MACOSX) 74const bool kBrowserAliveWithNoWindows = true; 75#else 76const bool kBrowserAliveWithNoWindows = false; 77#endif 78 79bool bookmarks_enabled = true; 80 81bool skip_restore = false; 82 83bool enable_help_app = true; 84 85} // namespace browser_defaults 86