Use content::Referrer to pass around referrers in the plugin code
[chromium-blink-merge.git] / chrome / browser / defaults.cc
blobff39b1d759cddcbb7de19387fa7b60ca5046849a
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.
5 #include "chrome/browser/defaults.h"
7 namespace browser_defaults {
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
17 const int kOmniboxFontPixelSize = 16;
19 #if defined(TOOLKIT_VIEWS)
20 #if defined(OS_WIN)
21 const bool kShowLinkDisambiguationPopup = true;
22 #else
23 const bool kShowLinkDisambiguationPopup = false;
24 #endif
25 #endif
27 #if defined(OS_CHROMEOS) || defined(OS_MACOSX)
28 const bool kBrowserAliveWithNoWindows = true;
29 const bool kShowExitMenuItem = false;
30 #else
31 const bool kBrowserAliveWithNoWindows = false;
32 const bool kShowExitMenuItem = true;
33 #endif
35 #if defined(OS_CHROMEOS)
36 const bool kShowHelpMenuItemIcon = true;
37 const bool kShowUpgradeMenuItem = false;
38 const bool kShowImportOnBookmarkBar = false;
39 const bool kAlwaysOpenIncognitoWindow = true;
40 const bool kAlwaysCreateTabbedBrowserOnSessionRestore = false;
41 #else
42 const bool kShowHelpMenuItemIcon = false;
43 const bool kShowUpgradeMenuItem = true;
44 const bool kShowImportOnBookmarkBar = true;
45 const bool kAlwaysOpenIncognitoWindow = false;
46 const bool kAlwaysCreateTabbedBrowserOnSessionRestore = true;
47 #endif
49 const bool kDownloadPageHasShowInFolder = true;
50 const bool kSizeTabButtonToTopOfTabStrip = false;
52 #if defined(OS_CHROMEOS) || defined(OS_ANDROID)
53 const bool kSyncAutoStarts = true;
54 const bool kShowOtherBrowsersInAboutMemory = false;
55 #else
56 const bool kSyncAutoStarts = false;
57 const bool kShowOtherBrowsersInAboutMemory = true;
58 #endif
60 #if defined(OS_LINUX) && !defined(OS_CHROMEOS)
61 const bool kScrollEventChangesTab = true;
62 #else
63 const bool kScrollEventChangesTab = false;
64 #endif
66 const ui::ResourceBundle::FontStyle kAssociatedNetworkFontStyle =
67 ui::ResourceBundle::BoldFont;
69 #if !defined(OS_ANDROID)
70 const bool kPasswordEchoEnabled = false;
71 #endif
73 bool bookmarks_enabled = true;
75 bool enable_help_app = true;
77 } // namespace browser_defaults