mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
Add multi-touch support for OSR (issue #1059)
This commit is contained in:
committed by
Marshall Greenblatt
parent
9ba28dd730
commit
5f615a95bc
@@ -20,6 +20,8 @@ namespace client {
|
||||
class BrowserWindowOsrGtk : public BrowserWindow,
|
||||
public ClientHandlerOsr::OsrDelegate {
|
||||
public:
|
||||
typedef void* CefXIDeviceEvent;
|
||||
|
||||
// Constructor may be called on any thread.
|
||||
// |delegate| must outlive this object.
|
||||
BrowserWindowOsrGtk(BrowserWindow::Delegate* delegate,
|
||||
@@ -114,6 +116,9 @@ class BrowserWindowOsrGtk : public BrowserWindow,
|
||||
GdkEventFocus* event,
|
||||
BrowserWindowOsrGtk* self);
|
||||
|
||||
void TouchEvent(CefXIDeviceEvent event);
|
||||
void RegisterTouch();
|
||||
|
||||
bool IsOverPopupWidget(int x, int y) const;
|
||||
int GetPopupXOffset() const;
|
||||
int GetPopupYOffset() const;
|
||||
@@ -166,6 +171,10 @@ class BrowserWindowOsrGtk : public BrowserWindow,
|
||||
guint info,
|
||||
guint time,
|
||||
BrowserWindowOsrGtk* self);
|
||||
static GdkFilterReturn EventFilter(GdkXEvent* gdk_xevent,
|
||||
GdkEvent* event,
|
||||
gpointer data);
|
||||
static void InitializeXinput(XDisplay* xdisplay);
|
||||
|
||||
XDisplay* xdisplay_;
|
||||
|
||||
|
Reference in New Issue
Block a user