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

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: Removed verbose comment 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 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
138 v8_cache_options(V8_CACHE_OPTIONS_OFF), 138 v8_cache_options(V8_CACHE_OPTIONS_OFF),
139 v8_script_streaming_enabled(false), 139 v8_script_streaming_enabled(false),
140 cookie_enabled(true), 140 cookie_enabled(true),
141 pepper_accelerated_video_decode_enabled(false) 141 pepper_accelerated_video_decode_enabled(false)
142 #if defined(OS_ANDROID) 142 #if defined(OS_ANDROID)
143 , 143 ,
144 text_autosizing_enabled(true), 144 text_autosizing_enabled(true),
145 font_scale_factor(1.0f), 145 font_scale_factor(1.0f),
146 device_scale_adjustment(1.0f), 146 device_scale_adjustment(1.0f),
147 force_enable_zoom(false), 147 force_enable_zoom(false),
148 disallow_fullscreen_for_non_media_elements(false),
149 fullscreen_supported(true), 148 fullscreen_supported(true),
150 double_tap_to_zoom_enabled(true), 149 double_tap_to_zoom_enabled(true),
151 user_gesture_required_for_media_playback(true), 150 user_gesture_required_for_media_playback(true),
152 support_deprecated_target_density_dpi(false), 151 support_deprecated_target_density_dpi(false),
153 use_legacy_background_size_shorthand_behavior(false), 152 use_legacy_background_size_shorthand_behavior(false),
154 wide_viewport_quirk(false), 153 wide_viewport_quirk(false),
155 use_wide_viewport(true), 154 use_wide_viewport(true),
156 force_zero_layout_height(false), 155 force_zero_layout_height(false),
157 viewport_meta_layout_size_quirk(false), 156 viewport_meta_layout_size_quirk(false),
158 viewport_meta_merge_content_quirk(false), 157 viewport_meta_merge_content_quirk(false),
(...skipping 12 matching lines...) Expand all
171 cursive_font_family_map[kCommonScript] = base::ASCIIToUTF16("Script"); 170 cursive_font_family_map[kCommonScript] = base::ASCIIToUTF16("Script");
172 fantasy_font_family_map[kCommonScript] = base::ASCIIToUTF16("Impact"); 171 fantasy_font_family_map[kCommonScript] = base::ASCIIToUTF16("Impact");
173 pictograph_font_family_map[kCommonScript] = 172 pictograph_font_family_map[kCommonScript] =
174 base::ASCIIToUTF16("Times New Roman"); 173 base::ASCIIToUTF16("Times New Roman");
175 } 174 }
176 175
177 WebPreferences::~WebPreferences() { 176 WebPreferences::~WebPreferences() {
178 } 177 }
179 178
180 } // namespace content 179 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698