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

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

Issue 23815005: Import GTK WebInputEvent factory to content (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge defs of scrollbarPixelsPerTick Created 7 years, 3 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_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 #include "ui/base/keycodes/keyboard_codes.h"
11
12 typedef struct _GdkEventButton GdkEventButton;
13 typedef struct _GdkEventMotion GdkEventMotion;
14 typedef struct _GdkEventCrossing GdkEventCrossing;
15 typedef struct _GdkEventScroll GdkEventScroll;
16 typedef struct _GdkEventKey GdkEventKey;
17
18 namespace content {
19
20 class CONTENT_EXPORT WebKeyboardEventBuilder {
21 public:
22 static WebKit::WebKeyboardEvent Build(const GdkEventKey* event);
23 static WebKit::WebKeyboardEvent Build(wchar_t character,
24 int state,
25 double time_secs);
26 };
27
28 class CONTENT_EXPORT WebMouseEventBuilder {
29 public:
30 static WebKit::WebMouseEvent Build(const GdkEventButton* event);
31 static WebKit::WebMouseEvent Build(const GdkEventMotion* event);
32 static WebKit::WebMouseEvent Build(const GdkEventCrossing* event);
33 };
34
35 class CONTENT_EXPORT WebMouseWheelEventBuilder {
36 public:
37 static float ScrollbarPixelsPerTick();
38 static WebKit::WebMouseWheelEvent Build(
39 const GdkEventScroll* event);
40 };
41
42 } // namespace content
43
44 #endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_WEB_INPUT_EVENT_BUILDERS_GTK_H
OLDNEW
« no previous file with comments | « content/browser/DEPS ('k') | 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