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

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

Issue 2323563002: Add a flag to require a user gesture to add an entry to the back/forward list. (Closed)
Patch Set: Rebase Created 4 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
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 544 matching lines...) Expand 10 before | Expand all | Expand 10 after
555 void WebSettingsImpl::setPreferCompositingToLCDTextEnabled(bool enabled) 555 void WebSettingsImpl::setPreferCompositingToLCDTextEnabled(bool enabled)
556 { 556 {
557 m_devToolsEmulator->setPreferCompositingToLCDTextEnabled(enabled); 557 m_devToolsEmulator->setPreferCompositingToLCDTextEnabled(enabled);
558 } 558 }
559 559
560 void WebSettingsImpl::setMinimumAccelerated2dCanvasSize(int numPixels) 560 void WebSettingsImpl::setMinimumAccelerated2dCanvasSize(int numPixels)
561 { 561 {
562 m_settings->setMinimumAccelerated2dCanvasSize(numPixels); 562 m_settings->setMinimumAccelerated2dCanvasSize(numPixels);
563 } 563 }
564 564
565 void WebSettingsImpl::setHistoryEntryRequiresUserGesture(bool enabled)
566 {
567 m_settings->setHistoryEntryRequiresUserGesture(enabled);
568 }
569
565 void WebSettingsImpl::setHyperlinkAuditingEnabled(bool enabled) 570 void WebSettingsImpl::setHyperlinkAuditingEnabled(bool enabled)
566 { 571 {
567 m_settings->setHyperlinkAuditingEnabled(enabled); 572 m_settings->setHyperlinkAuditingEnabled(enabled);
568 } 573 }
569 574
570 void WebSettingsImpl::setAutoplayExperimentMode(const WebString& mode) 575 void WebSettingsImpl::setAutoplayExperimentMode(const WebString& mode)
571 { 576 {
572 m_settings->setAutoplayExperimentMode(mode); 577 m_settings->setAutoplayExperimentMode(mode);
573 } 578 }
574 579
(...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after
787 { 792 {
788 m_settings->setV8CacheStrategiesForCacheStorage(static_cast<blink::V8CacheSt rategiesForCacheStorage>(strategies)); 793 m_settings->setV8CacheStrategiesForCacheStorage(static_cast<blink::V8CacheSt rategiesForCacheStorage>(strategies));
789 } 794 }
790 795
791 void WebSettingsImpl::setViewportStyle(WebViewportStyle style) 796 void WebSettingsImpl::setViewportStyle(WebViewportStyle style)
792 { 797 {
793 m_devToolsEmulator->setViewportStyle(style); 798 m_devToolsEmulator->setViewportStyle(style);
794 } 799 }
795 800
796 } // namespace blink 801 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/web/WebSettingsImpl.h ('k') | third_party/WebKit/public/web/WebSettings.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698