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

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

Issue 53053002: [Android WebView] Add a legacy quirk for 'user-scalable=no' case (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Moved min/max scale reset under the quirk condition, rebased Created 7 years, 1 month 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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
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_viewportMetaLayoutSizeQuirk(false)
60 , m_viewportMetaNonUserScalableQuirk(false)
60 , m_clobberUserAgentInitialScaleQuirk(false) 61 , m_clobberUserAgentInitialScaleQuirk(false)
61 , m_pinchOverlayScrollbarThickness(0) 62 , m_pinchOverlayScrollbarThickness(0)
62 , m_mainFrameResizesAreOrientationChanges(false) 63 , m_mainFrameResizesAreOrientationChanges(false)
63 { 64 {
64 ASSERT(settings); 65 ASSERT(settings);
65 } 66 }
66 67
67 void WebSettingsImpl::setStandardFontFamily(const WebString& font, UScriptCode s cript) 68 void WebSettingsImpl::setStandardFontFamily(const WebString& font, UScriptCode s cript)
68 { 69 {
69 m_settings->setStandardFontFamily(font, script); 70 m_settings->setStandardFontFamily(font, script);
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
192 void WebSettingsImpl::setViewportMetaLayoutSizeQuirk(bool viewportMetaLayoutSize Quirk) 193 void WebSettingsImpl::setViewportMetaLayoutSizeQuirk(bool viewportMetaLayoutSize Quirk)
193 { 194 {
194 m_viewportMetaLayoutSizeQuirk = viewportMetaLayoutSizeQuirk; 195 m_viewportMetaLayoutSizeQuirk = viewportMetaLayoutSizeQuirk;
195 } 196 }
196 197
197 void WebSettingsImpl::setViewportMetaMergeContentQuirk(bool viewportMetaMergeCon tentQuirk) 198 void WebSettingsImpl::setViewportMetaMergeContentQuirk(bool viewportMetaMergeCon tentQuirk)
198 { 199 {
199 m_settings->setViewportMetaMergeContentQuirk(viewportMetaMergeContentQuirk); 200 m_settings->setViewportMetaMergeContentQuirk(viewportMetaMergeContentQuirk);
200 } 201 }
201 202
203 void WebSettingsImpl::setViewportMetaNonUserScalableQuirk(bool viewportMetaNonUs erScalableQuirk)
204 {
205 m_viewportMetaNonUserScalableQuirk = viewportMetaNonUserScalableQuirk;
206 }
207
202 void WebSettingsImpl::setViewportMetaZeroValuesQuirk(bool viewportMetaZeroValues Quirk) 208 void WebSettingsImpl::setViewportMetaZeroValuesQuirk(bool viewportMetaZeroValues Quirk)
203 { 209 {
204 m_settings->setViewportMetaZeroValuesQuirk(viewportMetaZeroValuesQuirk); 210 m_settings->setViewportMetaZeroValuesQuirk(viewportMetaZeroValuesQuirk);
205 } 211 }
206 212
207 void WebSettingsImpl::setIgnoreMainFrameOverflowHiddenQuirk(bool ignoreMainFrame OverflowHiddenQuirk) 213 void WebSettingsImpl::setIgnoreMainFrameOverflowHiddenQuirk(bool ignoreMainFrame OverflowHiddenQuirk)
208 { 214 {
209 m_settings->setIgnoreMainFrameOverflowHiddenQuirk(ignoreMainFrameOverflowHid denQuirk); 215 m_settings->setIgnoreMainFrameOverflowHiddenQuirk(ignoreMainFrameOverflowHid denQuirk);
210 } 216 }
211 217
(...skipping 558 matching lines...) Expand 10 before | Expand all | Expand 10 after
770 { 776 {
771 m_settings->setUseSolidColorScrollbars(enabled); 777 m_settings->setUseSolidColorScrollbars(enabled);
772 } 778 }
773 779
774 void WebSettingsImpl::setMainFrameResizesAreOrientationChanges(bool enabled) 780 void WebSettingsImpl::setMainFrameResizesAreOrientationChanges(bool enabled)
775 { 781 {
776 m_mainFrameResizesAreOrientationChanges = enabled; 782 m_mainFrameResizesAreOrientationChanges = enabled;
777 } 783 }
778 784
779 } // namespace WebKit 785 } // namespace WebKit
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698