Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(170)

Side by Side Diff: content/browser/renderer_host/web_input_event_factory_gtk.h

Issue 19776016: Add files. Does not compile yet! (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: gtk links, may not work correctly Created 7 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CONTENT_BROWSER_RENDERER_HOST_WEB_INPUT_EVENT_FACTORY_GTK_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_WEB_INPUT_EVENT_FACTORY_GTK_H_
7
8 typedef struct _GdkEventButton GdkEventButton;
9 typedef struct _GdkEventMotion GdkEventMotion;
10 typedef struct _GdkEventCrossing GdkEventCrossing;
11 typedef struct _GdkEventScroll GdkEventScroll;
12 typedef struct _GdkEventKey GdkEventKey;
13
14 namespace WebKit {
15 class WebKeyboardEvent;
16 class WebMouseEvent;
17 class WebMouseWheelEvent;
18 }
19
20 namespace content {
21
22 class WebInputEventFactory {
23 public:
24 static WebKit::WebKeyboardEvent keyboardEvent(const GdkEventKey* event);
25 static WebKit::WebKeyboardEvent keyboardEvent(wchar_t character,
26 int state,
27 double time_secs);
28 static WebKit::WebMouseEvent mouseEvent(const GdkEventButton* event);
29 static WebKit::WebMouseEvent mouseEvent(const GdkEventMotion* event);
30 static WebKit::WebMouseEvent mouseEvent(const GdkEventCrossing* event);
31 static WebKit::WebMouseWheelEvent mouseWheelEvent(
32 const GdkEventScroll* event);
33 };
34
35 } // namespace WebKit
36
37 #endif // CONTENT_BROWSER_RENDERER_HOST_WEB_INPUT_EVENT_FACTORY_GTK_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698