| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 kPinnedTabWidth = 64; | 17 const int kPinnedTabWidth = 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 = false; | 21 const bool kShowExitMenuItem = false; |
| 22 const bool kShowAboutMenuItem = true; | 22 const bool kShowAboutMenuItem = true; |
| 23 const bool kOSSupportsOtherBrowsers = false; | 23 const bool kOSSupportsOtherBrowsers = false; |
| 24 | 24 const bool kDownloadPageHasShowInFolder = false; |
| 25 #elif defined(OS_LINUX) | 25 #elif defined(OS_LINUX) |
| 26 | 26 |
| 27 // 13.4px = 10pt @ 96dpi. | 27 // 13.4px = 10pt @ 96dpi. |
| 28 const double kAutocompleteEditFontPixelSize = 13.4; | 28 const double kAutocompleteEditFontPixelSize = 13.4; |
| 29 | 29 |
| 30 // On Windows, popup windows' autocomplete box have a font 5/6 the size of a | 30 // On Windows, popup windows' autocomplete box have a font 5/6 the size of a |
| 31 // regular window, which we duplicate here for GTK. | 31 // regular window, which we duplicate here for GTK. |
| 32 const double kAutocompleteEditFontPixelSizeInPopup = | 32 const double kAutocompleteEditFontPixelSizeInPopup = |
| 33 kAutocompleteEditFontPixelSize * 5.0 / 6.0; | 33 kAutocompleteEditFontPixelSize * 5.0 / 6.0; |
| 34 | 34 |
| 35 const int kAutocompletePopupFontSize = 10; | 35 const int kAutocompletePopupFontSize = 10; |
| 36 | 36 |
| 37 #if defined(TOOLKIT_VIEWS) | 37 #if defined(TOOLKIT_VIEWS) |
| 38 const bool kCanToggleSystemTitleBar = false; | 38 const bool kCanToggleSystemTitleBar = false; |
| 39 #else | 39 #else |
| 40 const bool kCanToggleSystemTitleBar = true; | 40 const bool kCanToggleSystemTitleBar = true; |
| 41 #endif | 41 #endif |
| 42 | 42 |
| 43 #endif | 43 #endif |
| 44 | 44 |
| 45 #if !defined(OS_CHROMEOS) | 45 #if !defined(OS_CHROMEOS) |
| 46 | 46 |
| 47 const SessionStartupPref::Type kDefaultSessionStartupType = | 47 const SessionStartupPref::Type kDefaultSessionStartupType = |
| 48 SessionStartupPref::DEFAULT; | 48 SessionStartupPref::DEFAULT; |
| 49 const int kPinnedTabWidth = 56; | 49 const int kPinnedTabWidth = 56; |
| 50 const bool kRestorePopups = false; | 50 const bool kRestorePopups = false; |
| 51 const bool kShowImportOnBookmarkBar = true; | 51 const bool kShowImportOnBookmarkBar = true; |
| 52 const bool kDownloadPageHasShowInFolder = true; |
| 52 #if defined(OS_MACOSX) | 53 #if defined(OS_MACOSX) |
| 53 const bool kShowExitMenuItem = false; | 54 const bool kShowExitMenuItem = false; |
| 54 const bool kShowAboutMenuItem = false; | 55 const bool kShowAboutMenuItem = false; |
| 55 #else | 56 #else |
| 56 const bool kShowExitMenuItem = true; | 57 const bool kShowExitMenuItem = true; |
| 57 const bool kShowAboutMenuItem = true; | 58 const bool kShowAboutMenuItem = true; |
| 58 #endif | 59 #endif |
| 59 const bool kOSSupportsOtherBrowsers = true; | 60 const bool kOSSupportsOtherBrowsers = true; |
| 60 | 61 |
| 61 #endif | 62 #endif |
| 62 | 63 |
| 63 #if defined(OS_MACOSX) | 64 #if defined(OS_MACOSX) |
| 64 const bool kBrowserAliveWithNoWindows = true; | 65 const bool kBrowserAliveWithNoWindows = true; |
| 65 #else | 66 #else |
| 66 const bool kBrowserAliveWithNoWindows = false; | 67 const bool kBrowserAliveWithNoWindows = false; |
| 67 #endif | 68 #endif |
| 68 | 69 |
| 69 } // namespace browser_defaults | 70 } // namespace browser_defaults |
| OLD | NEW |