• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 
7 namespace 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).
13 const int kAutocompleteEditFontPixelSize = 15;
14 
15 const int kAutocompleteEditFontPixelSizeInPopup = 10;
16 
17 const SessionStartupPref::Type kDefaultSessionStartupType =
18     SessionStartupPref::LAST;
19 const int kMiniTabWidth = 64;
20 const bool kCanToggleSystemTitleBar = false;
21 const bool kRestorePopups = true;
22 const bool kShowImportOnBookmarkBar = false;
23 const bool kShowExitMenuItem = true;
24 const bool kOSSupportsOtherBrowsers = false;
25 const bool kDownloadPageHasShowInFolder = true;
26 const bool kSizeTabButtonToTopOfTabStrip = true;
27 const bool kBootstrapSyncAuthentication = true;
28 const bool kShowOtherBrowsersInAboutMemory = false;
29 const bool kAlwaysOpenIncognitoWindow = true;
30 const bool kShowCancelButtonInTaskManager = true;
31 
32 #elif defined(TOOLKIT_USES_GTK)
33 
34 // 14px = 10.5pt @ 96dpi.
35 const 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.
39 const int kAutocompleteEditFontPixelSizeInPopup =
40     kAutocompleteEditFontPixelSize * 5.0 / 6.0;
41 
42 #if defined(TOOLKIT_VIEWS)
43 const bool kCanToggleSystemTitleBar = false;
44 #else
45 const bool kCanToggleSystemTitleBar = true;
46 #endif
47 
48 #endif
49 
50 #if !defined(OS_CHROMEOS)
51 
52 const SessionStartupPref::Type kDefaultSessionStartupType =
53     SessionStartupPref::DEFAULT;
54 const int kMiniTabWidth = 56;
55 const bool kRestorePopups = false;
56 const bool kShowImportOnBookmarkBar = true;
57 const bool kDownloadPageHasShowInFolder = true;
58 #if defined(OS_MACOSX)
59 const bool kShowExitMenuItem = false;
60 #else
61 const bool kShowExitMenuItem = true;
62 #endif
63 const bool kOSSupportsOtherBrowsers = true;
64 const bool kSizeTabButtonToTopOfTabStrip = false;
65 const bool kBootstrapSyncAuthentication = false;
66 const bool kShowOtherBrowsersInAboutMemory = true;
67 const bool kAlwaysOpenIncognitoWindow = false;
68 const bool kShowCancelButtonInTaskManager = false;
69 #endif
70 
71 const bool kEnableTouchIcon = false;
72 
73 #if defined(OS_MACOSX)
74 const bool kBrowserAliveWithNoWindows = true;
75 #else
76 const bool kBrowserAliveWithNoWindows = false;
77 #endif
78 
79 bool bookmarks_enabled = true;
80 
81 bool skip_restore = false;
82 
83 bool enable_help_app = true;
84 
85 }  // namespace browser_defaults
86