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

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

Issue 482006: Make a shared app menu model and update win and mac to use it. Remove the NSM... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 11 years 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/views/toolbar_view.h » ('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) 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 kOSSupportsOtherBrowsers = false; 23 const bool kOSSupportsOtherBrowsers = false;
23 24
24 #elif defined(OS_LINUX) 25 #elif defined(OS_LINUX)
25 26
26 // 13.4px = 10pt @ 96dpi. 27 // 13.4px = 10pt @ 96dpi.
27 const double kAutocompleteEditFontPixelSize = 13.4; 28 const double kAutocompleteEditFontPixelSize = 13.4;
28 29
29 // 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
30 // regular window, which we duplicate here for GTK. 31 // regular window, which we duplicate here for GTK.
31 const double kAutocompleteEditFontPixelSizeInPopup = 32 const double kAutocompleteEditFontPixelSizeInPopup =
32 kAutocompleteEditFontPixelSize * 5.0 / 6.0; 33 kAutocompleteEditFontPixelSize * 5.0 / 6.0;
33 34
34 const int kAutocompletePopupFontSize = 10; 35 const int kAutocompletePopupFontSize = 10;
35 36
36 #if defined(TOOLKIT_VIEWS) 37 #if defined(TOOLKIT_VIEWS)
37 const bool kCanToggleSystemTitleBar = false; 38 const bool kCanToggleSystemTitleBar = false;
38 #else 39 #else
39 const bool kCanToggleSystemTitleBar = true; 40 const bool kCanToggleSystemTitleBar = true;
40 #endif 41 #endif
41 42
42 #endif 43 #endif
43 44
44 #if !defined(OS_CHROMEOS) 45 #if !defined(OS_CHROMEOS)
45 46
46 const SessionStartupPref::Type kDefaultSessionStartupType = 47 const SessionStartupPref::Type kDefaultSessionStartupType =
47 SessionStartupPref::DEFAULT; 48 SessionStartupPref::DEFAULT;
48 const int kPinnedTabWidth = 56; 49 const int kPinnedTabWidth = 56;
49 const bool kRestorePopups = false; 50 const bool kRestorePopups = false;
50 const bool kShowImportOnBookmarkBar = true; 51 const bool kShowImportOnBookmarkBar = true;
52 #if defined(OS_MACOSX)
53 const bool kShowExitMenuItem = false;
54 const bool kShowAboutMenuItem = false;
55 #else
51 const bool kShowExitMenuItem = true; 56 const bool kShowExitMenuItem = true;
57 const bool kShowAboutMenuItem = true;
58 #endif
52 const bool kOSSupportsOtherBrowsers = true; 59 const bool kOSSupportsOtherBrowsers = true;
53 60
54 #endif 61 #endif
55 62
56 #if defined(OS_MACOSX) 63 #if defined(OS_MACOSX)
57 const bool kBrowserAliveWithNoWindows = true; 64 const bool kBrowserAliveWithNoWindows = true;
58 #else 65 #else
59 const bool kBrowserAliveWithNoWindows = false; 66 const bool kBrowserAliveWithNoWindows = false;
60 #endif 67 #endif
61 68
62 } // namespace browser_defaults 69 } // namespace browser_defaults
OLDNEW
« no previous file with comments | « chrome/browser/defaults.h ('k') | chrome/browser/views/toolbar_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698