[M47_2526] Chromium upversion to m47_2526 branch
[platform/framework/web/chromium-efl.git] / tizen_src / ewk / efl_integration / browser / web_view_evas_handler.h
1 // Copyright (c) 2014 The Chromium Authors. All rights reserved.
2 // Copyright 2014 Samsung Electronics. All rights reserved.
3 // Use of this source code is governed by a BSD-style license that can be
4 // found in the LICENSE file.
5
6 #ifndef TIZEN_WEBVIEW_EVENT_TW_WEBVIEW_EVAS_EVENT_HANDLER_H_
7 #define TIZEN_WEBVIEW_EVENT_TW_WEBVIEW_EVAS_EVENT_HANDLER_H_
8
9 #include "content/browser/renderer_host/evas_event_handler.h"
10
11 class EWebView;
12
13 class WebViewEvasEventHandler: public content::EvasEventHandler {
14  public:
15   explicit WebViewEvasEventHandler(EWebView*);
16
17   // ---- event handlers
18   bool HandleEvent_FocusIn() override;
19   bool HandleEvent_FocusOut() override;
20   bool HandleEvent_KeyDown (const Evas_Event_Key_Down*) override;
21   bool HandleEvent_KeyUp (const Evas_Event_Key_Up*) override;
22   bool HandleEvent_MouseDown (const Evas_Event_Mouse_Down*) override;
23   bool HandleEvent_MouseUp   (const Evas_Event_Mouse_Up*) override;
24   bool HandleEvent_MouseMove (const Evas_Event_Mouse_Move*) override;
25   bool HandleEvent_MouseWheel(const Evas_Event_Mouse_Wheel*) override;
26
27  private:
28   EWebView* webview_;
29 };
30
31 #endif  // TIZEN_WEBVIEW_PUBLIC_TW_WEBVIEW_EVAS_EVENT_HANDLER_H_