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

Issue 383123006: Preliminary interactive layout of window manager's demo_launcher (Closed)

Created:
6 years, 5 months ago by hansmuller
Modified:
6 years, 5 months ago
CC:
chromium-reviews, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org, abarth-chromium, Aaron Boodman, darin (slow to review), ben+mojo_chromium.org
Project:
chromium
Visibility:
Public.

Description

Preliminary interactive layout of window manager's demo_launcher. The window manager now handles root node resize by resizing its (two) toplevel nodes to match the initial layout. This is just an intermediate step towards generalizing window manager layout a little. BUGi=393244 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=283379

Patch Set 1 #

Total comments: 5

Patch Set 2 : Revised per review feedback. Keyboard resize still needed. #

Patch Set 3 : Reverted debug_panel changes #

Patch Set 4 : Resize KeyboardManager, sync #

Total comments: 24

Patch Set 5 : Changes per review feedback, notably NodeObserver cleanup #

Patch Set 6 : Make media viewer's root node a member #

Patch Set 7 : make NativeWidgetViewManager observer cleanup consistent with other classes #

Total comments: 5

Patch Set 8 : Changes per review feedback #

Patch Set 9 : Remove observer when node is destroyed, not destroying #

Patch Set 10 : Improved observer hygiene #

Patch Set 11 : OK #

Total comments: 4

Patch Set 12 : Make NativeWidgetManager clean up its view observer #

Total comments: 1

Patch Set 13 : Destructive bookkeeping finale #

Total comments: 2

Patch Set 14 : Looks Good #

Unified diffs Side-by-side diffs Delta from patch set Stats (+218 lines, -45 lines) Patch
M mojo/examples/browser/browser.cc View 1 2 3 4 5 6 7 8 9 2 chunks +3 lines, -0 lines 0 comments Download
M mojo/examples/html_viewer/html_document_view.h View 1 2 3 4 5 6 7 8 3 chunks +10 lines, -1 line 0 comments Download
M mojo/examples/html_viewer/html_document_view.cc View 1 2 3 4 5 6 7 8 3 chunks +20 lines, -3 lines 0 comments Download
M mojo/examples/media_viewer/media_viewer.cc View 1 2 3 4 5 6 7 8 9 10 6 chunks +39 lines, -12 lines 0 comments Download
M mojo/examples/png_viewer/png_viewer.cc View 1 2 3 4 5 6 7 8 9 4 chunks +28 lines, -4 lines 0 comments Download
M mojo/examples/window_manager/window_manager.cc View 1 2 3 4 5 6 7 8 9 10 11 10 chunks +87 lines, -19 lines 0 comments Download
M mojo/views/native_widget_view_manager.h View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +5 lines, -0 lines 0 comments Download
M mojo/views/native_widget_view_manager.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 5 chunks +26 lines, -6 lines 0 comments Download

Messages

