Home | History | Annotate | Download | only in common
      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 "content/public/common/renderer_preferences.h"
      6 
      7 #include "third_party/skia/include/core/SkColor.h"
      8 
      9 namespace {
     10 // The touchpad / touchscreen fling profiles are a matched set
     11 // determined via UX experimentation. Do not modify without
     12 // first discussing with rjkroege (at) chromium.org or
     13 // wjmaclean (at) chromium.org.
     14 const float kDefaultAlpha = -5.70762e+03f;
     15 const float kDefaultBeta = 1.72e+02f;
     16 const float kDefaultGamma = 3.7e+00f;
     17 }
     18 
     19 namespace content {
     20 
     21 RendererPreferences::RendererPreferences()
     22     : can_accept_load_drops(true),
     23       should_antialias_text(true),
     24       hinting(RENDERER_PREFERENCES_HINTING_SYSTEM_DEFAULT),
     25       use_autohinter(false),
     26       use_bitmaps(false),
     27       subpixel_rendering(
     28           RENDERER_PREFERENCES_SUBPIXEL_RENDERING_SYSTEM_DEFAULT),
     29       use_subpixel_positioning(false),
     30       focus_ring_color(SkColorSetARGB(255, 229, 151, 0)),
     31       thumb_active_color(SkColorSetRGB(244, 244, 244)),
     32       thumb_inactive_color(SkColorSetRGB(234, 234, 234)),
     33       track_color(SkColorSetRGB(211, 211, 211)),
     34       active_selection_bg_color(SkColorSetRGB(30, 144, 255)),
     35       active_selection_fg_color(SK_ColorWHITE),
     36       inactive_selection_bg_color(SkColorSetRGB(200, 200, 200)),
     37       inactive_selection_fg_color(SkColorSetRGB(50, 50, 50)),
     38       browser_handles_non_local_top_level_requests(false),
     39       browser_handles_all_top_level_requests(false),
     40       browser_handles_all_top_level_link_clicks(false),
     41       caret_blink_interval(0.5),
     42       use_custom_colors(true),
     43       enable_referrers(true),
     44       enable_do_not_track(false),
     45       default_zoom_level(0),
     46       report_frame_name_changes(false),
     47       touchpad_fling_profile(3),
     48       touchscreen_fling_profile(3),
     49       tap_multiple_targets_strategy(TAP_MULTIPLE_TARGETS_STRATEGY_POPUP),
     50       disable_client_blocked_error_page(false),
     51       plugin_fullscreen_allowed(true) {
     52   touchpad_fling_profile[0] = kDefaultAlpha;
     53   touchpad_fling_profile[1] = kDefaultBeta;
     54   touchpad_fling_profile[2] = kDefaultGamma;
     55   touchscreen_fling_profile = touchpad_fling_profile;
     56 }
     57 
     58 RendererPreferences::~RendererPreferences() { }
     59 
     60 }  // namespace content
     61