summaryrefslogtreecommitdiff
path: root/Tools/TestWebKitAPI/efl/PlatformWebView.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Tools/TestWebKitAPI/efl/PlatformWebView.cpp')
-rw-r--r--Tools/TestWebKitAPI/efl/PlatformWebView.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/Tools/TestWebKitAPI/efl/PlatformWebView.cpp b/Tools/TestWebKitAPI/efl/PlatformWebView.cpp
index cdc97bd13..08407c6a3 100644
--- a/Tools/TestWebKitAPI/efl/PlatformWebView.cpp
+++ b/Tools/TestWebKitAPI/efl/PlatformWebView.cpp
@@ -102,4 +102,13 @@ void PlatformWebView::simulateMouseMove(unsigned x, unsigned y)
evas_event_feed_mouse_move(evas, x, y, 0, 0);
}
+void PlatformWebView::simulateRightClick(unsigned x, unsigned y)
+{
+ Evas* evas = ecore_evas_get(m_window);
+ evas_object_show(m_view);
+ evas_event_feed_mouse_move(evas, x, y, 0, 0);
+ evas_event_feed_mouse_down(evas, 3, EVAS_BUTTON_NONE, 0, 0);
+ evas_event_feed_mouse_up(evas, 3, EVAS_BUTTON_NONE, 0, 0);
+}
+
} // namespace TestWebKitAPI