#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_LINK_EFFECT 1 /* Sanghyup Lee(sh53.lee@samsung.com) To beep when 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*/
platform/efl/tizen/ScrollbarThemeTizen.cpp
platform/efl/tizen/SSLKeyGeneratorTizen.cpp
platform/efl/tizen/SSLPrivateKeyStoreTizen.cpp
+ platform/efl/tizen/TizenLinkEffect.cpp
platform/efl/tizen/TizenProfiler.cpp
platform/efl/tizen/TizenExtensibleAPI.cpp
#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;
#include "TouchList.h"
#endif
+#if ENABLE(TIZEN_LINK_EFFECT)
+#include "TizenLinkEffect.h"
+#endif
+
namespace WebCore {
using namespace HTMLNames;
{
m_frame->document()->updateLayoutIgnorePendingStylesheets();
Node* innerNode = targetNode(event);
- if (!(innerNode && innerNode->renderer() && m_mouseDownMayStartSelect))
+ if (!(innerNode && innerNode->renderer() && m_mouseDownMayStartSelect)) {
+#if ENABLE(TIZEN_LINK_EFFECT)
+ TizenLinkEffect::playLinkEffect();
+#endif
return false;
+ }
// Extend the selection if the Shift key is down, unless the click is in a link.
bool extendSelection = event.event().shiftKey() && !event.isOverLink();
#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
+/*
+ * Copyright (C) 2013 Samsung Electronics. All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions are met:
+ *
+ * 1. Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in the
+ * documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS'' AND
+ * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ * ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS BE LIABLE
+ * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+ * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
+ * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
+ * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
+ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
+ * DAMAGE.
+ */
+
+#include "config.h"
+#include "TizenLinkEffect.h"
+
+#include "feedback.h"
+
+#if ENABLE(TIZEN_LINK_EFFECT)
+namespace WebCore {
+
+void TizenLinkEffect::playLinkEffect()
+{
+ feedback_initialize();
+ feedback_play(FEEDBACK_PATTERN_TAP);
+ feedback_deinitialize();
+}
+
+}
+#endif
\ No newline at end of file
--- /dev/null
+/*
+ * Copyright (C) 2013 Samsung Electronics. All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions are met:
+ *
+ * 1. Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in the
+ * documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS'' AND
+ * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ * ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS BE LIABLE
+ * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+ * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
+ * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
+ * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
+ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
+ * DAMAGE.
+ */
+
+#ifndef TizenLinkEffect_h
+#define TizenLinkEffect_h
+
+#if ENABLE(TIZEN_LINK_EFFECT)
+
+namespace WebCore {
+
+class TizenLinkEffect {
+public:
+ static void playLinkEffect();
+};
+
+} // namespace WebCore
+
+#endif //ENABLE(TIZEN_LINK_EFFECT)
+
+#endif // TizenLinkEffect_h
\ No newline at end of file