Move SendInputEvent to WebContents
This commit is contained in:
parent
9e7de78231
commit
42863e4700
6 changed files with 44 additions and 79 deletions
|
@ -26,11 +26,6 @@
|
|||
|
||||
class SkRegion;
|
||||
|
||||
namespace blink {
|
||||
class WebMouseEvent;
|
||||
class WebMouseWheelEvent;
|
||||
}
|
||||
|
||||
namespace brightray {
|
||||
class InspectableWebContents;
|
||||
}
|
||||
|
@ -179,11 +174,6 @@ class NativeWindow : public content::WebContentsObserver,
|
|||
// Subscribe to the frame updates.
|
||||
void SetFrameSubscription(bool isOffscreen);
|
||||
|
||||
// Send the WebInputEvent to the page.
|
||||
void SendInputEvent(const blink::WebMouseEvent& mouse_event);
|
||||
void SendInputEvent(const blink::WebMouseWheelEvent& mouse_wheel_event);
|
||||
void SendInputEvent(const content::NativeWebKeyboardEvent& keyboard_event);
|
||||
|
||||
base::WeakPtr<NativeWindow> GetWeakPtr() {
|
||||
return weak_factory_.GetWeakPtr();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue