ccf0b9bdf1c6df486d84b7a42082635b469d8f61
[platform/framework/web/crosswalk-tizen.git] /
1 // Copyright 2015 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 CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_VIEW_EFL_DELEGATE_H_
6 #define CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_VIEW_EFL_DELEGATE_H_
7
8 #include <vector>
9
10 #include "content/common/content_export.h"
11 #include "content/public/common/context_menu_params.h"
12 #include "content/public/common/menu_item.h"
13 #include "third_party/WebKit/public/platform/WebInputEvent.h"
14 #include "third_party/WebKit/public/platform/modules/screen_orientation/WebScreenOrientationLockType.h"
15 #include "third_party/WebKit/public/platform/WebGestureEvent.h"
16 #include "ui/gfx/geometry/rect.h"
17
18 namespace content {
19
20 class RenderFrameHost;
21
22 class WebContentsViewEflDelegate {
23  public:
24   WebContentsViewEflDelegate() {};
25   virtual ~WebContentsViewEflDelegate() {};
26
27   virtual void ShowPopupMenu(
28       RenderFrameHost* render_frame_host,
29       const gfx::Rect& bounds,
30       int item_height,
31       double item_font_size,
32       int selected_item,
33       const std::vector<MenuItem>& items,
34       bool right_aligned,
35       bool allow_multiple_selection) = 0;
36   virtual void HidePopupMenu() = 0;
37
38   virtual void CancelContextMenu(int request_id) = 0;
39
40   virtual void QuerySelectionStyle() = 0;
41   virtual void HandleZoomGesture(blink::WebGestureEvent& event) = 0;
42
43   virtual bool UseKeyPadWithoutUserAction() = 0;
44
45   virtual void ShowContextMenu(const ContextMenuParams& params) = 0;
46
47   virtual void OrientationLock(blink::WebScreenOrientationLockType) = 0;
48   virtual void OrientationUnlock() = 0;
49 };
50
51 } // namespace content
52
53 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_VIEW_EFL_DELEGATE_H_