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

Issue 8400063: Move maximize/fullscreen/restore to shell (Closed)

Created:
9 years, 1 month ago by oshima
Modified:
9 years, 1 month ago
Reviewers:
sky
CC:
chromium-reviews, Paweł Hajdan Jr.
Visibility:
Public.

Description

Move maximize/fullscreen/restore to shell With this CL, window is now correctly maximized/fullscreen'ed on aura desktop. * Added OnPropertyChanged to WindowObserver * Added Get/Set IntProperty to simplify handling int value properties. * Remove IsOrContainsFullscreen. Added Workspace::ContainsFullscreen instead. We need this to autohide launcher. BUG=97257, 97259 TEST=new test for property change notification. existing tests are updated, except maximized/fullscreen drag test. I'll add it to new set of tests that verifies window dragging within workspace. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=108192

Patch Set 1 #

Patch Set 2 : " #

Patch Set 3 : test #

Patch Set 4 : with debug messages for vollick #

Patch Set 5 : ready for review #

Total comments: 19

Patch Set 6 : " #

Patch Set 7 : addressed comments, property_util #

Total comments: 4

Patch Set 8 : updated comments #

Patch Set 9 : sync #

Patch Set 10 : updated comment #

Patch Set 11 : sync #

Patch Set 12 : remove OVERRIDE from .cc #

