Move SendInputEvent to WebContents

This commit is contained in:
Cheng Zhao 2015-09-18 14:20:31 +08:00
parent 9e7de78231
commit 42863e4700
6 changed files with 44 additions and 79 deletions

View file

@ -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();
}