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

Issue 2285633002: Add WM_EVENT_TRUSTED_PIN and WINDOW_STATE_TYPE_TRUSTED_PINNED to Ash. (Closed)

Created:
4 years, 3 months ago by hirono
Modified:
4 years, 3 months ago
Reviewers:
hidehiko, reveman, oshima
CC:
chromium-reviews, kalyank, sadrul
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add WM_EVENT_TRUSTED_PIN and WINDOW_STATE_TYPE_TRUSTED_PINNED to Ash. The event and the state is similar to WM_EVENT_PIN and WINDOW_STATE_TYPE_PINNED respectively unless TRUSTED_PINNED cannot be exited by user operation. BUG=b/29325086 TEST=Test with local Android build that sends setPinWithTrusted message, ash_unittests Committed: https://crrev.com/94b6193abeb2e2057f17b32da9381767c6b3d9a8 Cr-Commit-Position: refs/heads/master@{#419685}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Added trusted argument. #

Total comments: 6

Patch Set 3 : Add comments. #

Total comments: 3

Patch Set 4 : Update error log. #

Patch Set 5 : Rebased. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+108 lines, -36 lines) Patch
M ash/accelerators/accelerator_commands_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M ash/accelerators/accelerator_controller_delegate_aura.cc View 1 2 3 4 1 chunk +4 lines, -1 line 0 comments Download
M ash/common/wm/default_state.cc View 1 2 3 6 chunks +15 lines, -5 lines 0 comments Download
M ash/common/wm/maximize_mode/maximize_mode_window_state.cc View 5 chunks +12 lines, -3 lines 0 comments Download
M ash/common/wm/window_state.cc View 2 chunks +3 lines, -3 lines 0 comments Download
M ash/common/wm/wm_event.h View 1 chunk +4 lines, -0 lines 0 comments Download
M ash/common/wm/wm_types.h View 1 chunk +1 line, -0 lines 0 comments Download
M ash/common/wm/wm_types.cc View 2 chunks +3 lines, -1 line 0 comments Download
M ash/metrics/user_metrics_recorder.cc View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M ash/shelf/shelf_layout_manager_unittest.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M ash/wm/lock_window_state.cc View 1 chunk +1 line, -0 lines 0 comments Download
M ash/wm/screen_pinning_controller_unittest.cc View 1 2 5 chunks +18 lines, -4 lines 0 comments Download
M ash/wm/window_util.h View 1 chunk +1 line, -1 line 0 comments Download
M ash/wm/window_util.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M ash/wm/workspace/workspace_layout_manager_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M components/exo/shell_surface.h View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M components/exo/shell_surface.cc View 1 2 3 2 chunks +4 lines, -3 lines 0 comments Download
M components/exo/shell_surface_unittest.cc View 1 chunk +12 lines, -2 lines 0 comments Download
M components/exo/wayland/server.cc View 1 2 3 4 8 chunks +22 lines, -6 lines 0 comments Download

Messages

