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

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

Issue 1366893002: Make window.scroll properties relative to the layout viewport. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: "worked on review comments" Created 5 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
« no previous file with comments | « content/public/common/web_preferences.h ('k') | content/renderer/render_view_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 160 matching lines...) Expand 10 before | Expand all | Expand 10 after
171 smart_insert_delete_enabled(true), 171 smart_insert_delete_enabled(true),
172 #else 172 #else
173 smart_insert_delete_enabled(false), 173 smart_insert_delete_enabled(false),
174 #endif 174 #endif
175 spatial_navigation_enabled(false), 175 spatial_navigation_enabled(false),
176 pinch_overlay_scrollbar_thickness(0), 176 pinch_overlay_scrollbar_thickness(0),
177 use_solid_color_scrollbars(false), 177 use_solid_color_scrollbars(false),
178 navigate_on_drag_drop(true), 178 navigate_on_drag_drop(true),
179 v8_cache_options(V8_CACHE_OPTIONS_DEFAULT), 179 v8_cache_options(V8_CACHE_OPTIONS_DEFAULT),
180 slimming_paint_v2_enabled(false), 180 slimming_paint_v2_enabled(false),
181 inert_visual_viewport(false),
181 cookie_enabled(true), 182 cookie_enabled(true),
182 pepper_accelerated_video_decode_enabled(false), 183 pepper_accelerated_video_decode_enabled(false),
183 animation_policy(IMAGE_ANIMATION_POLICY_ALLOWED), 184 animation_policy(IMAGE_ANIMATION_POLICY_ALLOWED),
184 #if defined(OS_ANDROID) 185 #if defined(OS_ANDROID)
185 text_autosizing_enabled(true), 186 text_autosizing_enabled(true),
186 font_scale_factor(1.0f), 187 font_scale_factor(1.0f),
187 device_scale_adjustment(1.0f), 188 device_scale_adjustment(1.0f),
188 force_enable_zoom(false), 189 force_enable_zoom(false),
189 fullscreen_supported(true), 190 fullscreen_supported(true),
190 double_tap_to_zoom_enabled(true), 191 double_tap_to_zoom_enabled(true),
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
222 cursive_font_family_map[kCommonScript] = base::ASCIIToUTF16("Script"); 223 cursive_font_family_map[kCommonScript] = base::ASCIIToUTF16("Script");
223 fantasy_font_family_map[kCommonScript] = base::ASCIIToUTF16("Impact"); 224 fantasy_font_family_map[kCommonScript] = base::ASCIIToUTF16("Impact");
224 pictograph_font_family_map[kCommonScript] = 225 pictograph_font_family_map[kCommonScript] =
225 base::ASCIIToUTF16("Times New Roman"); 226 base::ASCIIToUTF16("Times New Roman");
226 } 227 }
227 228
228 WebPreferences::~WebPreferences() { 229 WebPreferences::~WebPreferences() {
229 } 230 }
230 231
231 } // namespace content 232 } // namespace content
OLDNEW
« no previous file with comments | « content/public/common/web_preferences.h ('k') | content/renderer/render_view_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698