[M120 Migration][MM] Support W3C EME
[platform/framework/web/chromium-efl.git] / tizen_src / ewk / unittest / utc_blink_ewk_context_menu.h
1 // Copyright 2014 Samsung Electronics. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef UTC_BLINK_EWK_CONTEXT_MENU_H
6 #define UTC_BLINK_EWK_CONTEXT_MENU_H
7
8 #include "ewk_context_menu.h"
9 #include <Ecore.h>
10 #include <Evas.h>
11
12 #ifdef __cplusplus
13 extern "C" {
14 #endif
15
16 enum {
17     CUSTOM_CONTEXT_MENU_ITEM_BASE_TAG = EWK_CONTEXT_MENU_ITEM_BASE_APPLICATION_TAG,
18     CUSTOM_CONTEXT_MENU_ITEM_TEST_TAG
19 };
20
21 static void feed_mouse_click(int button, int x, int y, Evas* evas)
22 {
23   evas_event_feed_mouse_move(evas, x, y, ecore_time_get(), 0);
24   evas_event_feed_mouse_down(evas, button, EVAS_BUTTON_NONE, ecore_time_get(), 0);
25   evas_event_feed_mouse_up(evas, button, EVAS_BUTTON_NONE, ecore_time_get(), 0);
26 }
27
28 #ifdef __cplusplus
29 }
30 #endif
31
32 #endif /* UTC_WEBKIT2_EWK_CONTEXT_MENU_H */