summaryrefslogtreecommitdiffstats
path: root/chrome/browser/defaults.h
diff options
context:
space:
mode:
authorsky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-07-16 04:19:19 +0000
committersky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-07-16 04:19:19 +0000
commiteaf93d40a1230139c2e5b8b0772930f8a4aa3660 (patch)
treee9ea0f13bb94f60ae0b898e33f396540bf5d3640 /chrome/browser/defaults.h
parentb195ea8977609c6f04c0ba1c7922b596a224e126 (diff)
downloadchromium_src-eaf93d40a1230139c2e5b8b0772930f8a4aa3660.zip
chromium_src-eaf93d40a1230139c2e5b8b0772930f8a4aa3660.tar.gz
chromium_src-eaf93d40a1230139c2e5b8b0772930f8a4aa3660.tar.bz2
Makes the default for what to do on startup be restore last session on
chrome os as well as changing autocomplete edit/popup font sizes on chrome os. As suggested by Evan I've moved these options into chrome/browser/defaults.h so that we don't have a ton of #ifdefs every where. BUG=none TEST=none Review URL: http://codereview.chromium.org/155576 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@20852 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/defaults.h')
-rw-r--r--chrome/browser/defaults.h38
1 files changed, 38 insertions, 0 deletions
diff --git a/chrome/browser/defaults.h b/chrome/browser/defaults.h
new file mode 100644
index 0000000..9ce7250
--- /dev/null
+++ b/chrome/browser/defaults.h
@@ -0,0 +1,38 @@
+// Copyright (c) 2009 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+// Defines various defaults whose values varies depending upon the OS.
+
+#ifndef CHROME_BROWSER_DEFAULTS_H_
+#define CHROME_BROWSER_DEFAULTS_H_
+
+#include "build/build_config.h"
+#include "chrome/browser/session_startup_pref.h"
+
+namespace browser_defaults {
+
+#if defined(OS_LINUX)
+
+// Whether the size of the autocomplete's font should be changed.
+extern const bool kForceAutocompleteEditFontSize;
+
+// Size of the font used in the autocomplete popup.
+extern const int kAutocompletePopupFontSize;
+
+#endif
+
+// The default value for session startup.
+extern const SessionStartupPref::Type kDefaultSessionStartupType;
+
+// On launching Chrome should we show the crash info bar if Chrome crashed?
+extern const bool kSuppressCrashInfoBar;
+
+// Should we restore the last session if the user opted to restore the last
+// session on startup and Chrome crashed?
+// TODO(sky): this should be removed once Chrome OS cleanly shuts down Chrome.
+extern const bool kRestoreAfterCrash;
+
+} // namespace browser_defaults
+
+#endif // CHROME_BROWSER_DEFAULTS_H_