1ddb351dbec246cf1fab5ec20d2d5520909041de1Kristian Monsen// Copyright (c) 2011 The Chromium Authors. All rights reserved.
2c407dc5cd9bdc5668497f21b26b09d988ab439deBen Murdoch// Use of this source code is governed by a BSD-style license that can be
3c407dc5cd9bdc5668497f21b26b09d988ab439deBen Murdoch// found in the LICENSE file.
4c407dc5cd9bdc5668497f21b26b09d988ab439deBen Murdoch
5c407dc5cd9bdc5668497f21b26b09d988ab439deBen Murdoch// Defines various defaults whose values varies depending upon the OS.
6c407dc5cd9bdc5668497f21b26b09d988ab439deBen Murdoch
7c407dc5cd9bdc5668497f21b26b09d988ab439deBen Murdoch#ifndef CHROME_BROWSER_DEFAULTS_H_
8c407dc5cd9bdc5668497f21b26b09d988ab439deBen Murdoch#define CHROME_BROWSER_DEFAULTS_H_
93345a6884c488ff3a535c2c9acdd33d74b37e311Iain Merrick#pragma once
10c407dc5cd9bdc5668497f21b26b09d988ab439deBen Murdoch
11c407dc5cd9bdc5668497f21b26b09d988ab439deBen Murdoch#include "build/build_config.h"
123345a6884c488ff3a535c2c9acdd33d74b37e311Iain Merrick#include "chrome/browser/prefs/session_startup_pref.h"
13c407dc5cd9bdc5668497f21b26b09d988ab439deBen Murdoch
14c407dc5cd9bdc5668497f21b26b09d988ab439deBen Murdochnamespace browser_defaults {
15c407dc5cd9bdc5668497f21b26b09d988ab439deBen Murdoch
16c407dc5cd9bdc5668497f21b26b09d988ab439deBen Murdoch#if defined(USE_X11)
17c407dc5cd9bdc5668497f21b26b09d988ab439deBen Murdoch
1872a454cd3513ac24fbdd0e0cb9ad70b86a99b801Kristian Monsen// Size of the font used in the autocomplete box for normal windows, in pixels.
1972a454cd3513ac24fbdd0e0cb9ad70b86a99b801Kristian Monsenextern const int kAutocompleteEditFontPixelSize;
20c407dc5cd9bdc5668497f21b26b09d988ab439deBen Murdoch
2172a454cd3513ac24fbdd0e0cb9ad70b86a99b801Kristian Monsen// Size of the font used in the autocomplete box for popup windows, in pixels.
2272a454cd3513ac24fbdd0e0cb9ad70b86a99b801Kristian Monsenextern const int kAutocompleteEditFontPixelSizeInPopup;
23c407dc5cd9bdc5668497f21b26b09d988ab439deBen Murdoch
24c407dc5cd9bdc5668497f21b26b09d988ab439deBen Murdoch// Can the user toggle the system title bar?
25c407dc5cd9bdc5668497f21b26b09d988ab439deBen Murdochextern const bool kCanToggleSystemTitleBar;
26c407dc5cd9bdc5668497f21b26b09d988ab439deBen Murdoch
27c407dc5cd9bdc5668497f21b26b09d988ab439deBen Murdoch#endif
28c407dc5cd9bdc5668497f21b26b09d988ab439deBen Murdoch
29c407dc5cd9bdc5668497f21b26b09d988ab439deBen Murdoch// The default value for session startup.
30c407dc5cd9bdc5668497f21b26b09d988ab439deBen Murdochextern const SessionStartupPref::Type kDefaultSessionStartupType;
31c407dc5cd9bdc5668497f21b26b09d988ab439deBen Murdoch
32c407dc5cd9bdc5668497f21b26b09d988ab439deBen Murdoch// Width of mini-tabs.
33c407dc5cd9bdc5668497f21b26b09d988ab439deBen Murdochextern const int kMiniTabWidth;
34c407dc5cd9bdc5668497f21b26b09d988ab439deBen Murdoch
35c407dc5cd9bdc5668497f21b26b09d988ab439deBen Murdoch// Should session restore restore popup windows?
36c407dc5cd9bdc5668497f21b26b09d988ab439deBen Murdochextern const bool kRestorePopups;
37c407dc5cd9bdc5668497f21b26b09d988ab439deBen Murdoch
38c407dc5cd9bdc5668497f21b26b09d988ab439deBen Murdoch// Can the browser be alive without any browser windows?
39c407dc5cd9bdc5668497f21b26b09d988ab439deBen Murdochextern const bool kBrowserAliveWithNoWindows;
40c407dc5cd9bdc5668497f21b26b09d988ab439deBen Murdoch
41c407dc5cd9bdc5668497f21b26b09d988ab439deBen Murdoch// Should a link be shown on the bookmark bar allowing the user to import
42c407dc5cd9bdc5668497f21b26b09d988ab439deBen Murdoch// bookmarks?
43c407dc5cd9bdc5668497f21b26b09d988ab439deBen Murdochextern const bool kShowImportOnBookmarkBar;
44c407dc5cd9bdc5668497f21b26b09d988ab439deBen Murdoch
45c407dc5cd9bdc5668497f21b26b09d988ab439deBen Murdoch// Should the exit menu item be shown in the toolbar menu?
46c407dc5cd9bdc5668497f21b26b09d988ab439deBen Murdochextern const bool kShowExitMenuItem;
47c407dc5cd9bdc5668497f21b26b09d988ab439deBen Murdoch
48c407dc5cd9bdc5668497f21b26b09d988ab439deBen Murdoch// Does the OS support other browsers? If not, operations such as default
49c407dc5cd9bdc5668497f21b26b09d988ab439deBen Murdoch// browser check are not done.
50c407dc5cd9bdc5668497f21b26b09d988ab439deBen Murdochextern const bool kOSSupportsOtherBrowsers;
51c407dc5cd9bdc5668497f21b26b09d988ab439deBen Murdoch
52c407dc5cd9bdc5668497f21b26b09d988ab439deBen Murdoch// Does the download page have the show in folder option?
53c407dc5cd9bdc5668497f21b26b09d988ab439deBen Murdochextern const bool kDownloadPageHasShowInFolder;
54c407dc5cd9bdc5668497f21b26b09d988ab439deBen Murdoch
55c407dc5cd9bdc5668497f21b26b09d988ab439deBen Murdoch// Should the tab strip be sized to the top of the tab strip?
56c407dc5cd9bdc5668497f21b26b09d988ab439deBen Murdochextern const bool kSizeTabButtonToTopOfTabStrip;
57c407dc5cd9bdc5668497f21b26b09d988ab439deBen Murdoch
58c407dc5cd9bdc5668497f21b26b09d988ab439deBen Murdoch// Whether we should bootstrap the sync authentication using cookies instead of
59c407dc5cd9bdc5668497f21b26b09d988ab439deBen Murdoch// asking the user for credentials.
60c407dc5cd9bdc5668497f21b26b09d988ab439deBen Murdochextern const bool kBootstrapSyncAuthentication;
61c407dc5cd9bdc5668497f21b26b09d988ab439deBen Murdoch
62c407dc5cd9bdc5668497f21b26b09d988ab439deBen Murdoch// Should other browsers be shown in about:memory page?
63c407dc5cd9bdc5668497f21b26b09d988ab439deBen Murdochextern const bool kShowOtherBrowsersInAboutMemory;
64c407dc5cd9bdc5668497f21b26b09d988ab439deBen Murdoch
65c407dc5cd9bdc5668497f21b26b09d988ab439deBen Murdoch// Should always open incognito windows when started with --incognito switch?
66c407dc5cd9bdc5668497f21b26b09d988ab439deBen Murdochextern const bool kAlwaysOpenIncognitoWindow;
67c407dc5cd9bdc5668497f21b26b09d988ab439deBen Murdoch
684a5e2dc747d50c653511c68ccb2cfbfb740bd5a7Ben Murdoch// Should the close button be shown in the Task Manager dialog?
694a5e2dc747d50c653511c68ccb2cfbfb740bd5a7Ben Murdochextern const bool kShowCancelButtonInTaskManager;
704a5e2dc747d50c653511c68ccb2cfbfb740bd5a7Ben Murdoch
71ddb351dbec246cf1fab5ec20d2d5520909041de1Kristian Monsen// Are touch icons enabled? False by default.
72ddb351dbec246cf1fab5ec20d2d5520909041de1Kristian Monsenextern const bool kEnableTouchIcon;
73ddb351dbec246cf1fab5ec20d2d5520909041de1Kristian Monsen
743345a6884c488ff3a535c2c9acdd33d74b37e311Iain Merrick//=============================================================================
753345a6884c488ff3a535c2c9acdd33d74b37e311Iain Merrick// Runtime "const" - set only once after parsing command line option and should
763345a6884c488ff3a535c2c9acdd33d74b37e311Iain Merrick// never be modified after that.
773345a6884c488ff3a535c2c9acdd33d74b37e311Iain Merrick
783345a6884c488ff3a535c2c9acdd33d74b37e311Iain Merrick// Are bookmark enabled? True by default.
793345a6884c488ff3a535c2c9acdd33d74b37e311Iain Merrickextern bool bookmarks_enabled;
803345a6884c488ff3a535c2c9acdd33d74b37e311Iain Merrick
814a5e2dc747d50c653511c68ccb2cfbfb740bd5a7Ben Murdoch// Should we skip the user's preference for restore. False by default.
824a5e2dc747d50c653511c68ccb2cfbfb740bd5a7Ben Murdochextern bool skip_restore;
834a5e2dc747d50c653511c68ccb2cfbfb740bd5a7Ben Murdoch
8472a454cd3513ac24fbdd0e0cb9ad70b86a99b801Kristian Monsen// Whether HelpApp is enabled. True by default. This is only used by Chrome OS
8572a454cd3513ac24fbdd0e0cb9ad70b86a99b801Kristian Monsen// today.
8672a454cd3513ac24fbdd0e0cb9ad70b86a99b801Kristian Monsenextern bool enable_help_app;
8772a454cd3513ac24fbdd0e0cb9ad70b86a99b801Kristian Monsen
88c407dc5cd9bdc5668497f21b26b09d988ab439deBen Murdoch}  // namespace browser_defaults
89c407dc5cd9bdc5668497f21b26b09d988ab439deBen Murdoch
90c407dc5cd9bdc5668497f21b26b09d988ab439deBen Murdoch#endif  // CHROME_BROWSER_DEFAULTS_H_
91