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

Side by Side Diff: content/public/common/web_preferences.cc

Issue 618013003: Support fullscreen for non-video elements in the WebView. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@refactorFullscreenNonMedia
Patch Set: Fix failing test Created 6 years, 2 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/public/common/web_preferences.h" 5 #include "content/public/common/web_preferences.h"
6 6
7 #include "base/basictypes.h" 7 #include "base/basictypes.h"
8 #include "base/strings/string_util.h" 8 #include "base/strings/string_util.h"
9 #include "base/strings/utf_string_conversions.h" 9 #include "base/strings/utf_string_conversions.h"
10 #include "third_party/WebKit/public/web/WebSettings.h" 10 #include "third_party/WebKit/public/web/WebSettings.h"
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
139 v8_cache_options(V8_CACHE_OPTIONS_OFF), 139 v8_cache_options(V8_CACHE_OPTIONS_OFF),
140 v8_script_streaming_enabled(false), 140 v8_script_streaming_enabled(false),
141 cookie_enabled(true), 141 cookie_enabled(true),
142 pepper_accelerated_video_decode_enabled(false) 142 pepper_accelerated_video_decode_enabled(false)
143 #if defined(OS_ANDROID) 143 #if defined(OS_ANDROID)
144 , 144 ,
145 text_autosizing_enabled(true), 145 text_autosizing_enabled(true),
146 font_scale_factor(1.0f), 146 font_scale_factor(1.0f),
147 device_scale_adjustment(1.0f), 147 device_scale_adjustment(1.0f),
148 force_enable_zoom(false), 148 force_enable_zoom(false),
149 disallow_fullscreen_for_non_media_elements(false),
150 fullscreen_supported(true), 149 fullscreen_supported(true),
151 double_tap_to_zoom_enabled(true), 150 double_tap_to_zoom_enabled(true),
152 user_gesture_required_for_media_playback(true), 151 user_gesture_required_for_media_playback(true),
153 support_deprecated_target_density_dpi(false), 152 support_deprecated_target_density_dpi(false),
154 use_legacy_background_size_shorthand_behavior(false), 153 use_legacy_background_size_shorthand_behavior(false),
155 wide_viewport_quirk(false), 154 wide_viewport_quirk(false),
156 use_wide_viewport(true), 155 use_wide_viewport(true),
157 force_zero_layout_height(false), 156 force_zero_layout_height(false),
158 viewport_meta_layout_size_quirk(false), 157 viewport_meta_layout_size_quirk(false),
159 viewport_meta_merge_content_quirk(false), 158 viewport_meta_merge_content_quirk(false),
(...skipping 12 matching lines...) Expand all
172 cursive_font_family_map[kCommonScript] = base::ASCIIToUTF16("Script"); 171 cursive_font_family_map[kCommonScript] = base::ASCIIToUTF16("Script");
173 fantasy_font_family_map[kCommonScript] = base::ASCIIToUTF16("Impact"); 172 fantasy_font_family_map[kCommonScript] = base::ASCIIToUTF16("Impact");
174 pictograph_font_family_map[kCommonScript] = 173 pictograph_font_family_map[kCommonScript] =
175 base::ASCIIToUTF16("Times New Roman"); 174 base::ASCIIToUTF16("Times New Roman");
176 } 175 }
177 176
178 WebPreferences::~WebPreferences() { 177 WebPreferences::~WebPreferences() {
179 } 178 }
180 179
181 } // namespace content 180 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698