Add a minor text member to ui::MenuModel.
[chromium-blink-merge.git] / chrome / browser / defaults.cc
blob750f05cfbde9ec6b642000ff44f155f82156e193
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 // Windows and Chrome OS have bigger shadows in the tab art.
21 const int kMiniTabWidth = 64;
22 #else
23 const int kMiniTabWidth = 56;
24 #endif
26 const bool kRestorePopups = false;
28 #if defined(OS_CHROMEOS) || defined(OS_MACOSX)
29 const bool kBrowserAliveWithNoWindows = true;
30 const bool kShowExitMenuItem = false;
31 #else
32 const bool kBrowserAliveWithNoWindows = false;
33 const bool kShowExitMenuItem = true;
34 #endif
36 #if defined(OS_CHROMEOS)
37 const bool kShowFeedbackMenuItem = true;
38 const bool kShowHelpMenuItemIcon = true;
39 const bool kShowUpgradeMenuItem = false;
40 const bool kShowImportOnBookmarkBar = false;
41 const bool kAlwaysOpenIncognitoWindow = true;
42 const bool kAlwaysCreateTabbedBrowserOnSessionRestore = false;
43 #else
44 const bool kShowFeedbackMenuItem = false;
45 const bool kShowHelpMenuItemIcon = false;
46 const bool kShowUpgradeMenuItem = true;
47 const bool kShowImportOnBookmarkBar = true;
48 const bool kAlwaysOpenIncognitoWindow = false;
49 const bool kAlwaysCreateTabbedBrowserOnSessionRestore = true;
50 #endif
52 #if defined(OS_CHROMEOS)
53 const bool kOSSupportsOtherBrowsers = false;
54 #else
55 const bool kOSSupportsOtherBrowsers = true;
56 #endif
58 const bool kDownloadPageHasShowInFolder = true;
59 const bool kSizeTabButtonToTopOfTabStrip = false;
61 #if defined(OS_CHROMEOS) || defined(OS_ANDROID)
62 const bool kSyncAutoStarts = true;
63 const bool kShowOtherBrowsersInAboutMemory = false;
64 #else
65 const bool kSyncAutoStarts = false;
66 const bool kShowOtherBrowsersInAboutMemory = true;
67 #endif
69 #if defined(TOOLKIT_GTK)
70 const bool kShowCancelButtonInTaskManager = true;
71 #else
72 const bool kShowCancelButtonInTaskManager = false;
73 #endif
75 const ui::ResourceBundle::FontStyle kAssociatedNetworkFontStyle =
76 ui::ResourceBundle::BoldFont;
78 const int kInfoBarBorderPaddingVertical = 5;
80 #if !defined(OS_ANDROID)
81 const bool kPasswordEchoEnabled = false;
82 #endif
84 bool bookmarks_enabled = true;
86 bool enable_help_app = true;
88 } // namespace browser_defaults