Unified diffs Side-by-side diffs Delta from patch set Stats (+638 lines, -350 lines) Patch
M chrome/browser/fullscreen_aura.cc View 1 1 chunk +4 lines, -1 line 0 comments Download
M content/browser/renderer_host/render_widget_host_view_aura.cc View 1 2 3 4 5 6 7 2 chunks +2 lines, -1 line 0 comments Download
M ui/aura/aura_constants.h View 1 2 3 4 5 1 chunk +11 lines, -0 lines 0 comments Download
M ui/aura/aura_constants.cc View 1 2 3 4 5 1 chunk +4 lines, -0 lines 0 comments Download
M ui/aura/layout_manager.h View 1 2 3 4 5 1 chunk +7 lines, -4 lines 0 comments Download
M ui/aura/layout_manager.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M ui/aura/toplevel_window_event_filter.cc View 1 2 3 4 3 chunks +5 lines, -8 lines 0 comments Download
M ui/aura/toplevel_window_event_filter_unittest.cc View 1 2 3 4 1 chunk +0 lines, -26 lines 0 comments Download
M ui/aura/window.h View 1 2 3 4 5 6 7 8 5 chunks +7 lines, -24 lines 0 comments Download
M ui/aura/window.cc View 1 2 3 4 5 6 7 8 6 chunks +15 lines, -58 lines 0 comments Download
M ui/aura/window_observer.h View 1 2 3 4 1 chunk +4 lines, -0 lines 0 comments Download
M ui/aura/window_unittest.cc View 1 2 3 4 5 6 7 8 9 10 7 chunks +51 lines, -158 lines 0 comments Download
M ui/aura_shell/aura_shell.gyp View 1 2 3 4 5 1 chunk +4 lines, -0 lines 0 comments Download
M ui/aura_shell/default_container_layout_manager.h View 1 6 chunks +14 lines, -4 lines 0 comments Download
M ui/aura_shell/default_container_layout_manager.cc View 1 2 3 4 5 6 7 8 5 chunks +54 lines, -17 lines 0 comments Download
M ui/aura_shell/default_container_layout_manager_unittest.cc View 1 2 3 4 5 6 7 8 4 chunks +190 lines, -1 line 0 comments Download
M ui/aura_shell/desktop_layout_manager.h View 1 chunk +2 lines, -2 lines 0 comments Download
M ui/aura_shell/desktop_layout_manager.cc View 1 chunk +3 lines, -2 lines 0 comments Download
A ui/aura_shell/property_util.h View 1 2 3 4 5 6 7 8 9 1 chunk +33 lines, -0 lines 0 comments Download
A ui/aura_shell/property_util.cc View 1 2 3 4 5 1 chunk +29 lines, -0 lines 0 comments Download
A ui/aura_shell/show_state_controller.h View 1 2 3 4 5 1 chunk +44 lines, -0 lines 0 comments Download
A ui/aura_shell/show_state_controller.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +50 lines, -0 lines 0 comments Download
M ui/aura_shell/workspace/workspace.h View 1 2 3 4 1 chunk +3 lines, -0 lines 0 comments Download
M ui/aura_shell/workspace/workspace.cc View 1 2 3 4 5 6 chunks +47 lines, -22 lines 0 comments Download
M ui/aura_shell/workspace/workspace_manager_unittest.cc View 1 2 3 4 5 chunks +35 lines, -4 lines 0 comments Download
M views/widget/native_widget_aura.cc View 1 2 3 4 5 6 7 8 9 10 6 chunks +18 lines, -16 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
oshima
Scott, this is not ready for review yet, but want to check with you regarding ...
9 years, 1 month ago (2011-10-29 01:36:51 UTC) #1
sky
This approaches is fine by me.
9 years, 1 month ago (2011-10-31 14:09:46 UTC) #2
oshima
Ready for review. PTL. http://codereview.chromium.org/8400063/diff/9044/ui/aura/window_observer.h File ui/aura/window_observer.h (right): http://codereview.chromium.org/8400063/diff/9044/ui/aura/window_observer.h#newcode25 ui/aura/window_observer.h:25: virtual void OnPropertyChanged(Window* window, const ...
9 years, 1 month ago (2011-10-31 22:10:21 UTC) #3
sky
http://codereview.chromium.org/8400063/diff/9044/ui/aura/aura_constants.h File ui/aura/aura_constants.h (right): http://codereview.chromium.org/8400063/diff/9044/ui/aura/aura_constants.h#newcode15 ui/aura/aura_constants.h:15: AURA_EXPORT extern const char* kShowStateKey; nit: sort these, and ...
9 years, 1 month ago (2011-10-31 23:17:34 UTC) #4
oshima
Uploaded new patch. Added property_utuil.h|cc to add utility functions to set/get/clear restore bounds property. http://codereview.chromium.org/8400063/diff/9044/ui/aura/aura_constants.h ...
9 years, 1 month ago (2011-11-01 00:40:33 UTC) #5
oshima
http://codereview.chromium.org/8400063/diff/9044/ui/aura_shell/default_container_layout_manager.cc File ui/aura_shell/default_container_layout_manager.cc (right): http://codereview.chromium.org/8400063/diff/9044/ui/aura_shell/default_container_layout_manager.cc#newcode170 ui/aura_shell/default_container_layout_manager.cc:170: views::Widget::InitParams::TYPE_WINDOW || On 2011/11/01 00:40:33, oshima wrote: > On ...
9 years, 1 month ago (2011-11-01 00:52:30 UTC) #6
sky
On Mon, Oct 31, 2011 at 5:40 PM, <oshima@chromium.org> wrote: > Uploaded new patch. Added ...
9 years, 1 month ago (2011-11-01 03:46:40 UTC) #7
sky
http://codereview.chromium.org/8400063/diff/9052/ui/aura_shell/property_util.h File ui/aura_shell/property_util.h (right): http://codereview.chromium.org/8400063/diff/9052/ui/aura_shell/property_util.h#newcode19 ui/aura_shell/property_util.h:19: // Sets the restore bounds property on |window|. It ...
9 years, 1 month ago (2011-11-01 03:48:25 UTC) #8
oshima
http://codereview.chromium.org/8400063/diff/9052/ui/aura_shell/property_util.h File ui/aura_shell/property_util.h (right): http://codereview.chromium.org/8400063/diff/9052/ui/aura_shell/property_util.h#newcode19 ui/aura_shell/property_util.h:19: // Sets the restore bounds property on |window|. It ...
9 years, 1 month ago (2011-11-01 15:44:53 UTC) #9
sky
On 2011/11/01 15:44:53, oshima wrote: > http://codereview.chromium.org/8400063/diff/9052/ui/aura_shell/property_util.h > File ui/aura_shell/property_util.h (right): > > http://codereview.chromium.org/8400063/diff/9052/ui/aura_shell/property_util.h#newcode19 > ...
9 years, 1 month ago (2011-11-01 21:31:55 UTC) #10
oshima
9 years, 1 month ago (2011-11-01 21:57:39 UTC) #11
On 2011/11/01 21:31:55, sky wrote:
> On 2011/11/01 15:44:53, oshima wrote:
> >
http://codereview.chromium.org/8400063/diff/9052/ui/aura_shell/property_util.h
> > File ui/aura_shell/property_util.h (right):
> > 
> >
>
http://codereview.chromium.org/8400063/diff/9052/ui/aura_shell/property_util....
> > ui/aura_shell/property_util.h:19: // Sets the restore bounds property on
> > |window|. It deletes
> > On 2011/11/01 03:48:25, sky wrote:
> > > 'It deletes' -> Deletes
> > 
> > Done.
> > 
> >
>
http://codereview.chromium.org/8400063/diff/9052/ui/aura_shell/property_util....
> > ui/aura_shell/property_util.h:23: // Returns the restore bounds property on
> > |window|.
> > On 2011/11/01 03:48:25, sky wrote:
> > > Returning a pointer makes ownership a bit dicey. Could this return a
> gfx::Rect
> > > by value instead?
> > It's pointer because the caller needs to know if the property exists.
> > It's possible to use gfx::Rect(), but I don't think that's good idea either.
> > 
> > I added comments to make it more clear. Let me know what you think.
> 
> LGTM just document that it may be NULL.
done

Powered by Google App Engine
This is Rietveld 408576698