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

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

Issue 8565015: Avoid trying to layout the desktop when its size is set to 0x0 when minimized on Windows. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 1 month 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 | « no previous file | ui/aura/desktop.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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_AURA) || defined(OS_CHROMEOS)
10 const bool kOSSupportsOtherBrowsers = false;
11 #else
12 const bool kOSSupportsOtherBrowsers = true;
13 #endif
14
9 #if defined(OS_CHROMEOS) 15 #if defined(OS_CHROMEOS)
10 16
11 // Make the regular omnibox text two points larger than the nine-point font 17 // Make the regular omnibox text two points larger than the nine-point font
12 // used in the tab strip (11pt / 72pt/in * 96px/in = 14.667px). 18 // used in the tab strip (11pt / 72pt/in * 96px/in = 14.667px).
13 const int kAutocompleteEditFontPixelSize = 15; 19 const int kAutocompleteEditFontPixelSize = 15;
14 20
15 const int kAutocompleteEditFontPixelSizeInPopup = 10; 21 const int kAutocompleteEditFontPixelSizeInPopup = 10;
16 22
17 const SessionStartupPref::Type kDefaultSessionStartupType = 23 const SessionStartupPref::Type kDefaultSessionStartupType =
18 SessionStartupPref::LAST; 24 SessionStartupPref::LAST;
19 const int kMiniTabWidth = 64; 25 const int kMiniTabWidth = 64;
20 const bool kCanToggleSystemTitleBar = false; 26 const bool kCanToggleSystemTitleBar = false;
21 const bool kRestorePopups = false; 27 const bool kRestorePopups = false;
22 const bool kShowImportOnBookmarkBar = false; 28 const bool kShowImportOnBookmarkBar = false;
23 const bool kShowExitMenuItem = true; 29 const bool kShowExitMenuItem = true;
24 const bool kOSSupportsOtherBrowsers = false;
25 const bool kDownloadPageHasShowInFolder = true; 30 const bool kDownloadPageHasShowInFolder = true;
26 const bool kSizeTabButtonToTopOfTabStrip = true; 31 const bool kSizeTabButtonToTopOfTabStrip = true;
27 const bool kBootstrapSyncAuthentication = true; 32 const bool kBootstrapSyncAuthentication = true;
28 const bool kShowOtherBrowsersInAboutMemory = false; 33 const bool kShowOtherBrowsersInAboutMemory = false;
29 const bool kAlwaysOpenIncognitoWindow = true; 34 const bool kAlwaysOpenIncognitoWindow = true;
30 const bool kShowCancelButtonInTaskManager = true; 35 const bool kShowCancelButtonInTaskManager = true;
31 36
32 #elif defined(TOOLKIT_USES_GTK) 37 #elif defined(TOOLKIT_USES_GTK)
33 38
34 // 14px = 10.5pt @ 96dpi. 39 // 14px = 10.5pt @ 96dpi.
(...skipping 18 matching lines...) Expand all
53 SessionStartupPref::DEFAULT; 58 SessionStartupPref::DEFAULT;
54 const int kMiniTabWidth = 56; 59 const int kMiniTabWidth = 56;
55 const bool kRestorePopups = false; 60 const bool kRestorePopups = false;
56 const bool kShowImportOnBookmarkBar = true; 61 const bool kShowImportOnBookmarkBar = true;
57 const bool kDownloadPageHasShowInFolder = true; 62 const bool kDownloadPageHasShowInFolder = true;
58 #if defined(OS_MACOSX) 63 #if defined(OS_MACOSX)
59 const bool kShowExitMenuItem = false; 64 const bool kShowExitMenuItem = false;
60 #else 65 #else
61 const bool kShowExitMenuItem = true; 66 const bool kShowExitMenuItem = true;
62 #endif 67 #endif
63 const bool kOSSupportsOtherBrowsers = true;
64 const bool kSizeTabButtonToTopOfTabStrip = false; 68 const bool kSizeTabButtonToTopOfTabStrip = false;
65 const bool kBootstrapSyncAuthentication = false; 69 const bool kBootstrapSyncAuthentication = false;
66 const bool kShowOtherBrowsersInAboutMemory = true; 70 const bool kShowOtherBrowsersInAboutMemory = true;
67 const bool kAlwaysOpenIncognitoWindow = false; 71 const bool kAlwaysOpenIncognitoWindow = false;
68 const bool kShowCancelButtonInTaskManager = false; 72 const bool kShowCancelButtonInTaskManager = false;
69 #endif 73 #endif
70 74
71 #if defined(OS_MACOSX) 75 #if defined(OS_MACOSX)
72 const bool kBrowserAliveWithNoWindows = true; 76 const bool kBrowserAliveWithNoWindows = true;
73 #else 77 #else
(...skipping 25 matching lines...) Expand all
99 const int kInfoBarBorderPaddingVertical = 5; 103 const int kInfoBarBorderPaddingVertical = 5;
100 #endif 104 #endif
101 105
102 bool bookmarks_enabled = true; 106 bool bookmarks_enabled = true;
103 107
104 bool skip_restore = false; 108 bool skip_restore = false;
105 109
106 bool enable_help_app = true; 110 bool enable_help_app = true;
107 111
108 } // namespace browser_defaults 112 } // namespace browser_defaults
OLDNEW
« no previous file with comments | « no previous file | ui/aura/desktop.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698