| Index: content/browser/renderer_host/web_input_event_factory_gtk.h
|
| diff --git a/content/browser/renderer_host/web_input_event_factory_gtk.h b/content/browser/renderer_host/web_input_event_factory_gtk.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..ec2bcbbc2a11088e0f5c3b6de683f977169b7ec4
|
| --- /dev/null
|
| +++ b/content/browser/renderer_host/web_input_event_factory_gtk.h
|
| @@ -0,0 +1,37 @@
|
| +// Copyright (c) 2013 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#ifndef CONTENT_BROWSER_RENDERER_HOST_WEB_INPUT_EVENT_FACTORY_GTK_H_
|
| +#define CONTENT_BROWSER_RENDERER_HOST_WEB_INPUT_EVENT_FACTORY_GTK_H_
|
| +
|
| +typedef struct _GdkEventButton GdkEventButton;
|
| +typedef struct _GdkEventMotion GdkEventMotion;
|
| +typedef struct _GdkEventCrossing GdkEventCrossing;
|
| +typedef struct _GdkEventScroll GdkEventScroll;
|
| +typedef struct _GdkEventKey GdkEventKey;
|
| +
|
| +namespace WebKit {
|
| +class WebKeyboardEvent;
|
| +class WebMouseEvent;
|
| +class WebMouseWheelEvent;
|
| +}
|
| +
|
| +namespace content {
|
| +
|
| +class WebInputEventFactory {
|
| + public:
|
| + static WebKit::WebKeyboardEvent keyboardEvent(const GdkEventKey* event);
|
| + static WebKit::WebKeyboardEvent keyboardEvent(wchar_t character,
|
| + int state,
|
| + double time_secs);
|
| + static WebKit::WebMouseEvent mouseEvent(const GdkEventButton* event);
|
| + static WebKit::WebMouseEvent mouseEvent(const GdkEventMotion* event);
|
| + static WebKit::WebMouseEvent mouseEvent(const GdkEventCrossing* event);
|
| + static WebKit::WebMouseWheelEvent mouseWheelEvent(
|
| + const GdkEventScroll* event);
|
| +};
|
| +
|
| +} // namespace WebKit
|
| +
|
| +#endif // CONTENT_BROWSER_RENDERER_HOST_WEB_INPUT_EVENT_FACTORY_GTK_H_
|
|
|