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

Issue 2568303006: aura-mus: Implement Deactivate(). (Closed)

Created:
4 years ago by Elliot Glaysher
Modified:
3 years, 10 months ago
Reviewers:
sky, Will Harris
CC:
chromium-reviews, kalyank, sadrul, tfarina
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

aura-mus: Implement Deactivate() and fix Activation. This adds a Deactivate() call for a window to request deactivation in the window server, which passes that request on to the window manager. This also hooks up activation to focus changes caused by the window server. BUG=663618, 678070 Review-Url: https://codereview.chromium.org/2568303006 Cr-Commit-Position: refs/heads/master@{#443668} Committed: https://chromium.googlesource.com/chromium/src/+/02ba4e291b70651fe0813d70d24bea60fd64cfea

Patch Set 1 #

Total comments: 1

Patch Set 2 : Make mash/.../views_examples.cc use aura mus. #

Patch Set 3 : Actually, sky already changed views_examples. #

Patch Set 4 : First draft of going to the WM. #

Patch Set 5 : Rename + try to fix bots #

Patch Set 6 : fix linux_chromium_chromeos_rel_ng #

Patch Set 7 : More test interfaces I missed. #

Patch Set 8 : Merge with tot #

Patch Set 9 : Theoretical fix. What does it break on other platforms? #

Patch Set 10 : That broke everything but Mus. Trying another way. #

Patch Set 11 : Prune comments and other debugging gunk. #

Total comments: 10

Patch Set 12 : sky comments #

Patch Set 13 : Merge with tot #

Patch Set 14 : compile fix #

Patch Set 15 : Re-add DWTHMus as a WidgetObserver. #

Total comments: 2

