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

Issue 434343004: Call OnNativeWindowChanged after maximizing and restoring. (Closed)

Created:
6 years, 4 months ago by jackhou1
Modified:
6 years, 4 months ago
Reviewers:
benwells, sky
CC:
chromium-reviews, tfarina, chromium-apps-reviews_chromium.org, chrome-apps-syd-reviews_chromium.org
Project:
chromium
Visibility:
Public.

Description

Call OnNativeWindowChanged after maximizing and restoring. OnNativeWindowChanged is normally called when a window's bounds change. However, if an app maximizes via the AppWindow API, but its bounds are the same as that of a maximized window, OnNativeWindowChanged does not end up being called. This CL ensures that OnNativeWindowChanged is called whenever the app maximizes or restores. BUG=395900 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=289246

Patch Set 1 #

Patch Set 2 : Add aura::WindowDelegate::OnPropertyChanged and NativeWidgetDelegate::OnNativeWidgetWindowShowState… #

Patch Set 3 : Implement in all subclasses. #

Total comments: 6

Patch Set 4 : Make NativeWidgetAura a WindowObserver. #

Patch Set 5 : Sync and rebase #

Total comments: 6

Patch Set 6 : Address comments. #

Total comments: 6

Patch Set 7 : Address comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+44 lines, -5 lines) Patch
M ui/views/widget/native_widget_aura.h View 1 2 3 3 chunks +7 lines, -0 lines 0 comments Download
M ui/views/widget/native_widget_aura.cc View 1 2 3 4 5 3 chunks +14 lines, -0 lines 0 comments Download
M ui/views/widget/native_widget_delegate.h View 1 2 3 4 5 6 1 chunk +7 lines, -0 lines 0 comments Download
M ui/views/widget/widget.h View 1 2 3 4 5 6 2 chunks +6 lines, -0 lines 0 comments Download
M ui/views/widget/widget.cc View 1 2 3 4 5 6 2 chunks +10 lines, -5 lines 0 comments Download

Messages

Total messages: 14 (0 generated)
jackhou1
6 years, 4 months ago (2014-08-04 06:38:47 UTC) #1
benwells
Is this bug because we only get notified when the bounds change but not when ...
6 years, 4 months ago (2014-08-04 06:55:31 UTC) #2
jackhou1
On 2014/08/04 06:55:31, benwells wrote: > Is this bug because we only get notified when ...
6 years, 4 months ago (2014-08-05 04:29:30 UTC) #3
benwells
On 2014/08/05 04:29:30, jackhou1 wrote: > On 2014/08/04 06:55:31, benwells wrote: > > Is this ...
6 years, 4 months ago (2014-08-05 23:24:55 UTC) #4
jackhou1
sky, could you please review this for OWNERS?
6 years, 4 months ago (2014-08-06 01:05:18 UTC) #5
sky
https://codereview.chromium.org/434343004/diff/40001/ui/aura/window.cc File ui/aura/window.cc (right): https://codereview.chromium.org/434343004/diff/40001/ui/aura/window.cc#newcode862 ui/aura/window.cc:862: delegate_->OnPropertyChanged(key, old); Make NativeWidgetAura a WindowObserver so that you ...
6 years, 4 months ago (2014-08-06 17:23:01 UTC) #6
jackhou1
https://codereview.chromium.org/434343004/diff/40001/ui/aura/window.cc File ui/aura/window.cc (right): https://codereview.chromium.org/434343004/diff/40001/ui/aura/window.cc#newcode862 ui/aura/window.cc:862: delegate_->OnPropertyChanged(key, old); On 2014/08/06 17:23:00, sky wrote: > Make ...
6 years, 4 months ago (2014-08-11 05:41:06 UTC) #7
sky
https://codereview.chromium.org/434343004/diff/80001/ui/views/widget/native_widget_aura.cc File ui/views/widget/native_widget_aura.cc (right): https://codereview.chromium.org/434343004/diff/80001/ui/views/widget/native_widget_aura.cc#newcode85 ui/views/widget/native_widget_aura.cc:85: window_->AddObserver(this); nit: move to init. https://codereview.chromium.org/434343004/diff/80001/ui/views/widget/native_widget_delegate.h File ui/views/widget/native_widget_delegate.h (right): ...
6 years, 4 months ago (2014-08-11 16:09:19 UTC) #8
jackhou1
https://codereview.chromium.org/434343004/diff/80001/ui/views/widget/native_widget_aura.cc File ui/views/widget/native_widget_aura.cc (right): https://codereview.chromium.org/434343004/diff/80001/ui/views/widget/native_widget_aura.cc#newcode85 ui/views/widget/native_widget_aura.cc:85: window_->AddObserver(this); On 2014/08/11 16:09:19, sky wrote: > nit: move ...
6 years, 4 months ago (2014-08-12 05:23:44 UTC) #9
sky
LGTM https://codereview.chromium.org/434343004/diff/100001/ui/views/widget/native_widget_delegate.h File ui/views/widget/native_widget_delegate.h (right): https://codereview.chromium.org/434343004/diff/100001/ui/views/widget/native_widget_delegate.h#newcode96 ui/views/widget/native_widget_delegate.h:96: // Called when the NativeWidget changed its window ...
6 years, 4 months ago (2014-08-12 13:21:28 UTC) #10
jackhou1
https://codereview.chromium.org/434343004/diff/100001/ui/views/widget/native_widget_delegate.h File ui/views/widget/native_widget_delegate.h (right): https://codereview.chromium.org/434343004/diff/100001/ui/views/widget/native_widget_delegate.h#newcode96 ui/views/widget/native_widget_delegate.h:96: // Called when the NativeWidget changed its window state. ...
6 years, 4 months ago (2014-08-13 01:57:51 UTC) #11
jackhou1
The CQ bit was checked by jackhou@chromium.org
6 years, 4 months ago (2014-08-13 01:57:56 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jackhou@chromium.org/434343004/120001
6 years, 4 months ago (2014-08-13 02:02:48 UTC) #13
commit-bot: I haz the power
6 years, 4 months ago (2014-08-13 10:05:55 UTC) #14
Message was sent while issue was closed.
Change committed as 289246

Powered by Google App Engine
This is Rietveld 408576698