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

Side by Side Diff: Source/WebKit/chromium/src/WebSettingsImpl.cpp

Issue 14813025: Refactor viewport initialization logic out of WebViewImpl. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix webkit_unit_tests Created 7 years, 7 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 | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2009 Google Inc. All rights reserved. 2 * Copyright (C) 2009 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 using namespace WebCore; 46 using namespace WebCore;
47 47
48 namespace WebKit { 48 namespace WebKit {
49 49
50 WebSettingsImpl::WebSettingsImpl(Settings* settings) 50 WebSettingsImpl::WebSettingsImpl(Settings* settings)
51 : m_settings(settings) 51 : m_settings(settings)
52 , m_showFPSCounter(false) 52 , m_showFPSCounter(false)
53 , m_showPaintRects(false) 53 , m_showPaintRects(false)
54 , m_renderVSyncNotificationEnabled(false) 54 , m_renderVSyncNotificationEnabled(false)
55 , m_viewportEnabled(false) 55 , m_viewportEnabled(false)
56 , m_initializeAtMinimumPageScale(true)
57 , m_useWideViewport(true)
58 , m_gestureTapHighlightEnabled(true) 56 , m_gestureTapHighlightEnabled(true)
59 , m_autoZoomFocusedNodeToLegibleScale(false) 57 , m_autoZoomFocusedNodeToLegibleScale(false)
60 , m_deferredImageDecodingEnabled(false) 58 , m_deferredImageDecodingEnabled(false)
61 , m_doubleTapToZoomEnabled(false) 59 , m_doubleTapToZoomEnabled(false)
62 , m_supportDeprecatedTargetDensityDPI(false) 60 , m_supportDeprecatedTargetDensityDPI(false)
63 { 61 {
64 ASSERT(settings); 62 ASSERT(settings);
65 } 63 }
66 64
67 void WebSettingsImpl::setStandardFontFamily(const WebString& font, UScriptCode s cript) 65 void WebSettingsImpl::setStandardFontFamily(const WebString& font, UScriptCode s cript)
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
192 void WebSettingsImpl::setLoadsImagesAutomatically(bool loadsImagesAutomatically) 190 void WebSettingsImpl::setLoadsImagesAutomatically(bool loadsImagesAutomatically)
193 { 191 {
194 m_settings->setLoadsImagesAutomatically(loadsImagesAutomatically); 192 m_settings->setLoadsImagesAutomatically(loadsImagesAutomatically);
195 } 193 }
196 194
197 void WebSettingsImpl::setImagesEnabled(bool enabled) 195 void WebSettingsImpl::setImagesEnabled(bool enabled)
198 { 196 {
199 m_settings->setImagesEnabled(enabled); 197 m_settings->setImagesEnabled(enabled);
200 } 198 }
201 199
202 void WebSettingsImpl::setInitializeAtMinimumPageScale(bool enabled) 200 void WebSettingsImpl::setLoadWithOverviewMode(bool enabled)
203 { 201 {
204 m_initializeAtMinimumPageScale = enabled; 202 m_settings->setLoadWithOverviewMode(enabled);
205 } 203 }
206 204
207 void WebSettingsImpl::setPluginsEnabled(bool enabled) 205 void WebSettingsImpl::setPluginsEnabled(bool enabled)
208 { 206 {
209 m_settings->setPluginsEnabled(enabled); 207 m_settings->setPluginsEnabled(enabled);
210 } 208 }
211 209
212 void WebSettingsImpl::setDOMPasteAllowed(bool enabled) 210 void WebSettingsImpl::setDOMPasteAllowed(bool enabled)
213 { 211 {
214 m_settings->setDOMPasteAllowed(enabled); 212 m_settings->setDOMPasteAllowed(enabled);
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
254 m_settings->setUserStyleSheetLocation(location); 252 m_settings->setUserStyleSheetLocation(location);
255 } 253 }
256 254
257 void WebSettingsImpl::setAuthorAndUserStylesEnabled(bool enabled) 255 void WebSettingsImpl::setAuthorAndUserStylesEnabled(bool enabled)
258 { 256 {
259 m_settings->setAuthorAndUserStylesEnabled(enabled); 257 m_settings->setAuthorAndUserStylesEnabled(enabled);
260 } 258 }
261 259
262 void WebSettingsImpl::setUseWideViewport(bool useWideViewport) 260 void WebSettingsImpl::setUseWideViewport(bool useWideViewport)
263 { 261 {
264 m_useWideViewport = useWideViewport; 262 m_settings->setUseWideViewport(useWideViewport);
265 } 263 }
266 264
267 void WebSettingsImpl::setDoubleTapToZoomEnabled(bool doubleTapToZoomEnabled) 265 void WebSettingsImpl::setDoubleTapToZoomEnabled(bool doubleTapToZoomEnabled)
268 { 266 {
269 m_doubleTapToZoomEnabled = doubleTapToZoomEnabled; 267 m_doubleTapToZoomEnabled = doubleTapToZoomEnabled;
270 } 268 }
271 269
272 void WebSettingsImpl::setDownloadableBinaryFontsEnabled(bool enabled) 270 void WebSettingsImpl::setDownloadableBinaryFontsEnabled(bool enabled)
273 { 271 {
274 m_settings->setDownloadableBinaryFontsEnabled(enabled); 272 m_settings->setDownloadableBinaryFontsEnabled(enabled);
(...skipping 401 matching lines...) Expand 10 before | Expand all | Expand 10 after
676 { 674 {
677 m_settings->setSelectionIncludesAltImageText(enabled); 675 m_settings->setSelectionIncludesAltImageText(enabled);
678 } 676 }
679 677
680 void WebSettingsImpl::setSmartInsertDeleteEnabled(bool enabled) 678 void WebSettingsImpl::setSmartInsertDeleteEnabled(bool enabled)
681 { 679 {
682 m_settings->setSmartInsertDeleteEnabled(enabled); 680 m_settings->setSmartInsertDeleteEnabled(enabled);
683 } 681 }
684 682
685 } // namespace WebKit 683 } // namespace WebKit
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698