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

Unified Diff: views/view.cc

Issue 6675005: Integrate the new input method API for Views into Chromium. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: TouchUI: Always dispatch key events to the input method. Created 9 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 side-by-side diff with in-line comments
Download patch
Index: views/view.cc
diff --git a/views/view.cc b/views/view.cc
index d41a856356890fd0c4adcce7800f596f497d69ac..3f5f5bd350400fa7e0475f62fe42a2239b563ebe 100644
--- a/views/view.cc
+++ b/views/view.cc
@@ -843,8 +843,8 @@ TextInputClient* View::GetTextInputClient() {
}
InputMethod* View::GetInputMethod() {
- NOTIMPLEMENTED();
- return NULL;
+ Widget* widget = GetWidget();
+ return widget ? widget->GetInputMethod() : NULL;
}
// Accelerators ----------------------------------------------------------------

Powered by Google App Engine
This is Rietveld 408576698