OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "chrome/browser/defaults.h" | 5 #include "chrome/browser/defaults.h" |
6 | 6 |
7 namespace browser_defaults { | 7 namespace browser_defaults { |
8 | 8 |
9 #if defined(USE_AURA) || defined(OS_CHROMEOS) | |
10 const bool kOSSupportsOtherBrowsers = false; | |
11 #else | |
12 const bool kOSSupportsOtherBrowsers = true; | |
13 #endif | |
14 | |
15 #if defined(OS_CHROMEOS) | 9 #if defined(OS_CHROMEOS) |
16 | 10 |
17 // Make the regular omnibox text two points larger than the nine-point font | 11 // Make the regular omnibox text two points larger than the nine-point font |
18 // used in the tab strip (11pt / 72pt/in * 96px/in = 14.667px). | 12 // used in the tab strip (11pt / 72pt/in * 96px/in = 14.667px). |
19 const int kAutocompleteEditFontPixelSize = 15; | 13 const int kAutocompleteEditFontPixelSize = 15; |
20 | 14 |
21 const int kAutocompleteEditFontPixelSizeInPopup = 10; | 15 const int kAutocompleteEditFontPixelSizeInPopup = 10; |
22 | 16 |
23 const SessionStartupPref::Type kDefaultSessionStartupType = | 17 const SessionStartupPref::Type kDefaultSessionStartupType = |
24 SessionStartupPref::LAST; | 18 SessionStartupPref::LAST; |
25 const int kMiniTabWidth = 64; | 19 const int kMiniTabWidth = 64; |
26 const bool kCanToggleSystemTitleBar = false; | 20 const bool kCanToggleSystemTitleBar = false; |
27 const bool kRestorePopups = false; | 21 const bool kRestorePopups = false; |
28 const bool kShowImportOnBookmarkBar = false; | 22 const bool kShowImportOnBookmarkBar = false; |
29 const bool kShowExitMenuItem = true; | 23 const bool kShowExitMenuItem = true; |
| 24 const bool kOSSupportsOtherBrowsers = false; |
30 const bool kDownloadPageHasShowInFolder = true; | 25 const bool kDownloadPageHasShowInFolder = true; |
31 const bool kSizeTabButtonToTopOfTabStrip = true; | 26 const bool kSizeTabButtonToTopOfTabStrip = true; |
32 const bool kBootstrapSyncAuthentication = true; | 27 const bool kBootstrapSyncAuthentication = true; |
33 const bool kShowOtherBrowsersInAboutMemory = false; | 28 const bool kShowOtherBrowsersInAboutMemory = false; |
34 const bool kAlwaysOpenIncognitoWindow = true; | 29 const bool kAlwaysOpenIncognitoWindow = true; |
35 const bool kShowCancelButtonInTaskManager = true; | 30 const bool kShowCancelButtonInTaskManager = true; |
36 | 31 |
37 #elif defined(TOOLKIT_USES_GTK) | 32 #elif defined(TOOLKIT_USES_GTK) |
38 | 33 |
39 // 14px = 10.5pt @ 96dpi. | 34 // 14px = 10.5pt @ 96dpi. |
(...skipping 18 matching lines...) Expand all Loading... |
58 SessionStartupPref::DEFAULT; | 53 SessionStartupPref::DEFAULT; |
59 const int kMiniTabWidth = 56; | 54 const int kMiniTabWidth = 56; |
60 const bool kRestorePopups = false; | 55 const bool kRestorePopups = false; |
61 const bool kShowImportOnBookmarkBar = true; | 56 const bool kShowImportOnBookmarkBar = true; |
62 const bool kDownloadPageHasShowInFolder = true; | 57 const bool kDownloadPageHasShowInFolder = true; |
63 #if defined(OS_MACOSX) | 58 #if defined(OS_MACOSX) |
64 const bool kShowExitMenuItem = false; | 59 const bool kShowExitMenuItem = false; |
65 #else | 60 #else |
66 const bool kShowExitMenuItem = true; | 61 const bool kShowExitMenuItem = true; |
67 #endif | 62 #endif |
| 63 const bool kOSSupportsOtherBrowsers = true; |
68 const bool kSizeTabButtonToTopOfTabStrip = false; | 64 const bool kSizeTabButtonToTopOfTabStrip = false; |
69 const bool kBootstrapSyncAuthentication = false; | 65 const bool kBootstrapSyncAuthentication = false; |
70 const bool kShowOtherBrowsersInAboutMemory = true; | 66 const bool kShowOtherBrowsersInAboutMemory = true; |
71 const bool kAlwaysOpenIncognitoWindow = false; | 67 const bool kAlwaysOpenIncognitoWindow = false; |
72 const bool kShowCancelButtonInTaskManager = false; | 68 const bool kShowCancelButtonInTaskManager = false; |
73 #endif | 69 #endif |
74 | 70 |
75 #if defined(OS_MACOSX) | 71 #if defined(OS_MACOSX) |
76 const bool kBrowserAliveWithNoWindows = true; | 72 const bool kBrowserAliveWithNoWindows = true; |
77 #else | 73 #else |
(...skipping 25 matching lines...) Expand all Loading... |
103 const int kInfoBarBorderPaddingVertical = 5; | 99 const int kInfoBarBorderPaddingVertical = 5; |
104 #endif | 100 #endif |
105 | 101 |
106 bool bookmarks_enabled = true; | 102 bool bookmarks_enabled = true; |
107 | 103 |
108 bool skip_restore = false; | 104 bool skip_restore = false; |
109 | 105 |
110 bool enable_help_app = true; | 106 bool enable_help_app = true; |
111 | 107 |
112 } // namespace browser_defaults | 108 } // namespace browser_defaults |
OLD | NEW |