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

Unified Diff: trunk/src/ui/views/controls/tree/tree_view.cc

Issue 23710009: Revert 219673 "Fix Views Combobox and Tree View text input." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 7 years, 4 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: trunk/src/ui/views/controls/tree/tree_view.cc
===================================================================
--- trunk/src/ui/views/controls/tree/tree_view.cc (revision 220120)
+++ trunk/src/ui/views/controls/tree/tree_view.cc (working copy)
@@ -22,6 +22,7 @@
#include "ui/views/controls/scroll_view.h"
#include "ui/views/controls/textfield/textfield.h"
#include "ui/views/controls/tree/tree_view_controller.h"
+#include "ui/views/ime/input_method.h"
using ui::TreeModel;
using ui::TreeModelNode;
@@ -599,10 +600,13 @@
void TreeView::OnFocus() {
View::OnFocus();
SchedulePaintForNode(selected_node_);
+
+ // Notify the InputMethod so that it knows to query the TextInputClient.
+ if (GetInputMethod())
+ GetInputMethod()->OnCaretBoundsChanged(this);
}
void TreeView::OnBlur() {
- View::OnBlur();
SchedulePaintForNode(selected_node_);
if (selector_)
selector_->OnViewBlur();
« no previous file with comments | « trunk/src/ui/views/controls/textfield/native_textfield_views.cc ('k') | trunk/src/ui/views/ime/input_method.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698