Add link effect that play beep sound when touch the combobox.
authorSanghyup Lee <sh53.lee@samsung.com>
Thu, 4 Apr 2013 13:35:52 +0000 (22:35 +0900)
committerGerrit Code Review <gerrit2@kim11>
Mon, 8 Apr 2013 01:38:20 +0000 (10:38 +0900)
[Title] Add link effect that play beep sound when touch the combobox.
[Issue#] P130329-9011
[Problem] There is no touch sound after tapping on combobox.
[Cause] Touch event did not call link effect.
[Solution] Added link effect when touch the combobox.

Change-Id: I7ac5eb7556aaf3f74d3a723419e111f73009beaa

Source/WebKit2/WebProcess/WebCoreSupport/WebPopupMenu.cpp

index 2f80c6b..2464d17 100644 (file)
 #include <WebCore/FrameView.h>
 #include <WebCore/PopupMenuClient.h>
 
+#if ENABLE(TIZEN_LINK_EFFECT)
+#include <WebCore/TizenLinkEffect.h>
+#endif
+
 using namespace WebCore;
 
 namespace WebKit {
@@ -116,6 +120,9 @@ Vector<WebPopupItem> WebPopupMenu::populateItems()
 
 void WebPopupMenu::show(const IntRect& rect, FrameView* view, int index)
 {
+#if ENABLE(TIZEN_LINK_EFFECT)
+    TizenLinkEffect::playLinkEffect();
+#endif
     TIZEN_LOGI("");
     // FIXME: We should probably inform the client to also close the menu.
     Vector<WebPopupItem> items = populateItems();