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

Unified Diff: Source/web/WebSettingsImpl.cpp

Issue 1343843004: [DevTools] Emulate hover and pointer types. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: removed settings getters Created 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/web/WebSettingsImpl.h ('k') | Source/web/tests/WebFrameTest.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/web/WebSettingsImpl.cpp
diff --git a/Source/web/WebSettingsImpl.cpp b/Source/web/WebSettingsImpl.cpp
index 098fd4f3f90fcec763683f90c10774ed991a7458..b392cb8b1a9503cc540bc4983efc305c75c931e5 100644
--- a/Source/web/WebSettingsImpl.cpp
+++ b/Source/web/WebSettingsImpl.cpp
@@ -296,22 +296,22 @@ void WebSettingsImpl::setPluginsEnabled(bool enabled)
void WebSettingsImpl::setAvailablePointerTypes(int pointers)
{
- m_settings->setAvailablePointerTypes(pointers);
+ m_devToolsEmulator->setAvailablePointerTypes(pointers);
}
void WebSettingsImpl::setPrimaryPointerType(PointerType pointer)
{
- m_settings->setPrimaryPointerType(static_cast<blink::PointerType>(pointer));
+ m_devToolsEmulator->setPrimaryPointerType(static_cast<blink::PointerType>(pointer));
}
void WebSettingsImpl::setAvailableHoverTypes(int types)
{
- m_settings->setAvailableHoverTypes(types);
+ m_devToolsEmulator->setAvailableHoverTypes(types);
}
void WebSettingsImpl::setPrimaryHoverType(HoverType type)
{
- m_settings->setPrimaryHoverType(static_cast<blink::HoverType>(type));
+ m_devToolsEmulator->setPrimaryHoverType(static_cast<blink::HoverType>(type));
}
void WebSettingsImpl::setPreferHiddenVolumeControls(bool enabled)
@@ -679,26 +679,6 @@ void WebSettingsImpl::setMultiTargetTapNotificationEnabled(bool enabled)
m_settings->setMultiTargetTapNotificationEnabled(enabled);
}
-int WebSettingsImpl::availablePointerTypes() const
-{
- return m_settings->availablePointerTypes();
-}
-
-WebSettings::PointerType WebSettingsImpl::primaryPointerType() const
-{
- return static_cast<PointerType>(m_settings->primaryPointerType());
-}
-
-int WebSettingsImpl::availableHoverTypes() const
-{
- return m_settings->availableHoverTypes();
-}
-
-WebSettings::HoverType WebSettingsImpl::primaryHoverType() const
-{
- return static_cast<HoverType>(m_settings->primaryHoverType());
-}
-
bool WebSettingsImpl::viewportEnabled() const
{
return m_settings->viewportEnabled();
« no previous file with comments | « Source/web/WebSettingsImpl.h ('k') | Source/web/tests/WebFrameTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698