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

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

Issue 23245012: Fix Views Combobox and Tree View text input. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Move InputMethod focus/blur to View. 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
« no previous file with comments | « ui/views/controls/combobox/combobox.cc ('k') | ui/views/view.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/controls/tree/tree_view.cc
diff --git a/ui/views/controls/tree/tree_view.cc b/ui/views/controls/tree/tree_view.cc
index 1d550a2ff75b849947c3e67e19514f9befc3c497..fdab98077ac7c50a2664d26b6bb4c5c2173045ed 100644
--- a/ui/views/controls/tree/tree_view.cc
+++ b/ui/views/controls/tree/tree_view.cc
@@ -22,7 +22,6 @@
#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;
@@ -600,13 +599,10 @@ void TreeView::OnPaint(gfx::Canvas* canvas) {
void TreeView::OnFocus() {
View::OnFocus();
SchedulePaintForNode(selected_node_);
-
- // Notify the InputMethod so that it knows to query the TextInputClient.
- if (GetInputMethod())
- GetInputMethod()->OnCaretBoundsChanged(this);
sky 2013/08/21 23:35:29 I'm pretty sure I found that if I didn't invoke th
msw 2013/08/22 18:07:10 I tested English and Japanese in Win7, Win8 Deskto
}
void TreeView::OnBlur() {
+ View::OnBlur();
SchedulePaintForNode(selected_node_);
if (selector_)
selector_->OnViewBlur();
« no previous file with comments | « ui/views/controls/combobox/combobox.cc ('k') | ui/views/view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698