Upstream version 5.34.92.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 const bool kRestorePopups = false;
20
21 #if defined(OS_CHROMEOS) || defined(OS_MACOSX)
22 const bool kBrowserAliveWithNoWindows = true;
23 const bool kShowExitMenuItem = false;
24 #else
25 const bool kBrowserAliveWithNoWindows = false;
26 const bool kShowExitMenuItem = true;
27 #endif
28
29 #if defined(OS_CHROMEOS)
30 const bool kShowHelpMenuItemIcon = true;
31 const bool kShowUpgradeMenuItem = false;
32 const bool kShowImportOnBookmarkBar = false;
33 const bool kAlwaysOpenIncognitoWindow = true;
34 const bool kAlwaysCreateTabbedBrowserOnSessionRestore = false;
35 #else
36 const bool kShowHelpMenuItemIcon = false;
37 const bool kShowUpgradeMenuItem = true;
38 const bool kShowImportOnBookmarkBar = true;
39 const bool kAlwaysOpenIncognitoWindow = false;
40 const bool kAlwaysCreateTabbedBrowserOnSessionRestore = true;
41 #endif
42
43 const bool kDownloadPageHasShowInFolder = true;
44 const bool kSizeTabButtonToTopOfTabStrip = false;
45
46 #if defined(OS_CHROMEOS) || defined(OS_ANDROID)
47 const bool kSyncAutoStarts = true;
48 const bool kShowOtherBrowsersInAboutMemory = false;
49 #else
50 const bool kSyncAutoStarts = false;
51 const bool kShowOtherBrowsersInAboutMemory = true;
52 #endif
53
54 #if defined(TOOLKIT_GTK)
55 const bool kShowCancelButtonInTaskManager = true;
56 #else
57 const bool kShowCancelButtonInTaskManager = false;
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