summaryrefslogtreecommitdiffstats
path: root/lib/web_event_factory.h
blob: 8557ce9364ab9ff54b27a6e356b9fd54a975d5dd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#ifndef WEB_EVENT_FACTORY_H
#define WEB_EVENT_FACTORY_H

#include "content/public/browser/native_web_keyboard_event.h"
#include "third_party/WebKit/Source/WebKit/chromium/public/WebInputEvent.h"

class QMouseEvent;
class QKeyEvent;
class QWheelEvent;

class WebEventFactory {

public:
    static WebKit::WebMouseEvent toWebMouseEvent(QMouseEvent*);
    static WebKit::WebMouseWheelEvent toWebWheelEvent(QWheelEvent*);
    static content::NativeWebKeyboardEvent toWebKeyboardEvent(QKeyEvent*);

};


#endif