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

Side by Side Diff: webkit/glue/event_conversion.h

Issue 115330: linux: Adding events to windowless plugins on Linux (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: '' Created 11 years, 7 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 | « webkit/api/src/win/WebInputEventFactory.cpp ('k') | webkit/glue/event_conversion.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2006-2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2009 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef WEBKIT_GLUE_EVENT_CONVERSION_H_ 5 #ifndef WEBKIT_GLUE_EVENT_CONVERSION_H_
6 #define WEBKIT_GLUE_EVENT_CONVERSION_H_ 6 #define WEBKIT_GLUE_EVENT_CONVERSION_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 10
11 MSVC_PUSH_WARNING_LEVEL(0); 11 MSVC_PUSH_WARNING_LEVEL(0);
12 #include "PlatformKeyboardEvent.h" 12 #include "PlatformKeyboardEvent.h"
13 #include "PlatformMouseEvent.h" 13 #include "PlatformMouseEvent.h"
14 #include "PlatformWheelEvent.h" 14 #include "PlatformWheelEvent.h"
15 MSVC_POP_WARNING(); 15 MSVC_POP_WARNING();
16 16
17 namespace WebCore { 17 namespace WebCore {
18 class Widget; 18 class FrameView;
19 class KeyboardEvent;
20 class MouseEvent;
21 class Widget;
19 } 22 }
20 23
21 namespace WebKit { 24 namespace WebKit {
22 class WebMouseEvent; 25 class WebMouseEvent;
23 class WebMouseWheelEvent; 26 class WebMouseWheelEvent;
24 class WebKeyboardEvent; 27 class WebKeyboardEvent;
25 } 28 }
26 29
27 // These classes are used to convert from WebInputEvent subclasses to 30 // These classes are used to convert from WebInputEvent subclasses to
28 // corresponding WebCore events. 31 // corresponding WebCore events.
(...skipping 10 matching lines...) Expand all
39 WebCore::Widget* widget, const WebKit::WebMouseWheelEvent& e); 42 WebCore::Widget* widget, const WebKit::WebMouseWheelEvent& e);
40 }; 43 };
41 44
42 class MakePlatformKeyboardEvent : public WebCore::PlatformKeyboardEvent { 45 class MakePlatformKeyboardEvent : public WebCore::PlatformKeyboardEvent {
43 public: 46 public:
44 MakePlatformKeyboardEvent(const WebKit::WebKeyboardEvent& e); 47 MakePlatformKeyboardEvent(const WebKit::WebKeyboardEvent& e);
45 void SetKeyType(Type type); 48 void SetKeyType(Type type);
46 bool IsCharacterKey() const; 49 bool IsCharacterKey() const;
47 }; 50 };
48 51
52 // Converts a WebCore::MouseEvent to a corresponding WebMouseEvent. view is the
53 // FrameView corresponding to the event.
54 // Returns true if successful.
55 // NOTE: This is only implemented for mousemove, mouseover, mouseout, mousedown
56 // and mouseup.
57 bool ToWebMouseEvent(const WebCore::FrameView& view,
58 const WebCore::MouseEvent& event,
59 WebKit::WebMouseEvent* web_event);
60
61 // Converts a WebCore::KeyboardEvent to a corresponding WebKeyboardEvent.
62 // Returns true if successful.
63 // NOTE: This is only implemented for keydown and keyup.
64 bool ToWebKeyboardEvent(const WebCore::KeyboardEvent& event,
65 WebKit::WebKeyboardEvent* web_event);
66
49 #endif // WEBKIT_GLUE_EVENT_CONVERSION_H_ 67 #endif // WEBKIT_GLUE_EVENT_CONVERSION_H_
OLDNEW
« no previous file with comments | « webkit/api/src/win/WebInputEventFactory.cpp ('k') | webkit/glue/event_conversion.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698