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

Issue 2490273002: Couple of fixes for DesktopWindowTreeHostMus. (Closed)

Created:
4 years, 1 month ago by sky
Modified:
4 years, 1 month ago
Reviewers:
msw
CC:
chromium-reviews, tfarina, groby+bubble_chromium.org, rouslan+bubble_chromium.org, msw+watch_chromium.org, hcarmona+bubble_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Couple of fixes for DesktopWindowTreeHostMus. . Init() needs to set the bounds if bounds was passed in the InitParams. . ShowWindowWithState() needs to call to SetInitialFocus(), matches that of other DesktopWindowTreeHost impls. . Implements CenterWindow() to do the right thing (logic matches that of other DesktopWindowTreeHosts). . And HasCapture() for mus should always return true. This is because DesktopNativeWidgetAura has the real checks and only calls to DesktopWindowTreeHostMus if everything mus cares about is true. So, it can always return true. BUG=660994 TEST=covered by tests R=msw@chromium.org Committed: https://crrev.com/f3e7874130cb59bc124f7fad55a81ac5967e57e7 Cr-Commit-Position: refs/heads/master@{#431355}

Patch Set 1 #

Patch Set 2 : cleanup #

Total comments: 4

Patch Set 3 : feedback #

Unified diffs Side-by-side diffs Delta from patch set Stats (+46 lines, -7 lines) Patch
M ui/views/bubble/bubble_frame_view.h View 1 chunk +1 line, -1 line 0 comments Download
M ui/views/bubble/bubble_frame_view.cc View 1 chunk +1 line, -1 line 0 comments Download
M ui/views/mus/desktop_window_tree_host_mus.cc View 1 2 4 chunks +42 lines, -5 lines 0 comments Download
M ui/views/widget/desktop_aura/desktop_native_widget_aura.h View 1 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 14 (8 generated)
sky
4 years, 1 month ago (2016-11-10 17:54:11 UTC) #1
msw
lgtm with minor comment/questions https://codereview.chromium.org/2490273002/diff/20001/ui/views/mus/desktop_window_tree_host_mus.cc File ui/views/mus/desktop_window_tree_host_mus.cc (right): https://codereview.chromium.org/2490273002/diff/20001/ui/views/mus/desktop_window_tree_host_mus.cc#newcode118 ui/views/mus/desktop_window_tree_host_mus.cc:118: native_widget_delegate_->AsWidget()->SetInitialFocus(state); q: Should this check ...
4 years, 1 month ago (2016-11-10 18:27:46 UTC) #4
sky
https://codereview.chromium.org/2490273002/diff/20001/ui/views/mus/desktop_window_tree_host_mus.cc File ui/views/mus/desktop_window_tree_host_mus.cc (right): https://codereview.chromium.org/2490273002/diff/20001/ui/views/mus/desktop_window_tree_host_mus.cc#newcode118 ui/views/mus/desktop_window_tree_host_mus.cc:118: native_widget_delegate_->AsWidget()->SetInitialFocus(state); On 2016/11/10 18:27:45, msw wrote: > q: Should ...
4 years, 1 month ago (2016-11-10 20:18:11 UTC) #8
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/2490273002/40001
4 years, 1 month ago (2016-11-10 20:18:25 UTC) #11
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 1 month ago (2016-11-10 21:17:50 UTC) #12
commit-bot: I haz the power
4 years, 1 month ago (2016-11-10 21:23:43 UTC) #14
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/f3e7874130cb59bc124f7fad55a81ac5967e57e7
Cr-Commit-Position: refs/heads/master@{#431355}

Powered by Google App Engine
This is Rietveld 408576698