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

Issue 1864113002: Fixes problems with drawn state (Closed)

Created:
4 years, 8 months ago by sky
Modified:
4 years, 8 months ago
CC:
chromium-reviews, rjkroege, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org, abarth-chromium, Aaron Boodman, darin (slow to review), ben+mojo_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fixes problems with drawn state There were two problems with how the drawn state was previously communicated: . the drawn state included the visibility of the window. This meant that if a window was hidden it's drawn state was also false, so that when the visibility was made true the client didn't know that it should make the drawn state true as well. . the drawn state was communicated for all windows, when really all that matters is the drawn state of the root windows. To fix this I changed the following: . the drawn state is communicated via OnEmbed or OnTopLevelCreated(). . the drawn state is the drawn state of the windows parent, not the window. This way it doesn't included the visibility of the window. This fixes the problem I mentioned above so that when a client changes the visibility it doesn't impact the drawn state. . NewTopLevelWindow() sets drawn to true (which is generally what the wm will do). This way focus requests won't silently fail in the client. BUG=600868 TEST=covered by tests R=ben@chromium.org Committed: https://crrev.com/e61c75b5abf6e7234b26f10bb0d493bb32fea073 Cr-Commit-Position: refs/heads/master@{#385641}

Patch Set 1 #

Patch Set 2 : drawn to parent_drawn #

Patch Set 3 : better comments #

Total comments: 2

Patch Set 4 : parentdrawn and merge #

Unified diffs Side-by-side diffs Delta from patch set Stats (+248 lines, -135 lines) Patch
M components/mus/public/cpp/lib/window.cc View 1 3 chunks +8 lines, -8 lines 0 comments Download
M components/mus/public/cpp/lib/window_private.h View 1 2 chunks +3 lines, -3 lines 0 comments Download
M components/mus/public/cpp/lib/window_tree_client_impl.h View 1 2 3 3 chunks +7 lines, -4 lines 0 comments Download
M components/mus/public/cpp/lib/window_tree_client_impl.cc View 1 2 3 9 chunks +19 lines, -9 lines 0 comments Download
M components/mus/public/cpp/tests/window_tree_client_impl_unittest.cc View 1 6 chunks +13 lines, -9 lines 0 comments Download
M components/mus/public/cpp/tests/window_unittest.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M components/mus/public/cpp/window.h View 1 2 3 2 chunks +4 lines, -5 lines 0 comments Download
M components/mus/public/interfaces/window_tree.mojom View 1 2 3 4 chunks +18 lines, -17 lines 0 comments Download
M components/mus/ws/test_change_tracker.h View 1 5 chunks +8 lines, -4 lines 0 comments Download
M components/mus/ws/test_change_tracker.cc View 1 7 chunks +41 lines, -19 lines 0 comments Download
M components/mus/ws/test_utils.h View 1 2 chunks +5 lines, -3 lines 0 comments Download
M components/mus/ws/test_utils.cc View 1 3 chunks +9 lines, -7 lines 0 comments Download
M components/mus/ws/window_tree.cc View 1 2 3 5 chunks +10 lines, -7 lines 0 comments Download
M components/mus/ws/window_tree_client_unittest.cc View 1 9 chunks +92 lines, -31 lines 0 comments Download
M components/mus/ws/window_tree_unittest.cc View 2 chunks +10 lines, -8 lines 0 comments Download

Messages

Total messages: 9 (3 generated)
sky
4 years, 8 months ago (2016-04-06 15:48:58 UTC) #1
Ben Goodger (Google)
lgtm with nit: https://codereview.chromium.org/1864113002/diff/40001/components/mus/public/interfaces/window_tree.mojom File components/mus/public/interfaces/window_tree.mojom (right): https://codereview.chromium.org/1864113002/diff/40001/components/mus/public/interfaces/window_tree.mojom#newcode271 components/mus/public/interfaces/window_tree.mojom:271: // OnDrawnStateChanged() for details. OnWindowParentDrawnStateChanged()
4 years, 8 months ago (2016-04-06 15:57:05 UTC) #2
sky
https://codereview.chromium.org/1864113002/diff/40001/components/mus/public/interfaces/window_tree.mojom File components/mus/public/interfaces/window_tree.mojom (right): https://codereview.chromium.org/1864113002/diff/40001/components/mus/public/interfaces/window_tree.mojom#newcode271 components/mus/public/interfaces/window_tree.mojom:271: // OnDrawnStateChanged() for details. On 2016/04/06 15:57:04, Ben Goodger ...
4 years, 8 months ago (2016-04-07 02:33:58 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1864113002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1864113002/60001
4 years, 8 months ago (2016-04-07 02:34:23 UTC) #6
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 8 months ago (2016-04-07 03:14:22 UTC) #7
commit-bot: I haz the power
4 years, 8 months ago (2016-04-07 03:20:04 UTC) #9
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/e61c75b5abf6e7234b26f10bb0d493bb32fea073
Cr-Commit-Position: refs/heads/master@{#385641}

Powered by Google App Engine
This is Rietveld 408576698