Total messages: 21 (0 generated)
hansmuller
One small step towards improving the way the window manager lays out its top level ...
6 years, 5 months ago (2014-07-11 17:18:10 UTC) #1
Ben Goodger (Google)
https://codereview.chromium.org/383123006/diff/1/mojo/examples/window_manager/window_manager.cc File mojo/examples/window_manager/window_manager.cc (right): https://codereview.chromium.org/383123006/diff/1/mojo/examples/window_manager/window_manager.cc#newcode199 mojo/examples/window_manager/window_manager.cc:199: } Looks like you're missing the embedded node(s) (e.g. ...
6 years, 5 months ago (2014-07-11 18:18:23 UTC) #2
Ben Goodger (Google)
6 years, 5 months ago (2014-07-11 18:18:25 UTC) #3
sky
https://codereview.chromium.org/383123006/diff/1/mojo/examples/browser/browser.cc File mojo/examples/browser/browser.cc (right): https://codereview.chromium.org/383123006/diff/1/mojo/examples/browser/browser.cc#newcode237 mojo/examples/browser/browser.cc:237: const gfx::Rect& /*old_bounds*/, We generally don't use this style ...
6 years, 5 months ago (2014-07-11 18:19:47 UTC) #4
sky
I nuked sky1 from the review list. No idea who that is.
6 years, 5 months ago (2014-07-11 18:20:07 UTC) #5
hansmuller
This version lays out content nodes and the keyboard manager.
6 years, 5 months ago (2014-07-14 17:35:37 UTC) #6
sky
https://codereview.chromium.org/383123006/diff/60001/mojo/examples/html_viewer/html_document_view.cc File mojo/examples/html_viewer/html_document_view.cc (right): https://codereview.chromium.org/383123006/diff/60001/mojo/examples/html_viewer/html_document_view.cc#newcode106 mojo/examples/html_viewer/html_document_view.cc:106: node->AddObserver(this); You need to remove this observer too. https://codereview.chromium.org/383123006/diff/60001/mojo/examples/html_viewer/html_document_view.cc#newcode192 ...
6 years, 5 months ago (2014-07-14 19:15:28 UTC) #7
hansmuller
I've made the suggested fixes, including removing observers when the observed node is being destroyed, ...
6 years, 5 months ago (2014-07-14 22:16:43 UTC) #8
sky
https://codereview.chromium.org/383123006/diff/120001/mojo/examples/html_viewer/html_document_view.cc File mojo/examples/html_viewer/html_document_view.cc (right): https://codereview.chromium.org/383123006/diff/120001/mojo/examples/html_viewer/html_document_view.cc#newcode191 mojo/examples/html_viewer/html_document_view.cc:191: // Overridden from NodeObserver: Style guide says not to ...
6 years, 5 months ago (2014-07-15 00:07:49 UTC) #9
hansmuller
Removed the comments that aren't style-guide compliant. https://codereview.chromium.org/383123006/diff/120001/mojo/examples/html_viewer/html_document_view.cc File mojo/examples/html_viewer/html_document_view.cc (right): https://codereview.chromium.org/383123006/diff/120001/mojo/examples/html_viewer/html_document_view.cc#newcode191 mojo/examples/html_viewer/html_document_view.cc:191: // Overridden ...
6 years, 5 months ago (2014-07-15 00:27:43 UTC) #10
sky
https://codereview.chromium.org/383123006/diff/120001/mojo/examples/html_viewer/html_document_view.cc File mojo/examples/html_viewer/html_document_view.cc (right): https://codereview.chromium.org/383123006/diff/120001/mojo/examples/html_viewer/html_document_view.cc#newcode202 mojo/examples/html_viewer/html_document_view.cc:202: node->RemoveObserver(this); On 2014/07/15 00:27:43, hansmuller wrote: > On 2014/07/15 ...
6 years, 5 months ago (2014-07-15 04:08:37 UTC) #11
hansmuller
I've moved all of the node observer removals from destroyING to destroyED. Each method now ...
6 years, 5 months ago (2014-07-15 15:04:08 UTC) #12
hansmuller
Fixed the last of the node observer leaks and made comments/formatting more style-guide compliant.
6 years, 5 months ago (2014-07-15 16:18:38 UTC) #13
sky
https://codereview.chromium.org/383123006/diff/200001/mojo/examples/window_manager/window_manager.cc File mojo/examples/window_manager/window_manager.cc (right): https://codereview.chromium.org/383123006/diff/200001/mojo/examples/window_manager/window_manager.cc#newcode100 mojo/examples/window_manager/window_manager.cc:100: if (node_) node_ is never set to NULL, so ...
6 years, 5 months ago (2014-07-15 17:47:49 UTC) #14
hansmuller
Updated the changes per review feedback. https://codereview.chromium.org/383123006/diff/200001/mojo/examples/window_manager/window_manager.cc File mojo/examples/window_manager/window_manager.cc (right): https://codereview.chromium.org/383123006/diff/200001/mojo/examples/window_manager/window_manager.cc#newcode100 mojo/examples/window_manager/window_manager.cc:100: if (node_) On ...
6 years, 5 months ago (2014-07-15 20:07:34 UTC) #15
sky
https://codereview.chromium.org/383123006/diff/220001/mojo/views/native_widget_view_manager.cc File mojo/views/native_widget_view_manager.cc (right): https://codereview.chromium.org/383123006/diff/220001/mojo/views/native_widget_view_manager.cc#newcode121 mojo/views/native_widget_view_manager.cc:121: } I think you're missing the case of the ...
6 years, 5 months ago (2014-07-15 20:46:48 UTC) #16
hansmuller
Handle the case where the NativeWidgetViewManager's node is destroyed and then its destructor runs.
6 years, 5 months ago (2014-07-15 21:08:44 UTC) #17
sky
LGTM with the following changes https://codereview.chromium.org/383123006/diff/240001/mojo/views/native_widget_view_manager.cc File mojo/views/native_widget_view_manager.cc (right): https://codereview.chromium.org/383123006/diff/240001/mojo/views/native_widget_view_manager.cc#newcode95 mojo/views/native_widget_view_manager.cc:95: view_ = node_->active_view(); move ...
6 years, 5 months ago (2014-07-15 21:45:38 UTC) #18
hansmuller
The CQ bit was checked by hansmuller@chromium.org
6 years, 5 months ago (2014-07-15 22:11:30 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hansmuller@chromium.org/383123006/260001
6 years, 5 months ago (2014-07-15 22:14:22 UTC) #20
commit-bot: I haz the power
6 years, 5 months ago (2014-07-16 07:10:19 UTC) #21
Message was sent while issue was closed.
Change committed as 283379

Powered by Google App Engine
This is Rietveld 408576698