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

Issue 8414012: Aura build fix: Make TooltipManagerViews an observer of parent Widget and (Closed)

Created:
9 years, 1 month ago by varunjain
Modified:
9 years, 1 month ago
CC:
chromium-reviews, tfarina, dhollowa, oshima, sadrul, Emmanuel Saint-loubert-BiƩ
Visibility:
Public.

Description

Aura build fix: Make TooltipManagerViews an observer of parent Widget and stop updating tooltips after the widget is destroyed. BUG=none TEST=views_unittests pass TBR=ben@chromium.org Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=107695

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+19 lines, -2 lines) Patch
M views/widget/tooltip_manager_views.h View 3 chunks +8 lines, -1 line 0 comments Download
M views/widget/tooltip_manager_views.cc View 4 chunks +11 lines, -1 line 0 comments Download

Messages

Total messages: 10 (0 generated)
varunjain
9 years, 1 month ago (2011-10-28 02:07:02 UTC) #1
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/varunjain@chromium.org/8414012/1
9 years, 1 month ago (2011-10-28 06:58:22 UTC) #2
commit-bot: I haz the power
Change committed as 107695
9 years, 1 month ago (2011-10-28 07:59:48 UTC) #3
sky
I don't understand this change. Widget owns the TooltipManager. So, how come TooltipManagerViews needs to ...
9 years, 1 month ago (2011-10-28 16:21:04 UTC) #4
varunjain
On 2011/10/28 16:21:04, sky wrote: > I don't understand this change. Widget owns the TooltipManager. ...
9 years, 1 month ago (2011-10-28 16:46:32 UTC) #5
oshima
On Fri, Oct 28, 2011 at 9:46 AM, <varunjain@chromium.org> wrote: > On 2011/10/28 16:21:04, sky ...
9 years, 1 month ago (2011-10-28 16:55:41 UTC) #6
varunjain
On 2011/10/28 16:55:41, oshima wrote: > On Fri, Oct 28, 2011 at 9:46 AM, <mailto:varunjain@chromium.org> ...
9 years, 1 month ago (2011-10-28 16:57:38 UTC) #7
sky
I agree with Oshima. It's cleaner to destroy the TooltipManager when we know it shouldn't ...
9 years, 1 month ago (2011-10-28 17:50:10 UTC) #8
oshima
On Fri, Oct 28, 2011 at 9:57 AM, <varunjain@chromium.org> wrote: > On 2011/10/28 16:55:41, oshima ...
9 years, 1 month ago (2011-10-28 17:51:46 UTC) #9
varunjain
9 years, 1 month ago (2011-10-28 18:01:51 UTC) #10
On 2011/10/28 17:50:10, sky wrote:
> I agree with Oshima. It's cleaner to destroy the TooltipManager when
> we know it shouldn't be used anymore.

ok.. I have created another CL (also includes revert of this one) in
http://codereview.chromium.org/8418028/

> 
>   -Scott
> 
> On Fri, Oct 28, 2011 at 9:57 AM,  <mailto:varunjain@chromium.org> wrote:
> > On 2011/10/28 16:55:41, oshima wrote:
> >>
> >> On Fri, Oct 28, 2011 at 9:46 AM, <mailto:varunjain@chromium.org> wrote:
> >
> >> > On 2011/10/28 16:21:04, sky wrote:
> >> >
> >> >> I don't understand this change. Widget owns the TooltipManager. So, how
> >> >> come
> >> >> TooltipManagerViews needs to listen for when the widget is closing?
> >> >>
> >> >
> >> > In the case when WIDGET_OWNS_NATIVE_WIDGET, NativeWidgetAura lives even
> >> > when the
> >> > associated aura::Window is destroyed. OnWidgetClosing is a misleading
> >> > name
> >> > as it
> >> > is called when the native widget is closing, not the widget itself
> >> >
> >> >
> >> Since tooltip manager needs a window, can you delete tooltip manager in
> >> OnWindowDestroyed instead?
> >
> > This change effectively stops the tooltip manager. I think deleting the
> > actual
> > object should happen when the native_widget_aura is deleted as it owns the
> > tooltip manager object.
> >
> >
> >> - oshima
> >
> >
> >> >
> >
> >
>
http://codereview.chromium.**org/8414012/%253Chttp://codereview.chromium.org/...>
> >>
> >> >
> >
> >
> >
> > http://codereview.chromium.org/8414012/
> >

Powered by Google App Engine
This is Rietveld 408576698