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

Unified Diff: chrome/browser/renderer_host/gtk_im_context_wrapper.cc

Issue 165293: Supports Gtk keyboard themes.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/renderer_host/gtk_key_bindings_handler.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/renderer_host/gtk_im_context_wrapper.cc
===================================================================
--- chrome/browser/renderer_host/gtk_im_context_wrapper.cc (revision 25695)
+++ chrome/browser/renderer_host/gtk_im_context_wrapper.cc (working copy)
@@ -146,7 +146,7 @@
if (event->type == GDK_KEY_PRESS && !filtered)
ProcessUnfilteredKeyPressEvent(&wke);
else if (event->type == GDK_KEY_RELEASE)
- host_view_->GetRenderWidgetHost()->ForwardKeyboardEvent(wke);
+ host_view_->ForwardKeyboardEvent(wke);
// End of key event processing.
is_in_key_event_handler_ = false;
@@ -291,15 +291,13 @@
wke->os_event->state = 0;
}
}
- host_view_->GetRenderWidgetHost()->ForwardKeyboardEvent(*wke);
+ host_view_->ForwardKeyboardEvent(*wke);
}
void GtkIMContextWrapper::ProcessUnfilteredKeyPressEvent(
NativeWebKeyboardEvent* wke) {
- RenderWidgetHost* host = host_view_->GetRenderWidgetHost();
-
// Send keydown event as it, because it's not filtered by IME.
- host->ForwardKeyboardEvent(*wke);
+ host_view_->ForwardKeyboardEvent(*wke);
// IME is disabled by WebKit or the GtkIMContext object cannot handle
// this key event.
@@ -315,7 +313,7 @@
// see WebInputEventFactory::keyboardEvent() for details.
if (wke->text[0]) {
wke->type = WebKit::WebInputEvent::Char;
- host->ForwardKeyboardEvent(*wke);
+ host_view_->ForwardKeyboardEvent(*wke);
}
}
@@ -338,7 +336,7 @@
NativeWebKeyboardEvent char_event(commit_text_[0],
event->state,
base::Time::Now().ToDoubleT());
- host->ForwardKeyboardEvent(char_event);
+ host_view_->ForwardKeyboardEvent(char_event);
} else {
committed = true;
// Send an IME event.
« no previous file with comments | « no previous file | chrome/browser/renderer_host/gtk_key_bindings_handler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698