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