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

Unified Diff: views/controls/textfield/native_textfield_win.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: Fix Windows build. 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/controls/textfield/native_textfield_win.cc
diff --git a/views/controls/textfield/native_textfield_win.cc b/views/controls/textfield/native_textfield_win.cc
index a1479870c0f2cee0cc351a7a60269cc6990ed587..a7e7443a6aabb93b629a88ae0ce28a582517dd93 100644
--- a/views/controls/textfield/native_textfield_win.cc
+++ b/views/controls/textfield/native_textfield_win.cc
@@ -366,6 +366,10 @@ void NativeTextfieldWin::HandleFocus() {
void NativeTextfieldWin::HandleBlur() {
}
+TextInputClient* NativeTextfieldWin::GetTextInputClient() {
+ return NULL;
+}
+
////////////////////////////////////////////////////////////////////////////////
// NativeTextfieldWin, ui::SimpleMenuModel::Delegate implementation:
@@ -602,8 +606,6 @@ LRESULT NativeTextfieldWin::OnImeEndComposition(UINT message,
// this case, we need to update the find results when a composition is
// finished or canceled.
textfield_->SyncText();
- if (textfield_->GetController())
- textfield_->GetController()->ContentsChanged(textfield_, GetText());
return DefWindowProc(message, wparam, lparam);
}
@@ -1016,8 +1018,6 @@ void NativeTextfieldWin::OnAfterPossibleChange(bool should_redraw_text) {
}
textfield_->SyncText();
UpdateAccessibleValue(textfield_->text());
- if (textfield_->GetController())
- textfield_->GetController()->ContentsChanged(textfield_, new_text);
if (should_redraw_text) {
CHARRANGE original_sel;
« no previous file with comments | « views/controls/textfield/native_textfield_win.h ('k') | views/controls/textfield/native_textfield_wrapper.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698