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.
5 #ifndef CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_VIEW_EFL_DELEGATE_H_
6 #define CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_VIEW_EFL_DELEGATE_H_
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"
20 class RenderFrameHost;
22 class WebContentsViewEflDelegate {
24 WebContentsViewEflDelegate() {};
25 virtual ~WebContentsViewEflDelegate() {};
27 virtual void ShowPopupMenu(
28 RenderFrameHost* render_frame_host,
29 const gfx::Rect& bounds,
31 double item_font_size,
33 const std::vector<MenuItem>& items,
35 bool allow_multiple_selection) = 0;
36 virtual void HidePopupMenu() = 0;
38 virtual void CancelContextMenu(int request_id) = 0;
40 virtual void QuerySelectionStyle() = 0;
41 virtual void HandleZoomGesture(blink::WebGestureEvent& event) = 0;
43 virtual bool UseKeyPadWithoutUserAction() = 0;
45 virtual void ShowContextMenu(const ContextMenuParams& params) = 0;
47 virtual void OrientationLock(blink::WebScreenOrientationLockType) = 0;
48 virtual void OrientationUnlock() = 0;
51 } // namespace content
53 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_VIEW_EFL_DELEGATE_H_