|
|
Created:
6 years, 8 months ago by Jun Mukai Modified:
6 years, 8 months ago CC:
chromium-reviews, tdanderson+views_chromium.org, yusukes+watch_chromium.org, yukishiino+watch_chromium.org, tfarina, jam, penghuang+watch_chromium.org, sievers+watch_chromium.org, jbauman+watch_chromium.org, nona+watch_chromium.org, darin-cc_chromium.org, kalyank, piman+watch_chromium.org, danakj+watch_chromium.org, James Su, ben+views_chromium.org, miu+watch_chromium.org, Shu Chen Base URL:
svn://svn.chromium.org/chrome/trunk/src Visibility:
Public. |
DescriptionRefreshes the caret bounds on window move for IME UI.
BUG=365822
R=oshima@chromium.org, ben@chromium.org
TEST=manually
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=266397
Patch Set 1 #
Total comments: 5
Patch Set 2 : fix #Patch Set 3 : fix trybot failures #
Messages
Total messages: 32 (0 generated)
https://codereview.chromium.org/246073009/diff/1/ui/views/widget/widget.cc File ui/views/widget/widget.cc (right): https://codereview.chromium.org/246073009/diff/1/ui/views/widget/widget.cc#ne... ui/views/widget/widget.cc:1101: You may also want to update when the size is changed, which may cause the re-layout?
https://codereview.chromium.org/246073009/diff/1/ui/views/widget/widget.cc File ui/views/widget/widget.cc (right): https://codereview.chromium.org/246073009/diff/1/ui/views/widget/widget.cc#ne... ui/views/widget/widget.cc:1101: On 2014/04/23 05:55:44, oshima wrote: > You may also want to update when the size is changed, which may cause the > re-layout? I don't think so, each view can update the boundary upon its re-layout. For example, views::Textfield does this at OnBoundsChanged()
https://codereview.chromium.org/246073009/diff/1/ui/views/widget/widget.cc File ui/views/widget/widget.cc (right): https://codereview.chromium.org/246073009/diff/1/ui/views/widget/widget.cc#ne... ui/views/widget/widget.cc:1101: On 2014/04/23 22:23:04, Jun Mukai wrote: > On 2014/04/23 05:55:44, oshima wrote: > > You may also want to update when the size is changed, which may cause the > > re-layout? > > I don't think so, each view can update the boundary upon its re-layout. For > example, views::Textfield does this at OnBoundsChanged() Are you sure it gets called when only parent bounds has changed?
https://codereview.chromium.org/246073009/diff/1/ui/views/widget/widget.cc File ui/views/widget/widget.cc (right): https://codereview.chromium.org/246073009/diff/1/ui/views/widget/widget.cc#ne... ui/views/widget/widget.cc:1101: On 2014/04/23 22:54:15, oshima wrote: > On 2014/04/23 22:23:04, Jun Mukai wrote: > > On 2014/04/23 05:55:44, oshima wrote: > > > You may also want to update when the size is changed, which may cause the > > > re-layout? > > > > I don't think so, each view can update the boundary upon its re-layout. For > > example, views::Textfield does this at OnBoundsChanged() > > Are you sure it gets called when only parent bounds has changed? Sorry, I got unsure about your point. The widget size change causes RootView::SetSize (see above), and it causes root view's bounds change (and Layout). Whether this causes Textfield::OnBoundsChanged or not depends on how the views are structured. However, if the widget's size change causes the change of the bounds of textfield (or whatever) in the widget, OnBoundsChanged() has to be called.
https://codereview.chromium.org/246073009/diff/1/ui/views/widget/widget.cc File ui/views/widget/widget.cc (right): https://codereview.chromium.org/246073009/diff/1/ui/views/widget/widget.cc#ne... ui/views/widget/widget.cc:1101: On 2014/04/23 23:16:02, Jun Mukai wrote: > On 2014/04/23 22:54:15, oshima wrote: > > On 2014/04/23 22:23:04, Jun Mukai wrote: > > > On 2014/04/23 05:55:44, oshima wrote: > > > > You may also want to update when the size is changed, which may cause the > > > > re-layout? > > > > > > I don't think so, each view can update the boundary upon its re-layout. For > > > example, views::Textfield does this at OnBoundsChanged() > > > > Are you sure it gets called when only parent bounds has changed? > > Sorry, I got unsure about your point. > The widget size change causes RootView::SetSize (see above), and it causes root > view's bounds change (and Layout). Whether this causes > Textfield::OnBoundsChanged or not depends on how the views are structured. > However, if the widget's size change causes the change of the bounds of > textfield (or whatever) in the widget, OnBoundsChanged() has to be called. chatted offline and I was wrong. There could be a case that resize just moves a container parent which contains a textfield. In that case, the container's bounds will be changed but this keeps textfield in it. Added.
lgtm
ben, could you take a look?
lgtm
The CQ bit was checked by mukai@chromium.org
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mukai@chromium.org/246073009/20001
The CQ bit was unchecked by commit-bot@chromium.org
Try jobs failed on following builders: tryserver.chromium on win_chromium_rel
The CQ bit was checked by mukai@chromium.org
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mukai@chromium.org/246073009/20001
The CQ bit was unchecked by commit-bot@chromium.org
Try jobs failed on following builders: tryserver.chromium on linux_chromium_rel
The CQ bit was checked by mukai@chromium.org
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mukai@chromium.org/246073009/20001
The CQ bit was unchecked by commit-bot@chromium.org
Try jobs failed on following builders: tryserver.chromium on linux_chromium_chromeos_rel
The CQ bit was checked by mukai@chromium.org
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mukai@chromium.org/246073009/20001
The CQ bit was unchecked by commit-bot@chromium.org
Try jobs failed on following builders: tryserver.chromium on linux_chromium_chromeos_rel tryserver.chromium on linux_chromium_rel
The CQ bit was checked by mukai@chromium.org
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mukai@chromium.org/246073009/40001
The CQ bit was unchecked by commit-bot@chromium.org
Try jobs failed on following builders: tryserver.chromium on win_chromium_rel
The CQ bit was checked by mukai@chromium.org
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mukai@chromium.org/246073009/40001
Message was sent while issue was closed.
Change committed as 266397 |