| 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 bool kSuppressCrashInfoBar = true; | 17 const bool kSuppressCrashInfoBar = true; |
| 18 const bool kRestoreAfterCrash = true; | 18 const bool kRestoreAfterCrash = true; |
| 19 | 19 |
| 20 #elif defined(OS_LINUX) | 20 #elif defined(OS_LINUX) || defined(OS_FREEBSD) |
| 21 | 21 |
| 22 // 13.4px = 10pt @ 96dpi. | 22 // 13.4px = 10pt @ 96dpi. |
| 23 const double kAutocompleteEditFontPixelSize = 13.4; | 23 const double kAutocompleteEditFontPixelSize = 13.4; |
| 24 | 24 |
| 25 // On Windows, popup windows' autocomplete box have a font 5/6 the size of a | 25 // On Windows, popup windows' autocomplete box have a font 5/6 the size of a |
| 26 // regular window, which we duplicate here for GTK. | 26 // regular window, which we duplicate here for GTK. |
| 27 const double kAutocompleteEditFontPixelSizeInPopup = | 27 const double kAutocompleteEditFontPixelSizeInPopup = |
| 28 kAutocompleteEditFontPixelSize * 5.0 / 6.0; | 28 kAutocompleteEditFontPixelSize * 5.0 / 6.0; |
| 29 | 29 |
| 30 const int kAutocompletePopupFontSize = 10; | 30 const int kAutocompletePopupFontSize = 10; |
| 31 | 31 |
| 32 #endif | 32 #endif |
| 33 | 33 |
| 34 #if !defined(OS_CHROMEOS) | 34 #if !defined(OS_CHROMEOS) |
| 35 | 35 |
| 36 const SessionStartupPref::Type kDefaultSessionStartupType = | 36 const SessionStartupPref::Type kDefaultSessionStartupType = |
| 37 SessionStartupPref::DEFAULT; | 37 SessionStartupPref::DEFAULT; |
| 38 const bool kSuppressCrashInfoBar = false; | 38 const bool kSuppressCrashInfoBar = false; |
| 39 const bool kRestoreAfterCrash = false; | 39 const bool kRestoreAfterCrash = false; |
| 40 | 40 |
| 41 #endif | 41 #endif |
| 42 | 42 |
| 43 } // namespace browser_defaults | 43 } // namespace browser_defaults |
| OLD | NEW |