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

Unified Diff: ui/views/widget/widget.cc

Issue 246073009: Refreshes the caret bounds on window move for IME UI. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 8 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 | « content/browser/renderer_host/render_widget_host_view_aura.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/widget/widget.cc
diff --git a/ui/views/widget/widget.cc b/ui/views/widget/widget.cc
index a01f90a3e547e1ae978c76656c853a0c864e572b..4f49609fe837543431e75acb84c164d91e2ed4d3 100644
--- a/ui/views/widget/widget.cc
+++ b/ui/views/widget/widget.cc
@@ -1088,6 +1088,9 @@ gfx::Size Widget::GetMaximumSize() {
void Widget::OnNativeWidgetMove() {
widget_delegate_->OnWidgetMove();
+ View* focused_view = GetRootView()->GetFocusManager()->GetFocusedView();
+ if (focused_view && focused_view->GetInputMethod())
+ focused_view->GetInputMethod()->OnCaretBoundsChanged(focused_view);
FOR_EACH_OBSERVER(WidgetObserver, observers_, OnWidgetBoundsChanged(
this,
GetWindowBoundsInScreen()));
« no previous file with comments | « content/browser/renderer_host/render_widget_host_view_aura.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698