Upstream version 11.39.250.0
[platform/framework/web/crosswalk.git] / src / chrome / browser / defaults.cc
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(TOOLKIT_VIEWS)
20 #if defined(OS_WIN)
21 const bool kShowLinkDisambiguationPopup = true;
22 #else
23 const bool kShowLinkDisambiguationPopup = false;
24 #endif
25 #endif
26
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
34
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
48
49 const bool kDownloadPageHasShowInFolder = true;
50 const bool kSizeTabButtonToTopOfTabStrip = false;
51
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
59
60 #if defined(OS_LINUX) && !defined(OS_CHROMEOS)
61 const bool kScrollEventChangesTab = true;
62 #else
63 const bool kScrollEventChangesTab = false;
64 #endif
65
66 const ui::ResourceBundle::FontStyle kAssociatedNetworkFontStyle =
67     ui::ResourceBundle::BoldFont;
68
69 #if !defined(OS_ANDROID)
70 const bool kPasswordEchoEnabled = false;
71 #endif
72
73 bool bookmarks_enabled = true;
74
75 bool enable_help_app = true;
76
77 }  // namespace browser_defaults