#define ENABLE_TIZEN_CONTEXT_MENU_TEMPORARY_FIX 1 /* Michal Pakula(m.pakula@samsung.com) : Temporary hack to prevent from crash when calling context menu on editable fiedld */
#define ENABLE_TIZEN_CONTEXT_MENU_SELECT 1 /* Michal Pakula(m.pakula@samsung.com) : Adds Select All and Select options to context menu */
#define ENABLE_TIZEN_MEDIA_CONTROL_USER_AGENT_SHEET 1 /* Gyuyoung Kim(gyuyoung.kim@samsung.com) Add media control ui sheet for TIZEN */
+#define ENABLE_TIZEN_LINK_SOUND 1 /* Sanghyup Lee(sh53.lee@samsung.com) For beep on click link*/
#define ENABLE_TIZEN_DAILY_UPVERSIONING 1 /* Krzysztof Czech(k.czech@samsung.com) : Used for fixing building errors while doing daily upversioning, should be deleted before merging to master*/
${Pmapi_INCLUDE_DIRS}
${SESSION_INCLUDE_DIRS}
${VConf_INCLUDE_DIRS}
+ ${feedback_INCLUDE_DIR}
)
LIST(APPEND WebCore_LIBRARIES
${Pmapi_LIBRARIES}
${SESSION_LIBRARIES}
${VConf_LIBRARIES}
+ ${feedback_LIBRARY}
)
LIST(APPEND WebCore_USER_AGENT_STYLE_SHEETS
#include "SecurityPolicy.h"
#include "Settings.h"
+#if ENABLE(TIZEN_LINK_SOUND)
+#include "Sound.h"
+#endif
+
namespace WebCore {
using namespace HTMLNames;
}
if (isLinkClick(event) && treatLinkAsLiveForEventType(eventType(event))) {
+#if ENABLE(TIZEN_LINK_SOUND)
+ feedbackPlay();
+#endif
handleClick(event);
return;
}
#include "ScriptEventListener.h"
#include <wtf/StdLibExtras.h>
+#if ENABLE(TIZEN_LINK_SOUND)
+#include "Sound.h"
+#endif
+
namespace WebCore {
using namespace HTMLNames;
void HTMLButtonElement::defaultEventHandler(Event* event)
{
if (event->type() == eventNames().DOMActivateEvent && !disabled()) {
+#if ENABLE(ETIZEN_LINK_SOUND)
+ feedbackPlay();
+#endif
if (form() && m_type == SUBMIT) {
m_isActivatedSubmit = true;
form()->prepareForSubmission(event);
#include "TouchEvent.h"
#endif
+#if ENABLE(TIZEN_LINK_SOUND)
+#include "Sound.h"
+#endif
+
using namespace std;
namespace WebCore {
}
if (evt->isMouseEvent() && evt->type() == eventNames().mousedownEvent) {
+#if ENABLE(TIZEN_LINK_SOUND)
+ feedbackPlay();
+#endif
m_inputType->handleMouseDownEvent(static_cast<MouseEvent*>(evt));
if (evt->defaultHandled())
return;
#define Sound_h
namespace WebCore {
+#if ENABLE(TIZEN_LINK_SOUND)
+ void feedbackPlay();
+#endif
void systemBeep();
#include <Ecore_X.h>
#endif
+#if ENABLE(TIZEN_LINK_SOUND)
+#include "feedback.h"
+#endif
+
namespace WebCore {
+#if ENABLE(TIZEN_LINK_SOUND)
+void feedbackPlay()
+{
+ feedback_initialize();
+ feedback_play(FEEDBACK_PATTERN_TAP);
+ feedback_deinitialize();
+}
+#endif
+
void systemBeep()
{
// FIXME: The ecore_x_bell() uses XBell() which works in the current Display.
--- /dev/null
+# - Try to find feedback
+# Once done, this will define
+#
+# feedback_FOUND - system has feedback
+# feedback_INCLUDE_DIRS - the feedback include directories
+# feedback_LIBRARIES - link these to use feedback
+
+include(LibFindMacros)
+
+# Use pkg-config to get hints about paths
+libfind_pkg_check_modules(feedback_PKGCONF feedback)
+
+# Include dir
+find_path(feedback_INCLUDE_DIR
+ NAMES feedback.h
+ PATHS ${feedback_PKGCONF_INCLUDE_DIRS}
+ PATH_SUFFIXES feedback
+)
+
+# Finally the library itself
+find_library(feedback_LIBRARY
+ NAMES feedback
+ PATHS ${feedback_PKGCONF_LIBRARY_DIRS}
+)
+
+# Set the include dir variables and the libraries and let libfind_process do the rest.
+# NOTE: Singular variables for this library, plural for libraries this this lib depends on.
+set(feedback_PROCESS_INCLUDES feedback_INCLUDE_DIR feddback_INCLUDE_DIRS)
+set(feedback_PROCESS_LIBS feedback_LIBRARY feedback_LIBRARIES)
+libfind_process(libfeedback)
FIND_PACKAGE(Media-Utils 0.1.35 REQUIRED)
FIND_PACKAGE(UIGadget REQUIRED)
FIND_PACKAGE(VConf REQUIRED)
+FIND_PACKAGE(feedback REQUIRED)
ADD_DEFINITIONS(-DENABLE_GESTURE_EVENTS=1)
BuildRequires: pkgconfig(elementary)
BuildRequires: pkgconfig(enchant)
BuildRequires: pkgconfig(evas)
+BuildRequires: pkgconfig(feedback)
BuildRequires: pkgconfig(fontconfig)
BuildRequires: pkgconfig(freetype2)
BuildRequires: pkgconfig(glib-2.0)