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

Unified Diff: chrome/common/native_web_keyboard_event_mac.mm

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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/common/native_web_keyboard_event.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/native_web_keyboard_event_mac.mm
diff --git a/chrome/common/native_web_keyboard_event_mac.mm b/chrome/common/native_web_keyboard_event_mac.mm
index b9922bb36dd26ae0870a1a7ff024a7f6cde9f14b..59e0ace76d5e393cec33880a32633dbde5be0b9b 100644
--- a/chrome/common/native_web_keyboard_event_mac.mm
+++ b/chrome/common/native_web_keyboard_event_mac.mm
@@ -11,12 +11,14 @@
using WebKit::WebInputEventFactory;
NativeWebKeyboardEvent::NativeWebKeyboardEvent()
- : os_event(NULL) {
+ : os_event(NULL),
+ skip_in_browser(false) {
}
NativeWebKeyboardEvent::NativeWebKeyboardEvent(NSEvent* event)
: WebKeyboardEvent(WebInputEventFactory::keyboardEvent(event)),
- os_event([event retain]) {
+ os_event([event retain]),
+ skip_in_browser(false) {
}
NativeWebKeyboardEvent::NativeWebKeyboardEvent(wchar_t character,
@@ -25,13 +27,15 @@ NativeWebKeyboardEvent::NativeWebKeyboardEvent(wchar_t character,
: WebKeyboardEvent(WebInputEventFactory::keyboardEvent(character,
modifiers,
time_stamp_seconds)),
- os_event(NULL) {
+ os_event(NULL),
+ skip_in_browser(false) {
}
NativeWebKeyboardEvent::NativeWebKeyboardEvent(
const NativeWebKeyboardEvent& other)
: WebKeyboardEvent(other),
- os_event([other.os_event retain]) {
+ os_event([other.os_event retain]),
+ skip_in_browser(other.skip_in_browser) {
}
NativeWebKeyboardEvent& NativeWebKeyboardEvent::operator=(
@@ -42,6 +46,8 @@ NativeWebKeyboardEvent& NativeWebKeyboardEvent::operator=(
os_event = [other.os_event retain];
[previous release];
+ skip_in_browser = other.skip_in_browser;
+
return *this;
}
« no previous file with comments | « chrome/common/native_web_keyboard_event.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698