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

Side by Side Diff: content/browser/renderer_host/input/web_input_event_builders_gtk.h

Issue 19776016: Add files. Does not compile yet! (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: builders 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
« no previous file with comments | « no previous file | content/browser/renderer_host/input/web_input_event_builders_gtk.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_INPUT_WEB_INPUT_EVENT_BUILDERS_GTK_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_INPUT_WEB_INPUT_EVENT_BUILDERS_GTK_H_
7
8 #include "content/common/content_export.h"
9 #include "third_party/WebKit/public/web/WebInputEvent.h"
10
11 typedef struct _GdkEventButton GdkEventButton;
12 typedef struct _GdkEventMotion GdkEventMotion;
13 typedef struct _GdkEventCrossing GdkEventCrossing;
14 typedef struct _GdkEventScroll GdkEventScroll;
15 typedef struct _GdkEventKey GdkEventKey;
16
17 namespace WebKit {
18 class WebKeyboardEvent;
19 class WebMouseEvent;
20 class WebMouseWheelEvent;
21 }
22
23 namespace content {
24
25 class CONTENT_EXPORT WebKeyboardEventBuilder {
26 public:
27 static WebKit::WebKeyboardEvent Build(const GdkEventKey* event);
28 static WebKit::WebKeyboardEvent Build(wchar_t character,
29 int state,
30 double time_secs);
31 };
32
33 class CONTENT_EXPORT WebMouseEventBuilder {
34 public:
35 static WebKit::WebMouseEvent Build(const GdkEventButton* event);
36 static WebKit::WebMouseEvent Build(const GdkEventMotion* event);
37 static WebKit::WebMouseEvent Build(const GdkEventCrossing* event);
38 };
39
40 class CONTENT_EXPORT WebMouseWheelEventBuilder {
41 public:
42 static WebKit::WebMouseWheelEvent Build(
43 const GdkEventScroll* event);
44 };
45
46 } // namespace content
47
48 #endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_WEB_INPUT_EVENT_BUILDERS_GTK_H_
OLDNEW
« no previous file with comments | « no previous file | content/browser/renderer_host/input/web_input_event_builders_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698