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

Unified Diff: Source/WebCore/platform/chromium/PopupMenuChromium.cpp

Issue 13818030: Added primary input devices setting to blink to allow media queries for hover/pointer (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Review fixes Created 7 years, 8 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/WebCore/platform/chromium/PopupListBox.cpp ('k') | Source/WebCore/testing/InternalSettings.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/WebCore/platform/chromium/PopupMenuChromium.cpp
diff --git a/Source/WebCore/platform/chromium/PopupMenuChromium.cpp b/Source/WebCore/platform/chromium/PopupMenuChromium.cpp
index 0e48ffd0f3d990c480f94d862d36867bc1243702..6730a0047f698942ef5641f0a344e67b17dca13a 100644
--- a/Source/WebCore/platform/chromium/PopupMenuChromium.cpp
+++ b/Source/WebCore/platform/chromium/PopupMenuChromium.cpp
@@ -71,7 +71,7 @@ void PopupMenuChromium::show(const IntRect& rect, FrameView* frameView, int inde
if (!p.popup) {
Settings* settings = frameView->frame()->page()->settings();
PopupContainerSettings popupSettings = dropDownSettings;
- popupSettings.deviceSupportsTouch = settings->deviceSupportsTouch();
+ popupSettings.primaryInputIncludesTouch = settings->primaryPointerDevices() & PointerDeviceTouch;
p.popup = PopupContainer::create(client(), PopupContainer::Select, popupSettings);
}
p.popup->showInRect(rect, frameView, index);
« no previous file with comments | « Source/WebCore/platform/chromium/PopupListBox.cpp ('k') | Source/WebCore/testing/InternalSettings.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698