Total messages: 29 (13 generated)
hirono
PTAL, hidehiko@ Overall design reveman@ components/exo/* oshima@ ash/* Thank you!
4 years, 3 months ago (2016-08-26 07:35:52 UTC) #5
reveman
components/exo lgtm https://codereview.chromium.org/2285633002/diff/1/components/exo/shell_surface.cc File components/exo/shell_surface.cc (right): https://codereview.chromium.org/2285633002/diff/1/components/exo/shell_surface.cc#newcode408 components/exo/shell_surface.cc:408: TRACE_EVENT1("exo", "ShellSurface::SetPinned", "pinned", pinned); nit: add trusted ...
4 years, 3 months ago (2016-08-26 12:44:29 UTC) #8
hirono
Thank you! https://codereview.chromium.org/2285633002/diff/1/components/exo/shell_surface.cc File components/exo/shell_surface.cc (right): https://codereview.chromium.org/2285633002/diff/1/components/exo/shell_surface.cc#newcode408 components/exo/shell_surface.cc:408: TRACE_EVENT1("exo", "ShellSurface::SetPinned", "pinned", pinned); On 2016/08/26 12:44:29, ...
4 years, 3 months ago (2016-08-29 00:24:51 UTC) #9
hidehiko
Overall, LGTM with minor comments. Defer to oshima@-san, specifically for ash implementation details. Sorry for ...
4 years, 3 months ago (2016-08-29 14:31:39 UTC) #10
hirono
Thank you! https://codereview.chromium.org/2285633002/diff/20001/ash/accelerators/accelerator_controller_delegate_aura.cc File ash/accelerators/accelerator_controller_delegate_aura.cc (right): https://codereview.chromium.org/2285633002/diff/20001/ash/accelerators/accelerator_controller_delegate_aura.cc#newcode316 ash/accelerators/accelerator_controller_delegate_aura.cc:316: bool CanHandleUnpin() { On 2016/08/29 14:31:38, hidehiko ...
4 years, 3 months ago (2016-08-30 07:16:08 UTC) #11
oshima
do we need both? I had an impression that a user can't exit in pinned ...
4 years, 3 months ago (2016-09-02 14:15:05 UTC) #12
hirono
On 2016/09/02 14:15:05, oshima wrote: > do we need both? I had an impression that ...
4 years, 3 months ago (2016-09-05 23:27:30 UTC) #13
hirono
https://codereview.chromium.org/2285633002/diff/40001/components/exo/wayland/server.cc File components/exo/wayland/server.cc (right): https://codereview.chromium.org/2285633002/diff/40001/components/exo/wayland/server.cc#newcode1845 components/exo/wayland/server.cc:1845: zwp_remote_surface_v1_send_state_type_changed(resource, state_type); Only accelerator keys behave differently for pinning ...
4 years, 3 months ago (2016-09-05 23:27:38 UTC) #14
oshima
lgtm with a nit https://codereview.chromium.org/2285633002/diff/40001/ash/common/wm/default_state.cc File ash/common/wm/default_state.cc (right): https://codereview.chromium.org/2285633002/diff/40001/ash/common/wm/default_state.cc#newcode215 ash/common/wm/default_state.cc:215: << "already in pinned mode."; ...
4 years, 3 months ago (2016-09-09 07:18:02 UTC) #15
hirono
Thank you! https://codereview.chromium.org/2285633002/diff/40001/ash/common/wm/default_state.cc File ash/common/wm/default_state.cc (right): https://codereview.chromium.org/2285633002/diff/40001/ash/common/wm/default_state.cc#newcode215 ash/common/wm/default_state.cc:215: << "already in pinned mode."; On 2016/09/09 ...
4 years, 3 months ago (2016-09-14 00:54:41 UTC) #16
hirono
On 2016/09/14 00:54:41, hirono wrote: > Thank you! > > https://codereview.chromium.org/2285633002/diff/40001/ash/common/wm/default_state.cc > File ash/common/wm/default_state.cc (right): ...
4 years, 3 months ago (2016-09-14 01:03:54 UTC) #17
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/2285633002/60001
4 years, 3 months ago (2016-09-20 03:25:12 UTC) #20
commit-bot: I haz the power
Try jobs failed on following builders: ios-device on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-device/builds/71729) mac_chromium_compile_dbg_ng on master.tryserver.chromium.mac (JOB_FAILED, ...
4 years, 3 months ago (2016-09-20 03:27:40 UTC) #22
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/2285633002/80001
4 years, 3 months ago (2016-09-20 05:02:18 UTC) #25
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 3 months ago (2016-09-20 05:28:25 UTC) #27
commit-bot: I haz the power
4 years, 3 months ago (2016-09-20 05:29:42 UTC) #29
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/94b6193abeb2e2057f17b32da9381767c6b3d9a8
Cr-Commit-Position: refs/heads/master@{#419685}

Powered by Google App Engine
This is Rietveld 408576698