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

Side by Side Diff: chrome/common/native_web_keyboard_event.h

Issue 40065: RenderWidgetHost now stores both the WebKeyboardEvent and the native (Closed)
Patch Set: Redesign Created 11 years, 9 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
OLDNEW
(Empty)
1 // Copyright (c) 2009 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 BASE_GFX_NATIVE_EVENT_H_
6 #define BASE_GFX_NATIVE_EVENT_H_
darin (slow to review) 2009/03/06 04:45:35 nit: include guard is out-of-date
Elliot Glaysher 2009/03/06 20:51:25 Done.
7
8 #include "build/build_config.h"
darin (slow to review) 2009/03/06 04:45:35 nit: no need to include this since you are includi
Elliot Glaysher 2009/03/06 20:51:25 Done.
9
10 #include "base/basictypes.h"
11 #include "webkit/glue/webinputevent.h"
12
13 #if defined(OS_WIN)
14 #include <windows.h>
15 #elif defined(OS_MACOSX)
16 #ifdef __OBJC__
17 @class NSEvent;
18 #else
19 class NSEvent;
20 #endif // __OBJC__
21 #elif defined(OS_LINUX)
22 #include <gdk/gdk.h>
23 #endif
24
25 // Owns a platform specific event; used to pass own and pass event through
26 // platform independent code.
27 struct NativeWebKeyboardEvent : public WebKeyboardEvent {
28 public:
darin (slow to review) 2009/03/06 04:45:35 nit: no need for public here since it is a struct
Elliot Glaysher 2009/03/06 20:51:25 Done.
29 NativeWebKeyboardEvent();
30
31 #if defined(OS_WIN)
32 NativeWebKeyboardEvent(HWND hwnd, UINT message, WPARAM wparam, LPARAM lparam);
33 #elif defined(OS_MACOSX)
34 explicit NativeWebKeyboardEvent(NSEvent *event);
35 #elif defined(OS_LINUX)
36 explicit NativeWebKeyboardEvent(const GdkEventKey* event);
37 #endif
38
39 NativeWebKeyboardEvent(const NativeWebKeyboardEvent& event);
40 ~NativeWebKeyboardEvent();
41
42 NativeWebKeyboardEvent& operator=(const NativeWebKeyboardEvent& event);
43
44 #if defined(OS_WIN)
darin (slow to review) 2009/03/06 04:45:35 nit: maybe all of these member variables could hav
Elliot Glaysher 2009/03/06 20:51:25 Done.
45 MSG actual_message;
46 #elif defined(OS_MACOSX)
47 NSEvent* event;
48 #elif defined(OS_LINUX)
49 GdkEventKey* event;
50 #endif
51 };
52
53 #endif // BASE_GFX_NATIVE_EVENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698