• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // Copyright (c) 2012 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(USE_X11)
10 #if defined(TOOLKIT_VIEWS)
11 const bool kCanToggleSystemTitleBar = false;
12 #else
13 const bool kCanToggleSystemTitleBar = true;
14 #endif
15 #endif
16 
17 const int kOmniboxFontPixelSize = 16;
18 
19 #if defined(OS_CHROMEOS) || defined(OS_MACOSX)
20 const bool kBrowserAliveWithNoWindows = true;
21 const bool kShowExitMenuItem = false;
22 #else
23 const bool kBrowserAliveWithNoWindows = false;
24 const bool kShowExitMenuItem = true;
25 #endif
26 
27 #if defined(OS_CHROMEOS)
28 const bool kShowHelpMenuItemIcon = true;
29 const bool kShowUpgradeMenuItem = false;
30 const bool kShowImportOnBookmarkBar = false;
31 const bool kAlwaysOpenIncognitoWindow = true;
32 const bool kAlwaysCreateTabbedBrowserOnSessionRestore = false;
33 #else
34 const bool kShowHelpMenuItemIcon = false;
35 const bool kShowUpgradeMenuItem = true;
36 const bool kShowImportOnBookmarkBar = true;
37 const bool kAlwaysOpenIncognitoWindow = false;
38 const bool kAlwaysCreateTabbedBrowserOnSessionRestore = true;
39 #endif
40 
41 const bool kDownloadPageHasShowInFolder = true;
42 const bool kSizeTabButtonToTopOfTabStrip = false;
43 
44 #if defined(OS_CHROMEOS) || defined(OS_ANDROID)
45 const bool kSyncAutoStarts = true;
46 const bool kShowOtherBrowsersInAboutMemory = false;
47 #else
48 const bool kSyncAutoStarts = false;
49 const bool kShowOtherBrowsersInAboutMemory = true;
50 #endif
51 
52 #if defined(OS_LINUX) && !defined(OS_CHROMEOS)
53 const bool kScrollEventChangesTab = true;
54 #else
55 const bool kScrollEventChangesTab = false;
56 #endif
57 
58 const ui::ResourceBundle::FontStyle kAssociatedNetworkFontStyle =
59     ui::ResourceBundle::BoldFont;
60 
61 #if !defined(OS_ANDROID)
62 const bool kPasswordEchoEnabled = false;
63 #endif
64 
65 bool bookmarks_enabled = true;
66 
67 bool enable_help_app = true;
68 
69 }  // namespace browser_defaults
70