Home | History | Annotate | Download | only in browser
      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
      3 // found in the LICENSE file.
      4 
      5 #include "chrome/browser/defaults.h"
      6 
      7 namespace browser_defaults {
      8 
      9 #if defined(USE_X11)
     10 #if defined(TOOLKIT_VIEWS)
     11 const bool kCanToggleSystemTitleBar = false;
     12 #else
     13 const bool kCanToggleSystemTitleBar = true;
     14 #endif
     15 #endif
     16 
     17 const int kOmniboxFontPixelSize = 16;
     18 
     19 #if defined(TOOLKIT_VIEWS)
     20 // Windows and Chrome OS have bigger shadows in the tab art.
     21 const int kMiniTabWidth = 64;
     22 #else
     23 const int kMiniTabWidth = 56;
     24 #endif
     25 
     26 const bool kRestorePopups = false;
     27 
     28 #if defined(OS_CHROMEOS) || defined(OS_MACOSX)
     29 const bool kBrowserAliveWithNoWindows = true;
     30 const bool kShowExitMenuItem = false;
     31 #else
     32 const bool kBrowserAliveWithNoWindows = false;
     33 const bool kShowExitMenuItem = true;
     34 #endif
     35 
     36 #if defined(OS_CHROMEOS)
     37 const bool kShowFeedbackMenuItem = true;
     38 const bool kShowHelpMenuItemIcon = true;
     39 const bool kShowUpgradeMenuItem = false;
     40 const bool kShowImportOnBookmarkBar = false;
     41 const bool kAlwaysOpenIncognitoWindow = true;
     42 const bool kAlwaysCreateTabbedBrowserOnSessionRestore = false;
     43 #else
     44 const bool kShowFeedbackMenuItem = false;
     45 const bool kShowHelpMenuItemIcon = false;
     46 const bool kShowUpgradeMenuItem = true;
     47 const bool kShowImportOnBookmarkBar = true;
     48 const bool kAlwaysOpenIncognitoWindow = false;
     49 const bool kAlwaysCreateTabbedBrowserOnSessionRestore = true;
     50 #endif
     51 
     52 #if defined(OS_CHROMEOS)
     53 const bool kOSSupportsOtherBrowsers = false;
     54 #else
     55 const bool kOSSupportsOtherBrowsers = true;
     56 #endif
     57 
     58 const bool kDownloadPageHasShowInFolder = true;
     59 const bool kSizeTabButtonToTopOfTabStrip = false;
     60 
     61 #if defined(OS_CHROMEOS) || defined(OS_ANDROID)
     62 const bool kSyncAutoStarts = true;
     63 const bool kShowOtherBrowsersInAboutMemory = false;
     64 #else
     65 const bool kSyncAutoStarts = false;
     66 const bool kShowOtherBrowsersInAboutMemory = true;
     67 #endif
     68 
     69 #if defined(TOOLKIT_GTK)
     70 const bool kShowCancelButtonInTaskManager = true;
     71 #else
     72 const bool kShowCancelButtonInTaskManager = false;
     73 #endif
     74 
     75 const int kBookmarkBarHeight = 28;
     76 
     77 const ui::ResourceBundle::FontStyle kAssociatedNetworkFontStyle =
     78     ui::ResourceBundle::BoldFont;
     79 
     80 const int kInfoBarBorderPaddingVertical = 5;
     81 
     82 #if !defined(OS_ANDROID)
     83 const bool kPasswordEchoEnabled = false;
     84 #endif
     85 
     86 bool bookmarks_enabled = true;
     87 
     88 bool enable_help_app = true;
     89 
     90 }  // namespace browser_defaults
     91