Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(77)

Side by Side Diff: chrome/browser/defaults.cc

Issue 15962013: Switch to using the same font in popup window address bars as for normal windows. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 7 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/browser/defaults.h ('k') | chrome/browser/ui/gtk/location_bar_view_gtk.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 16
16 #if defined(OS_CHROMEOS) 17 #if defined(TOOLKIT_GTK)
18 // 14px = 10.5pt @ 96dpi.
19 const int kOmniboxFontPixelSize = 14;
20 #else
17 // Make the regular omnibox text two points larger than the nine-point font 21 // Make the regular omnibox text two points larger than the nine-point font
18 // used in the tab strip (11pt / 72pt/in * 96px/in = 14.667px). 22 // used in the tab strip (11pt / 72pt/in * 96px/in = 14.667px).
19 const int kAutocompleteEditFontPixelSize = 15; 23 const int kOmniboxFontPixelSize = 15;
20 const int kAutocompleteEditFontPixelSizeInPopup = 10;
21 #elif defined(TOOLKIT_GTK)
22 // 14px = 10.5pt @ 96dpi.
23 const int kAutocompleteEditFontPixelSize = 14;
24 // On Windows, popup windows' location text uses a font 5/6 the size of
25 // that in a regular window, which we duplicate here for GTK.
26 const int kAutocompleteEditFontPixelSizeInPopup =
27 kAutocompleteEditFontPixelSize * 5.0 / 6.0;
28 #endif
29 #endif 24 #endif
30 25
31 #if defined(TOOLKIT_VIEWS) 26 #if defined(TOOLKIT_VIEWS)
32 // Windows and Chrome OS have bigger shadows in the tab art. 27 // Windows and Chrome OS have bigger shadows in the tab art.
33 const int kMiniTabWidth = 64; 28 const int kMiniTabWidth = 64;
34 #else 29 #else
35 const int kMiniTabWidth = 56; 30 const int kMiniTabWidth = 56;
36 #endif 31 #endif
37 32
38 const bool kRestorePopups = false; 33 const bool kRestorePopups = false;
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 const bool kPasswordEchoEnabled = true; 90 const bool kPasswordEchoEnabled = true;
96 #else 91 #else
97 const bool kPasswordEchoEnabled = false; 92 const bool kPasswordEchoEnabled = false;
98 #endif 93 #endif
99 94
100 bool bookmarks_enabled = true; 95 bool bookmarks_enabled = true;
101 96
102 bool enable_help_app = true; 97 bool enable_help_app = true;
103 98
104 } // namespace browser_defaults 99 } // namespace browser_defaults
OLDNEW
« no previous file with comments | « chrome/browser/defaults.h ('k') | chrome/browser/ui/gtk/location_bar_view_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698