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

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

Issue 344203003: Replace loadWithOverviewMode settings with calls to shrinksViewportContentToFit (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 6 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/PageScaleConstraintsSet.cpp ('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 217 matching lines...) Expand 10 before | Expand all | Expand 10 after
228 void WebSettingsImpl::setLoadsImagesAutomatically(bool loadsImagesAutomatically) 228 void WebSettingsImpl::setLoadsImagesAutomatically(bool loadsImagesAutomatically)
229 { 229 {
230 m_settings->setLoadsImagesAutomatically(loadsImagesAutomatically); 230 m_settings->setLoadsImagesAutomatically(loadsImagesAutomatically);
231 } 231 }
232 232
233 void WebSettingsImpl::setImagesEnabled(bool enabled) 233 void WebSettingsImpl::setImagesEnabled(bool enabled)
234 { 234 {
235 m_settings->setImagesEnabled(enabled); 235 m_settings->setImagesEnabled(enabled);
236 } 236 }
237 237
238 // FIXME: Remove setting.
238 void WebSettingsImpl::setLoadWithOverviewMode(bool enabled) 239 void WebSettingsImpl::setLoadWithOverviewMode(bool enabled)
239 { 240 {
240 m_settings->setLoadWithOverviewMode(enabled); 241 setShrinksViewportContentToFit(enabled);
241 } 242 }
242 243
243 void WebSettingsImpl::setPluginsEnabled(bool enabled) 244 void WebSettingsImpl::setPluginsEnabled(bool enabled)
244 { 245 {
245 m_settings->setPluginsEnabled(enabled); 246 m_settings->setPluginsEnabled(enabled);
246 } 247 }
247 248
248 void WebSettingsImpl::setDOMPasteAllowed(bool enabled) 249 void WebSettingsImpl::setDOMPasteAllowed(bool enabled)
249 { 250 {
250 m_settings->setDOMPasteAllowed(enabled); 251 m_settings->setDOMPasteAllowed(enabled);
(...skipping 454 matching lines...) Expand 10 before | Expand all | Expand 10 after
705 { 706 {
706 m_settings->setUseSolidColorScrollbars(enabled); 707 m_settings->setUseSolidColorScrollbars(enabled);
707 } 708 }
708 709
709 void WebSettingsImpl::setMainFrameResizesAreOrientationChanges(bool enabled) 710 void WebSettingsImpl::setMainFrameResizesAreOrientationChanges(bool enabled)
710 { 711 {
711 m_mainFrameResizesAreOrientationChanges = enabled; 712 m_mainFrameResizesAreOrientationChanges = enabled;
712 } 713 }
713 714
714 } // namespace blink 715 } // namespace blink
OLDNEW
« no previous file with comments | « Source/web/PageScaleConstraintsSet.cpp ('k') | Source/web/WebViewImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698