Patch Set 16 : Add comment. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+237 lines, -7 lines) Patch
M ash/mus/window_manager.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +2 lines, -0 lines 0 comments Download
M ash/mus/window_manager.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +8 lines, -0 lines 0 comments Download
M mash/simple_wm/simple_wm.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +2 lines, -0 lines 0 comments Download
M mash/simple_wm/simple_wm.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +4 lines, -0 lines 0 comments Download
M services/ui/demo/mus_demo.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +2 lines, -0 lines 0 comments Download
M services/ui/demo/mus_demo.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +4 lines, -0 lines 0 comments Download
M services/ui/public/cpp/tests/test_window_tree.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -0 lines 0 comments Download
M services/ui/public/cpp/tests/test_window_tree.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +2 lines, -0 lines 0 comments Download
M services/ui/public/cpp/window_tree_client.h View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M services/ui/public/cpp/window_tree_client.cc View 1 2 3 4 5 6 7 1 chunk +2 lines, -0 lines 0 comments Download
M services/ui/public/interfaces/window_manager.mojom View 1 2 3 4 5 6 7 1 chunk +4 lines, -0 lines 0 comments Download
M services/ui/public/interfaces/window_tree.mojom View 1 2 3 4 5 6 7 1 chunk +4 lines, -0 lines 0 comments Download
M services/ui/test_wm/test_wm.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +7 lines, -0 lines 0 comments Download
M services/ui/ws/test_utils.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +1 line, -0 lines 0 comments Download
M services/ui/ws/test_utils.cc View 1 2 3 4 5 6 7 1 chunk +2 lines, -0 lines 0 comments Download
M services/ui/ws/window_manager_client_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +2 lines, -0 lines 0 comments Download
M services/ui/ws/window_server_test_base.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +2 lines, -0 lines 0 comments Download
M services/ui/ws/window_server_test_base.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +11 lines, -0 lines 0 comments Download
M services/ui/ws/window_tree.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -0 lines 0 comments Download
M services/ui/ws/window_tree.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +20 lines, -0 lines 0 comments Download
M services/ui/ws/window_tree_client_unittest.cc View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M ui/aura/mus/window_manager_delegate.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +7 lines, -0 lines 0 comments Download
M ui/aura/mus/window_tree_client.h View 1 2 3 4 5 6 7 2 chunks +3 lines, -0 lines 0 comments Download
M ui/aura/mus/window_tree_client.cc View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +24 lines, -0 lines 0 comments Download
M ui/aura/mus/window_tree_host_mus.h View 1 2 3 4 5 6 7 1 chunk +3 lines, -0 lines 0 comments Download
M ui/aura/mus/window_tree_host_mus.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +4 lines, -0 lines 0 comments Download
M ui/aura/mus/window_tree_host_mus_delegate.h View 1 2 3 4 1 chunk +4 lines, -0 lines 0 comments Download
M ui/aura/test/aura_test_base.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +2 lines, -0 lines 0 comments Download
M ui/aura/test/aura_test_base.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +4 lines, -0 lines 0 comments Download
M ui/aura/test/mus/test_window_tree.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -0 lines 0 comments Download
M ui/aura/test/mus/test_window_tree.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +2 lines, -0 lines 0 comments Download
M ui/views/mus/desktop_window_tree_host_mus.h View 1 2 3 4 5 6 7 8 9 12 13 14 4 chunks +6 lines, -0 lines 0 comments Download
M ui/views/mus/desktop_window_tree_host_mus.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 6 chunks +20 lines, -5 lines 0 comments Download
M ui/views/mus/desktop_window_tree_host_mus_unittest.cc View 1 2 3 4 5 6 7 8 9 10 3 chunks +61 lines, -2 lines 0 comments Download
M ui/views/widget/desktop_aura/desktop_native_widget_aura.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +4 lines, -0 lines 0 comments Download
M ui/views/widget/desktop_aura/desktop_window_tree_host.h View 1 2 3 4 5 6 7 8 9 1 chunk +3 lines, -0 lines 0 comments Download
M ui/views/widget/desktop_aura/desktop_window_tree_host_win.h View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download
M ui/views/widget/desktop_aura/desktop_window_tree_host_win.cc View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -0 lines 0 comments Download
M ui/views/widget/desktop_aura/desktop_window_tree_host_x11.h View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download
M ui/views/widget/desktop_aura/desktop_window_tree_host_x11.cc View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 79 (66 generated)
Elliot Glaysher
Question: what do I need to do to test this? I've sent this through the ...
4 years ago (2016-12-13 23:30:20 UTC) #4
sky
I'm surprised you didn't need an explicit function on ui::mojom::WindowTree for this. Widget::Deactivate() should end ...
4 years ago (2016-12-13 23:55:04 UTC) #7
Elliot Glaysher
On 2016/12/13 23:55:04, sky wrote: > I'm surprised you didn't need an explicit function on ...
4 years ago (2016-12-14 22:28:10 UTC) #12
Elliot Glaysher
OK, I think this is ready to go. The real problem in DesktopNativeWidgetAura wasn't that ...
3 years, 11 months ago (2017-01-11 23:49:25 UTC) #47
sky
https://codereview.chromium.org/2568303006/diff/200001/services/ui/public/cpp/tests/test_window_tree.h File services/ui/public/cpp/tests/test_window_tree.h (right): https://codereview.chromium.org/2568303006/diff/200001/services/ui/public/cpp/tests/test_window_tree.h#newcode105 services/ui/public/cpp/tests/test_window_tree.h:105: void DeactivateWindow(uint32_t current_window_id) override; For consistency use window_id (most ...
3 years, 11 months ago (2017-01-12 00:55:39 UTC) #50
Elliot Glaysher
https://codereview.chromium.org/2568303006/diff/200001/services/ui/public/cpp/tests/test_window_tree.h File services/ui/public/cpp/tests/test_window_tree.h (right): https://codereview.chromium.org/2568303006/diff/200001/services/ui/public/cpp/tests/test_window_tree.h#newcode105 services/ui/public/cpp/tests/test_window_tree.h:105: void DeactivateWindow(uint32_t current_window_id) override; On 2017/01/12 00:55:39, sky wrote: ...
3 years, 11 months ago (2017-01-12 23:20:37 UTC) #65
sky
LGTM https://codereview.chromium.org/2568303006/diff/280001/ui/views/mus/desktop_window_tree_host_mus.cc File ui/views/mus/desktop_window_tree_host_mus.cc (right): https://codereview.chromium.org/2568303006/diff/280001/ui/views/mus/desktop_window_tree_host_mus.cc#newcode682 ui/views/mus/desktop_window_tree_host_mus.cc:682: is_active_ = active; On 2017/01/12 23:20:37, Elliot Glaysher ...
3 years, 11 months ago (2017-01-13 00:01:19 UTC) #66
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2568303006/300001
3 years, 11 months ago (2017-01-13 18:55:39 UTC) #70
commit-bot: I haz the power
Committed patchset #16 (id:300001) as https://chromium.googlesource.com/chromium/src/+/02ba4e291b70651fe0813d70d24bea60fd64cfea
3 years, 11 months ago (2017-01-13 21:14:41 UTC) #73
Wez
Hallo wfh@chromium.org! Due to a depot_tools patch which mistakenly removed the OWNERS check for non-source ...
3 years, 10 months ago (2017-02-07 19:51:25 UTC) #75
Will Harris
hi - can you clarify what process calls this new DeactivateWindow IPC and from which ...
3 years, 10 months ago (2017-02-07 23:25:28 UTC) #77
Elliot Glaysher
On 2017/02/07 23:25:28, Will Harris wrote: > hi - can you clarify what process calls ...
3 years, 10 months ago (2017-02-07 23:31:37 UTC) #78
Will Harris
3 years, 10 months ago (2017-02-07 23:47:35 UTC) #79
On 2017/02/07 23:31:37, Elliot Glaysher wrote:
> On 2017/02/07 23:25:28, Will Harris wrote:
> > hi - can you clarify what process calls this new DeactivateWindow IPC and
from
> > which context, and does the call cross security boundaries (e.g. from
> untrusted
> > process to trusted process)?
> 
> DeactivateWindow is called from an untrusted client process and is implemented
> in the trusted window server.
> 
> The WmDeactivateWindow is a call from the window_server to the window manager,
> so trusted to trusted.

okay thanks, retroactive lgtm

Powered by Google App Engine
This is Rietveld 408576698