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

Side by Side Diff: Source/web/WebSettingsImpl.cpp

Issue 23691017: [Android WebView] Treat zero values in viewport arguments specially (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 3 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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 WebSettingsImpl::WebSettingsImpl(Settings* settings) 49 WebSettingsImpl::WebSettingsImpl(Settings* settings)
50 : m_settings(settings) 50 : m_settings(settings)
51 , m_showFPSCounter(false) 51 , m_showFPSCounter(false)
52 , m_showPaintRects(false) 52 , m_showPaintRects(false)
53 , m_renderVSyncNotificationEnabled(false) 53 , m_renderVSyncNotificationEnabled(false)
54 , m_gestureTapHighlightEnabled(true) 54 , m_gestureTapHighlightEnabled(true)
55 , m_autoZoomFocusedNodeToLegibleScale(false) 55 , m_autoZoomFocusedNodeToLegibleScale(false)
56 , m_deferredImageDecodingEnabled(false) 56 , m_deferredImageDecodingEnabled(false)
57 , m_doubleTapToZoomEnabled(false) 57 , m_doubleTapToZoomEnabled(false)
58 , m_supportDeprecatedTargetDensityDPI(false) 58 , m_supportDeprecatedTargetDensityDPI(false)
59 , m_viewportMetaLayoutSizeQuirk(false) 59 , m_viewportMetaLayoutSizeAndZeroValuesQuirk(false)
60 , m_pinchOverlayScrollbarThickness(0) 60 , m_pinchOverlayScrollbarThickness(0)
61 { 61 {
62 ASSERT(settings); 62 ASSERT(settings);
63 } 63 }
64 64
65 void WebSettingsImpl::setStandardFontFamily(const WebString& font, UScriptCode s cript) 65 void WebSettingsImpl::setStandardFontFamily(const WebString& font, UScriptCode s cript)
66 { 66 {
67 m_settings->setStandardFontFamily(font, script); 67 m_settings->setStandardFontFamily(font, script);
68 } 68 }
69 69
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
175 void WebSettingsImpl::setJavaScriptCanOpenWindowsAutomatically(bool canOpenWindo ws) 175 void WebSettingsImpl::setJavaScriptCanOpenWindowsAutomatically(bool canOpenWindo ws)
176 { 176 {
177 m_settings->setJavaScriptCanOpenWindowsAutomatically(canOpenWindows); 177 m_settings->setJavaScriptCanOpenWindowsAutomatically(canOpenWindows);
178 } 178 }
179 179
180 void WebSettingsImpl::setSupportDeprecatedTargetDensityDPI(bool supportDeprecate dTargetDensityDPI) 180 void WebSettingsImpl::setSupportDeprecatedTargetDensityDPI(bool supportDeprecate dTargetDensityDPI)
181 { 181 {
182 m_supportDeprecatedTargetDensityDPI = supportDeprecatedTargetDensityDPI; 182 m_supportDeprecatedTargetDensityDPI = supportDeprecatedTargetDensityDPI;
183 } 183 }
184 184
185 void WebSettingsImpl::setViewportMetaLayoutSizeQuirk(bool viewportMetaLayoutSize Quirk) 185 void WebSettingsImpl::setViewportMetaLayoutSizeAndZeroValuesQuirk(bool viewportM etaLayoutSizeAndZeroValuesQuirk)
186 { 186 {
187 m_viewportMetaLayoutSizeQuirk = viewportMetaLayoutSizeQuirk; 187 m_viewportMetaLayoutSizeAndZeroValuesQuirk = viewportMetaLayoutSizeAndZeroVa luesQuirk;
188 } 188 }
189 189
190 void WebSettingsImpl::setSupportsMultipleWindows(bool supportsMultipleWindows) 190 void WebSettingsImpl::setSupportsMultipleWindows(bool supportsMultipleWindows)
191 { 191 {
192 m_settings->setSupportsMultipleWindows(supportsMultipleWindows); 192 m_settings->setSupportsMultipleWindows(supportsMultipleWindows);
193 } 193 }
194 194
195 void WebSettingsImpl::setLoadsImagesAutomatically(bool loadsImagesAutomatically) 195 void WebSettingsImpl::setLoadsImagesAutomatically(bool loadsImagesAutomatically)
196 { 196 {
197 m_settings->setLoadsImagesAutomatically(loadsImagesAutomatically); 197 m_settings->setLoadsImagesAutomatically(loadsImagesAutomatically);
(...skipping 502 matching lines...) Expand 10 before | Expand all | Expand 10 after
700 { 700 {
701 m_settings->setPinchVirtualViewportEnabled(enabled); 701 m_settings->setPinchVirtualViewportEnabled(enabled);
702 } 702 }
703 703
704 void WebSettingsImpl::setUseSolidColorScrollbars(bool enabled) 704 void WebSettingsImpl::setUseSolidColorScrollbars(bool enabled)
705 { 705 {
706 m_settings->setUseSolidColorScrollbars(enabled); 706 m_settings->setUseSolidColorScrollbars(enabled);
707 } 707 }
708 708
709 } // namespace WebKit 709 } // namespace WebKit
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698