OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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(OS_CHROMEOS) | 9 #if defined(OS_CHROMEOS) |
10 | 10 |
11 const double kAutocompleteEditFontPixelSize = 12.0; | 11 const double kAutocompleteEditFontPixelSize = 12.0; |
12 const double kAutocompleteEditFontPixelSizeInPopup = kAutocompletePopupFontSize; | 12 const double kAutocompleteEditFontPixelSizeInPopup = kAutocompletePopupFontSize; |
13 | 13 |
14 const int kAutocompletePopupFontSize = 7; | 14 const int kAutocompletePopupFontSize = 7; |
15 const SessionStartupPref::Type kDefaultSessionStartupType = | 15 const SessionStartupPref::Type kDefaultSessionStartupType = |
16 SessionStartupPref::LAST; | 16 SessionStartupPref::LAST; |
17 const int kMiniTabWidth = 64; | 17 const int kMiniTabWidth = 64; |
18 const bool kCanToggleSystemTitleBar = false; | 18 const bool kCanToggleSystemTitleBar = false; |
19 const bool kRestorePopups = true; | 19 const bool kRestorePopups = true; |
20 const bool kShowImportOnBookmarkBar = false; | 20 const bool kShowImportOnBookmarkBar = false; |
21 const bool kShowExitMenuItem = true; | 21 const bool kShowExitMenuItem = true; |
22 const bool kShowAboutMenuItem = true; | 22 const bool kShowAboutMenuItem = true; |
23 const bool kOSSupportsOtherBrowsers = false; | 23 const bool kOSSupportsOtherBrowsers = false; |
24 const bool kDownloadPageHasShowInFolder = false; | 24 const bool kDownloadPageHasShowInFolder = false; |
25 const bool kSizeTabButtonToTopOfTabStrip = true; | 25 const bool kSizeTabButtonToTopOfTabStrip = true; |
26 const bool kBootstrapSyncAuthentication = true; | 26 const bool kBootstrapSyncAuthentication = true; |
27 const bool kShowOtherBrowsersInAboutMemory = false; | 27 const bool kShowOtherBrowsersInAboutMemory = false; |
28 const bool kShowAppsPanelForNewTab = true; | |
29 | 28 |
30 #elif defined(TOOLKIT_USES_GTK) | 29 #elif defined(TOOLKIT_USES_GTK) |
31 | 30 |
32 // 13.4px = 10pt @ 96dpi. | 31 // 13.4px = 10pt @ 96dpi. |
33 const double kAutocompleteEditFontPixelSize = 13.4; | 32 const double kAutocompleteEditFontPixelSize = 13.4; |
34 | 33 |
35 // On Windows, popup windows' autocomplete box have a font 5/6 the size of a | 34 // On Windows, popup windows' autocomplete box have a font 5/6 the size of a |
36 // regular window, which we duplicate here for GTK. | 35 // regular window, which we duplicate here for GTK. |
37 const double kAutocompleteEditFontPixelSizeInPopup = | 36 const double kAutocompleteEditFontPixelSizeInPopup = |
38 kAutocompleteEditFontPixelSize * 5.0 / 6.0; | 37 kAutocompleteEditFontPixelSize * 5.0 / 6.0; |
(...skipping 20 matching lines...) Expand all Loading... |
59 const bool kShowExitMenuItem = false; | 58 const bool kShowExitMenuItem = false; |
60 const bool kShowAboutMenuItem = false; | 59 const bool kShowAboutMenuItem = false; |
61 #else | 60 #else |
62 const bool kShowExitMenuItem = true; | 61 const bool kShowExitMenuItem = true; |
63 const bool kShowAboutMenuItem = true; | 62 const bool kShowAboutMenuItem = true; |
64 #endif | 63 #endif |
65 const bool kOSSupportsOtherBrowsers = true; | 64 const bool kOSSupportsOtherBrowsers = true; |
66 const bool kSizeTabButtonToTopOfTabStrip = false; | 65 const bool kSizeTabButtonToTopOfTabStrip = false; |
67 const bool kBootstrapSyncAuthentication = false; | 66 const bool kBootstrapSyncAuthentication = false; |
68 const bool kShowOtherBrowsersInAboutMemory = true; | 67 const bool kShowOtherBrowsersInAboutMemory = true; |
69 const bool kShowAppsPanelForNewTab = false; | |
70 #endif | 68 #endif |
71 | 69 |
72 #if defined(OS_MACOSX) | 70 #if defined(OS_MACOSX) |
73 const bool kBrowserAliveWithNoWindows = true; | 71 const bool kBrowserAliveWithNoWindows = true; |
74 #else | 72 #else |
75 const bool kBrowserAliveWithNoWindows = false; | 73 const bool kBrowserAliveWithNoWindows = false; |
76 #endif | 74 #endif |
77 | 75 |
78 } // namespace browser_defaults | 76 } // namespace browser_defaults |
OLD | NEW |