OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_X11) | 9 #if defined(USE_X11) |
10 #if defined(TOOLKIT_VIEWS) | 10 #if defined(TOOLKIT_VIEWS) |
11 const bool kCanToggleSystemTitleBar = false; | 11 const bool kCanToggleSystemTitleBar = false; |
12 #else | 12 #else |
13 const bool kCanToggleSystemTitleBar = true; | 13 const bool kCanToggleSystemTitleBar = true; |
14 #endif | 14 #endif |
15 #endif | 15 #endif |
16 | 16 |
17 const int kOmniboxFontPixelSize = 16; | 17 #if defined(TOOLKIT_GTK) |
| 18 // 14px = 10.5pt @ 96dpi. |
| 19 const int kOmniboxFontPixelSize = 14; |
| 20 #else |
| 21 // Make the regular omnibox text two points larger than the nine-point font |
| 22 // used in the tab strip (11pt / 72pt/in * 96px/in = 14.667px). |
| 23 const int kOmniboxFontPixelSize = 15; |
| 24 #endif |
18 | 25 |
19 #if defined(TOOLKIT_VIEWS) | 26 #if defined(TOOLKIT_VIEWS) |
20 // Windows and Chrome OS have bigger shadows in the tab art. | 27 // Windows and Chrome OS have bigger shadows in the tab art. |
21 const int kMiniTabWidth = 64; | 28 const int kMiniTabWidth = 64; |
22 #else | 29 #else |
23 const int kMiniTabWidth = 56; | 30 const int kMiniTabWidth = 56; |
24 #endif | 31 #endif |
25 | 32 |
26 const bool kRestorePopups = false; | 33 const bool kRestorePopups = false; |
27 | 34 |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
83 const bool kPasswordEchoEnabled = true; | 90 const bool kPasswordEchoEnabled = true; |
84 #else | 91 #else |
85 const bool kPasswordEchoEnabled = false; | 92 const bool kPasswordEchoEnabled = false; |
86 #endif | 93 #endif |
87 | 94 |
88 bool bookmarks_enabled = true; | 95 bool bookmarks_enabled = true; |
89 | 96 |
90 bool enable_help_app = true; | 97 bool enable_help_app = true; |
91 | 98 |
92 } // namespace browser_defaults | 99 } // namespace browser_defaults |
OLD | NEW |