summaryrefslogtreecommitdiff
path: root/chromium/content/browser/renderer_host/render_widget_host_delegate.h
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/content/browser/renderer_host/render_widget_host_delegate.h')
-rw-r--r--chromium/content/browser/renderer_host/render_widget_host_delegate.h29
1 files changed, 20 insertions, 9 deletions
diff --git a/chromium/content/browser/renderer_host/render_widget_host_delegate.h b/chromium/content/browser/renderer_host/render_widget_host_delegate.h
index 4f6068ea17f..680b1e81320 100644
--- a/chromium/content/browser/renderer_host/render_widget_host_delegate.h
+++ b/chromium/content/browser/renderer_host/render_widget_host_delegate.h
@@ -7,6 +7,7 @@
#include <stdint.h>
+#include <string>
#include <vector>
#include "build/build_config.h"
@@ -14,9 +15,9 @@
#include "content/common/drag_event_source_info.h"
#include "content/public/common/drop_data.h"
#include "services/metrics/public/cpp/ukm_recorder.h"
-#include "third_party/WebKit/public/platform/WebDisplayMode.h"
-#include "third_party/WebKit/public/platform/WebDragOperation.h"
-#include "third_party/WebKit/public/platform/WebInputEvent.h"
+#include "third_party/blink/public/platform/web_display_mode.h"
+#include "third_party/blink/public/platform/web_drag_operation.h"
+#include "third_party/blink/public/platform/web_input_event.h"
#include "ui/gfx/native_widget_types.h"
namespace blink {
@@ -95,12 +96,10 @@ class CONTENT_EXPORT RenderWidgetHostDelegate {
// the event itself.
virtual bool HandleWheelEvent(const blink::WebMouseWheelEvent& event);
- // Notification the user has performed a direct interaction (mouse down,
- // scroll, raw key down, gesture tap, or browser-initiated navigation) while
- // focus was on the page. Informs the delegate that a user is interacting with
- // a site.
- virtual void OnUserInteraction(RenderWidgetHostImpl* render_widget_host,
- const blink::WebInputEvent::Type type) {}
+ // Notification that an input event from the user was dispatched to the
+ // widget.
+ virtual void DidReceiveInputEvent(RenderWidgetHostImpl* render_widget_host,
+ const blink::WebInputEvent::Type type) {}
// Callback to give the browser a chance to handle the specified gesture
// event before sending it to the renderer.
@@ -193,6 +192,18 @@ class CONTENT_EXPORT RenderWidgetHostDelegate {
// locked.
virtual RenderWidgetHostImpl* GetMouseLockWidget();
+ // Requests to lock the keyboard. Once the request is approved or rejected,
+ // GotResponseToKeyboardLockRequest() will be called on the requesting render
+ // widget host.
+ virtual bool RequestKeyboardLock(RenderWidgetHostImpl* render_widget_host,
+ bool esc_key_locked);
+
+ // Cancels a previous keyboard lock request.
+ virtual void CancelKeyboardLock(RenderWidgetHostImpl* render_widget_host) {}
+
+ // Returns the widget that holds the keyboard lock or nullptr if not locked.
+ virtual RenderWidgetHostImpl* GetKeyboardLockWidget();
+
// Called when the visibility of the RenderFrameProxyHost in outer
// WebContents changes. This method is only called on an inner WebContents and
// will eventually notify all the RenderWidgetHostViews belonging to that