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

Unified Diff: components/html_viewer/web_preferences.cc

Issue 1677293002: Bye bye Mandoline (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: moar Created 4 years, 10 months 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « components/html_viewer/web_preferences.h ('k') | components/html_viewer/web_socket_handle_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/html_viewer/web_preferences.cc
diff --git a/components/html_viewer/web_preferences.cc b/components/html_viewer/web_preferences.cc
deleted file mode 100644
index 3f57ed297e47a8834f32b7d54764dfb6ffa77b53..0000000000000000000000000000000000000000
--- a/components/html_viewer/web_preferences.cc
+++ /dev/null
@@ -1,187 +0,0 @@
-// Copyright 2015 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.
-
-#include "components/html_viewer/web_preferences.h"
-
-#include "base/strings/string_util.h"
-#include "base/strings/utf_string_conversions.h"
-#include "build/build_config.h"
-#include "third_party/WebKit/public/web/WebSettings.h"
-#include "third_party/icu/source/common/unicode/uchar.h"
-
-namespace html_viewer {
-
-// "Zyyy" is the ISO 15924 script code for undetermined script aka Common.
-const char kCommonScript[] = "Zyyy";
-
-WebPreferences::WebPreferences()
- : default_font_size(16),
- default_fixed_font_size(13),
- minimum_font_size(0),
- minimum_logical_font_size(6),
- default_encoding("ISO-8859-1"),
-#if defined(OS_WIN)
- context_menu_on_mouse_up(true),
-#else
- context_menu_on_mouse_up(false),
-#endif
- javascript_enabled(true),
- web_security_enabled(true),
- javascript_can_open_windows_automatically(true),
- loads_images_automatically(true),
- images_enabled(true),
- // Content sets to true. False for mandoline.
- plugins_enabled(false),
- dom_paste_enabled(false), // enables execCommand("paste")
- shrinks_standalone_images_to_fit(true),
- uses_universal_detector(false), // Disabled: page cycler regression
- text_areas_are_resizable(true),
- allow_scripts_to_close_windows(false),
- remote_fonts_enabled(true),
- javascript_can_access_clipboard(false),
- xslt_enabled(true),
- xss_auditor_enabled(true),
- dns_prefetching_enabled(true),
- data_saver_enabled(false),
- local_storage_enabled(false),
- databases_enabled(false),
- application_cache_enabled(false),
- tabs_to_links(true),
- caret_browsing_enabled(false),
- hyperlink_auditing_enabled(true),
- is_online(true),
- net_info_connection_type(net::NetworkChangeNotifier::CONNECTION_NONE),
- net_info_max_bandwidth_mbps(
- net::NetworkChangeNotifier::GetMaxBandwidthForConnectionSubtype(
- net::NetworkChangeNotifier::SUBTYPE_NONE)),
- allow_universal_access_from_file_urls(false),
- allow_file_access_from_file_urls(false),
- webaudio_enabled(false),
- experimental_webgl_enabled(false),
- pepper_3d_enabled(false),
- // Mandoline turns off flash.
- flash_3d_enabled(false),
- flash_stage3d_enabled(false),
- flash_stage3d_baseline_enabled(false),
- gl_multisampling_enabled(true),
- privileged_webgl_extensions_enabled(false),
- webgl_errors_to_console_enabled(true),
- mock_scrollbars_enabled(false),
- asynchronous_spell_checking_enabled(false),
- unified_textchecker_enabled(false),
- accelerated_2d_canvas_enabled(false),
- minimum_accelerated_2d_canvas_size(257 * 256),
- antialiased_2d_canvas_disabled(false),
- antialiased_clips_2d_canvas_enabled(false),
- accelerated_2d_canvas_msaa_sample_count(0),
- accelerated_filters_enabled(false),
- deferred_filters_enabled(false),
- container_culling_enabled(false),
- allow_displaying_insecure_content(true),
- allow_running_insecure_content(false),
- disable_reading_from_canvas(false),
- strict_mixed_content_checking(false),
- strict_powerful_feature_restrictions(false),
- strictly_block_blockable_mixed_content(false),
- block_mixed_plugin_content(false),
- password_echo_enabled(false),
- should_print_backgrounds(false),
- should_clear_document_background(true),
- enable_scroll_animator(false),
- touch_enabled(true),
- device_supports_touch(false),
- device_supports_mouse(true),
- // TODO(rjkroege): This is mandatory for mandoline page cyclers.
- // http://crbug.com:542885
- touch_adjustment_enabled(true),
- pointer_events_max_touch_points(11),
- available_pointer_types(0),
- primary_pointer_type(ui::POINTER_TYPE_NONE),
- available_hover_types(0),
- primary_hover_type(ui::HOVER_TYPE_NONE),
- sync_xhr_in_documents_enabled(true),
- image_color_profiles_enabled(false),
- should_respect_image_orientation(false),
- number_of_cpu_cores(1),
-#if defined(OS_MACOSX)
- editing_behavior(EDITING_BEHAVIOR_MAC),
-#elif defined(OS_WIN)
- editing_behavior(EDITING_BEHAVIOR_WIN),
-#elif defined(OS_ANDROID)
- editing_behavior(EDITING_BEHAVIOR_ANDROID),
-#elif defined(OS_POSIX)
- editing_behavior(EDITING_BEHAVIOR_UNIX),
-#else
- editing_behavior(EDITING_BEHAVIOR_MAC),
-#endif
- supports_multiple_windows(true),
- viewport_enabled(false),
-#if defined(OS_ANDROID)
- viewport_meta_enabled(true),
-#else
- viewport_meta_enabled(false),
-#endif
- main_frame_resizes_are_orientation_changes(false),
- initialize_at_minimum_page_scale(true),
-#if defined(OS_MACOSX)
- smart_insert_delete_enabled(true),
-#else
- smart_insert_delete_enabled(false),
-#endif
- spatial_navigation_enabled(false),
- pinch_overlay_scrollbar_thickness(0),
- use_solid_color_scrollbars(false),
- navigate_on_drag_drop(true),
- v8_cache_options(V8_CACHE_OPTIONS_DEFAULT),
- slimming_paint_v2_enabled(false),
- cookie_enabled(true),
- pepper_accelerated_video_decode_enabled(false),
- animation_policy(IMAGE_ANIMATION_POLICY_ALLOWED),
-#if defined(OS_ANDROID)
- text_autosizing_enabled(true),
- font_scale_factor(1.0f),
- device_scale_adjustment(1.0f),
- force_enable_zoom(false),
- fullscreen_supported(true),
- double_tap_to_zoom_enabled(true),
- user_gesture_required_for_media_playback(true),
- support_deprecated_target_density_dpi(false),
- use_legacy_background_size_shorthand_behavior(false),
- wide_viewport_quirk(false),
- use_wide_viewport(true),
- force_zero_layout_height(false),
- viewport_meta_layout_size_quirk(false),
- viewport_meta_merge_content_quirk(false),
- viewport_meta_non_user_scalable_quirk(false),
- viewport_meta_zero_values_quirk(false),
- clobber_user_agent_initial_scale_quirk(false),
- ignore_main_frame_overflow_hidden_quirk(false),
- report_screen_size_in_physical_pixels_quirk(false),
- record_whole_document(false),
-#endif
-#if defined(OS_ANDROID)
- default_minimum_page_scale_factor(0.25f),
- default_maximum_page_scale_factor(5.f)
-#elif defined(OS_MACOSX)
- default_minimum_page_scale_factor(1.f),
- default_maximum_page_scale_factor(3.f)
-#else
- default_minimum_page_scale_factor(1.f),
- default_maximum_page_scale_factor(4.f)
-#endif
-{
- standard_font_family_map[kCommonScript] =
- base::ASCIIToUTF16("Times New Roman");
- fixed_font_family_map[kCommonScript] = base::ASCIIToUTF16("Courier New");
- serif_font_family_map[kCommonScript] = base::ASCIIToUTF16("Times New Roman");
- sans_serif_font_family_map[kCommonScript] = base::ASCIIToUTF16("Arial");
- cursive_font_family_map[kCommonScript] = base::ASCIIToUTF16("Script");
- fantasy_font_family_map[kCommonScript] = base::ASCIIToUTF16("Impact");
- pictograph_font_family_map[kCommonScript] =
- base::ASCIIToUTF16("Times New Roman");
-}
-
-WebPreferences::~WebPreferences() {}
-
-} // namespace html_viewer
« no previous file with comments | « components/html_viewer/web_preferences.h ('k') | components/html_viewer/web_socket_handle_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698