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

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

Issue 15927026: Enabled using viewport on desktop browsers behind experimental flag (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: WIP Created 7 years, 4 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
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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
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_viewportEnabled(false) 54 , m_viewportEnabled(false)
55 , m_gestureTapHighlightEnabled(true) 55 , m_gestureTapHighlightEnabled(true)
56 , m_autoZoomFocusedNodeToLegibleScale(false) 56 , m_autoZoomFocusedNodeToLegibleScale(false)
57 , m_deferredImageDecodingEnabled(false) 57 , m_deferredImageDecodingEnabled(false)
58 , m_doubleTapToZoomEnabled(false) 58 , m_doubleTapToZoomEnabled(false)
59 , m_supportDeprecatedTargetDensityDPI(false) 59 , m_supportDeprecatedTargetDensityDPI(false)
60 , m_pinchOverlayScrollbarThickness(0) 60 , m_pinchOverlayScrollbarThickness(0)
61 , m_anchorScrollPositionOnResize(false)
61 { 62 {
62 ASSERT(settings); 63 ASSERT(settings);
63 } 64 }
64 65
65 void WebSettingsImpl::setStandardFontFamily(const WebString& font, UScriptCode s cript) 66 void WebSettingsImpl::setStandardFontFamily(const WebString& font, UScriptCode s cript)
66 { 67 {
67 m_settings->setStandardFontFamily(font, script); 68 m_settings->setStandardFontFamily(font, script);
68 } 69 }
69 70
70 void WebSettingsImpl::setFixedFontFamily(const WebString& font, UScriptCode scri pt) 71 void WebSettingsImpl::setFixedFontFamily(const WebString& font, UScriptCode scri pt)
(...skipping 603 matching lines...) Expand 10 before | Expand all | Expand 10 after
674 void WebSettingsImpl::setPinchOverlayScrollbarThickness(int thickness) 675 void WebSettingsImpl::setPinchOverlayScrollbarThickness(int thickness)
675 { 676 {
676 m_pinchOverlayScrollbarThickness = thickness; 677 m_pinchOverlayScrollbarThickness = thickness;
677 } 678 }
678 679
679 void WebSettingsImpl::setPinchVirtualViewportEnabled(bool enabled) 680 void WebSettingsImpl::setPinchVirtualViewportEnabled(bool enabled)
680 { 681 {
681 m_settings->setPinchVirtualViewportEnabled(enabled); 682 m_settings->setPinchVirtualViewportEnabled(enabled);
682 } 683 }
683 684
685 bool WebSettingsImpl::anchorScrollPositionOnResize() const
686 {
687 return m_anchorScrollPositionOnResize;
688 }
689
690 void WebSettingsImpl::setAnchorScrollPositionOnResize(bool enabled)
691 {
692 m_anchorScrollPositionOnResize = enabled;
693 }
694
684 } // namespace WebKit 695 } // namespace WebKit
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698