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

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

Issue 40423003: Experimental viewport meta tag support for desktop, Blink-side. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years, 2 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_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_pinchOverlayScrollbarThickness(0) 60 , m_pinchOverlayScrollbarThickness(0)
61 , m_scaleViewportOnResize(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 563 matching lines...) Expand 10 before | Expand all | Expand 10 after
634 bool WebSettingsImpl::touchEditingEnabled() const 635 bool WebSettingsImpl::touchEditingEnabled() const
635 { 636 {
636 return m_settings->touchEditingEnabled(); 637 return m_settings->touchEditingEnabled();
637 } 638 }
638 639
639 bool WebSettingsImpl::viewportEnabled() const 640 bool WebSettingsImpl::viewportEnabled() const
640 { 641 {
641 return m_settings->viewportEnabled(); 642 return m_settings->viewportEnabled();
642 } 643 }
643 644
645 bool WebSettingsImpl::viewportMetaEnabled() const
646 {
647 return m_settings->viewportMetaEnabled();
648 }
649
650 bool WebSettingsImpl::scaleViewportOnResize() const
651 {
652 return m_scaleViewportOnResize;
653 }
654
644 void WebSettingsImpl::setShouldDisplaySubtitles(bool enabled) 655 void WebSettingsImpl::setShouldDisplaySubtitles(bool enabled)
645 { 656 {
646 m_settings->setShouldDisplaySubtitles(enabled); 657 m_settings->setShouldDisplaySubtitles(enabled);
647 } 658 }
648 659
649 void WebSettingsImpl::setShouldDisplayCaptions(bool enabled) 660 void WebSettingsImpl::setShouldDisplayCaptions(bool enabled)
650 { 661 {
651 m_settings->setShouldDisplayCaptions(enabled); 662 m_settings->setShouldDisplayCaptions(enabled);
652 } 663 }
653 664
(...skipping 20 matching lines...) Expand all
674 void WebSettingsImpl::setFixedPositionCreatesStackingContext(bool creates) 685 void WebSettingsImpl::setFixedPositionCreatesStackingContext(bool creates)
675 { 686 {
676 m_settings->setFixedPositionCreatesStackingContext(creates); 687 m_settings->setFixedPositionCreatesStackingContext(creates);
677 } 688 }
678 689
679 void WebSettingsImpl::setViewportEnabled(bool enabled) 690 void WebSettingsImpl::setViewportEnabled(bool enabled)
680 { 691 {
681 m_settings->setViewportEnabled(enabled); 692 m_settings->setViewportEnabled(enabled);
682 } 693 }
683 694
695 void WebSettingsImpl::setViewportMetaEnabled(bool enabled)
696 {
697 m_settings->setViewportMetaEnabled(enabled);
698 }
699
684 void WebSettingsImpl::setSyncXHRInDocumentsEnabled(bool enabled) 700 void WebSettingsImpl::setSyncXHRInDocumentsEnabled(bool enabled)
685 { 701 {
686 m_settings->setSyncXHRInDocumentsEnabled(enabled); 702 m_settings->setSyncXHRInDocumentsEnabled(enabled);
687 } 703 }
688 704
689 void WebSettingsImpl::setCookieEnabled(bool enabled) 705 void WebSettingsImpl::setCookieEnabled(bool enabled)
690 { 706 {
691 m_settings->setCookieEnabled(enabled); 707 m_settings->setCookieEnabled(enabled);
692 } 708 }
693 709
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
734 void WebSettingsImpl::setPinchVirtualViewportEnabled(bool enabled) 750 void WebSettingsImpl::setPinchVirtualViewportEnabled(bool enabled)
735 { 751 {
736 m_settings->setPinchVirtualViewportEnabled(enabled); 752 m_settings->setPinchVirtualViewportEnabled(enabled);
737 } 753 }
738 754
739 void WebSettingsImpl::setUseSolidColorScrollbars(bool enabled) 755 void WebSettingsImpl::setUseSolidColorScrollbars(bool enabled)
740 { 756 {
741 m_settings->setUseSolidColorScrollbars(enabled); 757 m_settings->setUseSolidColorScrollbars(enabled);
742 } 758 }
743 759
760 void WebSettingsImpl::setScaleViewportOnResize(bool enabled)
761 {
762 m_scaleViewportOnResize = enabled;
763 }
764
744 } // namespace WebKit 765 } // namespace WebKit
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698