| Index: third_party/WebKit/Source/core/frame/WebFrameWidgetBase.h
|
| diff --git a/third_party/WebKit/Source/core/frame/WebFrameWidgetBase.h b/third_party/WebKit/Source/core/frame/WebFrameWidgetBase.h
|
| index 48c60c95e9435af6a3502ba4406900188074012e..9f7eac24b9da095f711a37e1e920ead435c719ae 100644
|
| --- a/third_party/WebKit/Source/core/frame/WebFrameWidgetBase.h
|
| +++ b/third_party/WebKit/Source/core/frame/WebFrameWidgetBase.h
|
| @@ -110,6 +110,12 @@ class CORE_EXPORT WebFrameWidgetBase
|
| // the page is shutting down, but will be valid at all other times.
|
| Page* GetPage() const;
|
|
|
| + // This method returns the focused frame belonging to this WebWidget: that is
|
| + // a focused frame with the same local root as the one corresponding to this
|
| + // widget. It will return nullptr if no frame is focused or the focused frame
|
| + // has a different local root.
|
| + LocalFrame* FocusedLocalFrame() const;
|
| +
|
| // A copy of the web drop data object we received from the browser.
|
| Persistent<DataObject> current_drag_data_;
|
|
|
| @@ -126,9 +132,13 @@ class CORE_EXPORT WebFrameWidgetBase
|
| // Helper function to process events while pointer locked.
|
| void PointerLockMouseEvent(const WebCoalescedInputEvent&);
|
|
|
| + // TODO(ekaramad): Can we remove this and make sure IME events are not called
|
| + // when there is no page focus?
|
| + // Represents whether or not this object should process incoming IME events.
|
| + bool ime_accept_events_ = true;
|
| +
|
| private:
|
| void CancelDrag();
|
| - LocalFrame* FocusedLocalFrameInWidget() const;
|
|
|
| static bool ignore_input_events_;
|
| RefPtr<UserGestureToken> pointer_lock_gesture_token_;
|
|
|