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

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

Issue 23038013: [Android WebView] Avoid expanding layout width to match the old WebView (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Addressed aelias' comments 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
« no previous file with comments | « Source/web/WebSettingsImpl.h ('k') | Source/web/WebViewImpl.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_pinchOverlayScrollbarThickness(0) 60 , m_pinchOverlayScrollbarThickness(0)
60 { 61 {
61 ASSERT(settings); 62 ASSERT(settings);
62 } 63 }
63 64
64 void WebSettingsImpl::setStandardFontFamily(const WebString& font, UScriptCode s cript) 65 void WebSettingsImpl::setStandardFontFamily(const WebString& font, UScriptCode s cript)
65 { 66 {
66 m_settings->setStandardFontFamily(font, script); 67 m_settings->setStandardFontFamily(font, script);
67 } 68 }
68 69
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
174 void WebSettingsImpl::setJavaScriptCanOpenWindowsAutomatically(bool canOpenWindo ws) 175 void WebSettingsImpl::setJavaScriptCanOpenWindowsAutomatically(bool canOpenWindo ws)
175 { 176 {
176 m_settings->setJavaScriptCanOpenWindowsAutomatically(canOpenWindows); 177 m_settings->setJavaScriptCanOpenWindowsAutomatically(canOpenWindows);
177 } 178 }
178 179
179 void WebSettingsImpl::setSupportDeprecatedTargetDensityDPI(bool supportDeprecate dTargetDensityDPI) 180 void WebSettingsImpl::setSupportDeprecatedTargetDensityDPI(bool supportDeprecate dTargetDensityDPI)
180 { 181 {
181 m_supportDeprecatedTargetDensityDPI = supportDeprecatedTargetDensityDPI; 182 m_supportDeprecatedTargetDensityDPI = supportDeprecatedTargetDensityDPI;
182 } 183 }
183 184
185 void WebSettingsImpl::setViewportMetaLayoutSizeQuirk(bool viewportMetaLayoutSize Quirk)
186 {
187 m_viewportMetaLayoutSizeQuirk = viewportMetaLayoutSizeQuirk;
188 }
189
184 void WebSettingsImpl::setSupportsMultipleWindows(bool supportsMultipleWindows) 190 void WebSettingsImpl::setSupportsMultipleWindows(bool supportsMultipleWindows)
185 { 191 {
186 m_settings->setSupportsMultipleWindows(supportsMultipleWindows); 192 m_settings->setSupportsMultipleWindows(supportsMultipleWindows);
187 } 193 }
188 194
189 void WebSettingsImpl::setLoadsImagesAutomatically(bool loadsImagesAutomatically) 195 void WebSettingsImpl::setLoadsImagesAutomatically(bool loadsImagesAutomatically)
190 { 196 {
191 m_settings->setLoadsImagesAutomatically(loadsImagesAutomatically); 197 m_settings->setLoadsImagesAutomatically(loadsImagesAutomatically);
192 } 198 }
193 199
(...skipping 500 matching lines...) Expand 10 before | Expand all | Expand 10 after
694 { 700 {
695 m_settings->setPinchVirtualViewportEnabled(enabled); 701 m_settings->setPinchVirtualViewportEnabled(enabled);
696 } 702 }
697 703
698 void WebSettingsImpl::setUseSolidColorScrollbars(bool enabled) 704 void WebSettingsImpl::setUseSolidColorScrollbars(bool enabled)
699 { 705 {
700 m_settings->setUseSolidColorScrollbars(enabled); 706 m_settings->setUseSolidColorScrollbars(enabled);
701 } 707 }
702 708
703 } // namespace WebKit 709 } // namespace WebKit
OLDNEW
« no previous file with comments | « Source/web/WebSettingsImpl.h ('k') | Source/web/WebViewImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698