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

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

Issue 295003: Make backspace not go back while IME is active. (Closed)
Patch Set: s/skip/skip_in_browser/ Created 11 years, 2 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
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. 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 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 CHROME_COMMON_NATIVE_WEB_KEYBOARD_EVENT_H_ 5 #ifndef CHROME_COMMON_NATIVE_WEB_KEYBOARD_EVENT_H_
6 #define CHROME_COMMON_NATIVE_WEB_KEYBOARD_EVENT_H_ 6 #define CHROME_COMMON_NATIVE_WEB_KEYBOARD_EVENT_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "webkit/api/public/WebInputEvent.h" 9 #include "webkit/api/public/WebInputEvent.h"
10 10
(...skipping 30 matching lines...) Expand all
41 41
42 NativeWebKeyboardEvent(const NativeWebKeyboardEvent& event); 42 NativeWebKeyboardEvent(const NativeWebKeyboardEvent& event);
43 ~NativeWebKeyboardEvent(); 43 ~NativeWebKeyboardEvent();
44 44
45 NativeWebKeyboardEvent& operator=(const NativeWebKeyboardEvent& event); 45 NativeWebKeyboardEvent& operator=(const NativeWebKeyboardEvent& event);
46 46
47 #if defined(OS_WIN) 47 #if defined(OS_WIN)
48 MSG os_event; 48 MSG os_event;
49 #elif defined(OS_MACOSX) 49 #elif defined(OS_MACOSX)
50 NSEvent* os_event; 50 NSEvent* os_event;
51
52 // True if the browser should ignore this event if it's not handled by the
53 // renderer. This happens for RawKeyDown events that are created while IME is
54 // active and is necessary to prevent backspace from doing "history back" if
55 // it is hit in ime mode.
56 bool skip_in_browser;
51 #elif defined(OS_LINUX) 57 #elif defined(OS_LINUX)
52 GdkEventKey* os_event; 58 GdkEventKey* os_event;
53 #endif 59 #endif
54 }; 60 };
55 61
56 #endif // CHROME_COMMON_NATIVE_WEB_KEYBOARD_EVENT_H_ 62 #endif // CHROME_COMMON_NATIVE_WEB_KEYBOARD_EVENT_H_
OLDNEW
« no previous file with comments | « chrome/browser/tab_contents/tab_contents_view_mac.mm ('k') | chrome/common/native_web_keyboard_event_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698