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

Issue 2778733004: Add WindowPinType property on arua::Window (Closed)

Created:
3 years, 8 months ago by Peng
Modified:
3 years, 8 months ago
Reviewers:
reveman, sky, dcheng
CC:
chromium-reviews, kalyank, sadrul
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Add WindowPinType property on arua::Window Add WindowPinType property on arua::Window. This property can be used for requesting pinning a window instead of using ash::wm::PinWindow(). BUG=697586 Review-Url: https://codereview.chromium.org/2778733004 Cr-Commit-Position: refs/heads/master@{#461923} Committed: https://chromium.googlesource.com/chromium/src/+/e52cb19f44be5e48c4e34189c2c3d7f3439a4160

Patch Set 1 #

Patch Set 2 : WIP #

Patch Set 3 : WIP #

Patch Set 4 : WIP #

Patch Set 5 : WIP #

Total comments: 2

Patch Set 6 : Address review issues. #

Total comments: 2

Patch Set 7 : Address review issues #

Total comments: 6

Patch Set 8 : Address review issue #

Total comments: 8

Patch Set 9 : Address review issues #

Patch Set 10 : Fix build errors. #

Total comments: 6

Patch Set 11 : Address review issues. #

Total comments: 6

Patch Set 12 : Address review issues #

Total comments: 4

Patch Set 13 : Address review issues. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+185 lines, -41 lines) Patch
M ash/common/wm/default_state.cc View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download
M ash/common/wm/lock_window_state.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M ash/common/wm/maximize_mode/maximize_mode_window_state.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M ash/common/wm/window_state.h View 1 2 3 4 5 6 7 8 9 4 chunks +13 lines, -2 lines 0 comments Download
M ash/common/wm/window_state.cc View 1 2 3 4 5 6 7 8 9 5 chunks +39 lines, -1 line 0 comments Download
M ash/common/wm_window.cc View 1 2 3 4 5 6 7 1 chunk +4 lines, -0 lines 0 comments Download
M ash/mus/window_manager.cc View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +5 lines, -0 lines 0 comments Download
M ash/public/cpp/BUILD.gn View 1 2 3 4 5 6 11 1 chunk +2 lines, -0 lines 0 comments Download
M ash/public/cpp/mus_property_mirror_ash.cc View 1 2 3 4 5 6 7 8 1 chunk +3 lines, -0 lines 0 comments Download
A ash/public/cpp/window_pin_type.h View 1 2 3 4 5 6 7 8 11 1 chunk +18 lines, -0 lines 0 comments Download
A ash/public/cpp/window_pin_type.cc View 1 2 3 4 5 6 7 11 1 chunk +17 lines, -0 lines 0 comments Download
M ash/public/cpp/window_properties.h View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +12 lines, -0 lines 0 comments Download
M ash/public/cpp/window_properties.cc View 1 2 3 4 5 6 7 8 1 chunk +8 lines, -1 line 0 comments Download
M ash/public/interfaces/BUILD.gn View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
A ash/public/interfaces/window_pin_type.mojom View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +20 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/ash/chrome_browser_main_extra_parts_ash.cc View 1 2 3 4 5 6 7 8 11 2 chunks +5 lines, -0 lines 0 comments Download
M components/exo/shell_surface.h View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +5 lines, -2 lines 0 comments Download
M components/exo/shell_surface.cc View 1 2 3 4 5 6 7 8 9 10 11 12 3 chunks +6 lines, -13 lines 0 comments Download
M components/exo/shell_surface_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 3 chunks +17 lines, -16 lines 0 comments Download
M components/exo/wayland/server.cc View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +6 lines, -2 lines 0 comments Download

Messages

Total messages: 64 (42 generated)
Peng
Hi Scott, PTAL. Thanks.
3 years, 8 months ago (2017-03-30 15:15:20 UTC) #11
sky
https://codereview.chromium.org/2778733004/diff/80001/ui/views/widget/widget.h File ui/views/widget/widget.h (right): https://codereview.chromium.org/2778733004/diff/80001/ui/views/widget/widget.h#newcode550 ui/views/widget/widget.h:550: void Pin(bool trusted); Pinning is specific to ChromeOS, so ...
3 years, 8 months ago (2017-03-30 20:12:21 UTC) #14
Peng
https://codereview.chromium.org/2778733004/diff/80001/ui/views/widget/widget.h File ui/views/widget/widget.h (right): https://codereview.chromium.org/2778733004/diff/80001/ui/views/widget/widget.h#newcode550 ui/views/widget/widget.h:550: void Pin(bool trusted); On 2017/03/30 20:12:21, sky wrote: > ...
3 years, 8 months ago (2017-03-30 21:10:11 UTC) #17
sky
https://codereview.chromium.org/2778733004/diff/100001/ui/aura/mus/property_converter.cc File ui/aura/mus/property_converter.cc (right): https://codereview.chromium.org/2778733004/diff/100001/ui/aura/mus/property_converter.cc#newcode99 ui/aura/mus/property_converter.cc:99: ui::mojom::WindowManager::kWindowPinType_Property, When you move the classes out of views ...
3 years, 8 months ago (2017-03-31 04:40:26 UTC) #18
Peng
https://codereview.chromium.org/2778733004/diff/100001/ui/aura/mus/property_converter.cc File ui/aura/mus/property_converter.cc (right): https://codereview.chromium.org/2778733004/diff/100001/ui/aura/mus/property_converter.cc#newcode99 ui/aura/mus/property_converter.cc:99: ui::mojom::WindowManager::kWindowPinType_Property, On 2017/03/31 04:40:26, sky wrote: > When you ...
3 years, 8 months ago (2017-03-31 18:09:22 UTC) #19
sky
https://codereview.chromium.org/2778733004/diff/120001/ash/common/wm_window.h File ash/common/wm_window.h (right): https://codereview.chromium.org/2778733004/diff/120001/ash/common/wm_window.h#newcode255 ash/common/wm_window.h:255: void SetPinType(WindowPinType type); WmWindow is going to go away. ...
3 years, 8 months ago (2017-03-31 20:54:48 UTC) #20
sky
Also, the property you are adding should go in ash/public/interfaces, not in window_manager*
3 years, 8 months ago (2017-03-31 20:55:30 UTC) #21
Peng
https://codereview.chromium.org/2778733004/diff/120001/ash/common/wm_window.h File ash/common/wm_window.h (right): https://codereview.chromium.org/2778733004/diff/120001/ash/common/wm_window.h#newcode255 ash/common/wm_window.h:255: void SetPinType(WindowPinType type); On 2017/03/31 20:54:47, sky wrote: > ...
3 years, 8 months ago (2017-04-03 15:11:27 UTC) #24
sky
https://codereview.chromium.org/2778733004/diff/140001/ash/common/wm_window.h File ash/common/wm_window.h (right): https://codereview.chromium.org/2778733004/diff/140001/ash/common/wm_window.h#newcode12 ash/common/wm_window.h:12: #include "ash/public/cpp/window_properties.h" Move includes to .cc? Also, do you ...
3 years, 8 months ago (2017-04-03 16:38:56 UTC) #25
Peng
https://codereview.chromium.org/2778733004/diff/140001/ash/common/wm_window.h File ash/common/wm_window.h (right): https://codereview.chromium.org/2778733004/diff/140001/ash/common/wm_window.h#newcode12 ash/common/wm_window.h:12: #include "ash/public/cpp/window_properties.h" On 2017/04/03 16:38:56, sky wrote: > Move ...
3 years, 8 months ago (2017-04-03 18:03:48 UTC) #27
Peng
+dcheng@chromium.org for *.mojom +reveman@chromium.org for //components/exo/* Hi Daniel and David, PTAL. Thanks.
3 years, 8 months ago (2017-04-03 21:05:40 UTC) #35
dcheng
https://codereview.chromium.org/2778733004/diff/200001/ash/common/wm/window_state.cc File ash/common/wm/window_state.cc (right): https://codereview.chromium.org/2778733004/diff/200001/ash/common/wm/window_state.cc#newcode367 ash/common/wm/window_state.cc:367: ash::mojom::WindowPinType pin_type = ash::mojom::WindowPinType::NONE; After seeing this and the ...
3 years, 8 months ago (2017-04-04 06:58:54 UTC) #38
reveman
https://codereview.chromium.org/2778733004/diff/200001/components/exo/shell_surface.cc File components/exo/shell_surface.cc (right): https://codereview.chromium.org/2778733004/diff/200001/components/exo/shell_surface.cc#newcode53 components/exo/shell_surface.cc:53: ash::mojom::WindowPinType GetPinType(bool pinned, bool trusted) { Please change ShellSurface::SetPinned ...
3 years, 8 months ago (2017-04-04 07:13:14 UTC) #39
Peng
https://codereview.chromium.org/2778733004/diff/200001/ash/common/wm/window_state.cc File ash/common/wm/window_state.cc (right): https://codereview.chromium.org/2778733004/diff/200001/ash/common/wm/window_state.cc#newcode367 ash/common/wm/window_state.cc:367: ash::mojom::WindowPinType pin_type = ash::mojom::WindowPinType::NONE; On 2017/04/04 06:58:54, dcheng wrote: ...
3 years, 8 months ago (2017-04-04 15:08:15 UTC) #41
sky
https://codereview.chromium.org/2778733004/diff/210001/ash/public/cpp/window_properties.h File ash/public/cpp/window_properties.h (right): https://codereview.chromium.org/2778733004/diff/210001/ash/public/cpp/window_properties.h#newcode12 ash/public/cpp/window_properties.h:12: #include "ash/public/interfaces/window_pin_type.mojom.h" forward declare enum? https://codereview.chromium.org/2778733004/diff/210001/ash/public/interfaces/window_pin_type.mojom File ash/public/interfaces/window_pin_type.mojom (right): ...
3 years, 8 months ago (2017-04-04 17:04:57 UTC) #45
Peng
https://codereview.chromium.org/2778733004/diff/210001/ash/public/cpp/window_properties.h File ash/public/cpp/window_properties.h (right): https://codereview.chromium.org/2778733004/diff/210001/ash/public/cpp/window_properties.h#newcode12 ash/public/cpp/window_properties.h:12: #include "ash/public/interfaces/window_pin_type.mojom.h" On 2017/04/04 17:04:56, sky wrote: > forward ...
3 years, 8 months ago (2017-04-04 17:38:00 UTC) #46
reveman
lgtm % nits https://codereview.chromium.org/2778733004/diff/220001/components/exo/shell_surface.h File components/exo/shell_surface.h (right): https://codereview.chromium.org/2778733004/diff/220001/components/exo/shell_surface.h#newcode14 components/exo/shell_surface.h:14: #include "ash/public/interfaces/window_pin_type.mojom.h" nit: forward declare enum ...
3 years, 8 months ago (2017-04-04 18:26:16 UTC) #49
Peng
https://codereview.chromium.org/2778733004/diff/220001/components/exo/shell_surface.h File components/exo/shell_surface.h (right): https://codereview.chromium.org/2778733004/diff/220001/components/exo/shell_surface.h#newcode14 components/exo/shell_surface.h:14: #include "ash/public/interfaces/window_pin_type.mojom.h" On 2017/04/04 18:26:16, reveman wrote: > nit: ...
3 years, 8 months ago (2017-04-04 19:43:50 UTC) #53
sky
LGTM
3 years, 8 months ago (2017-04-04 21:47:01 UTC) #57
dcheng
lgtm
3 years, 8 months ago (2017-04-04 21:54:52 UTC) #58
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/2778733004/240001
3 years, 8 months ago (2017-04-05 00:27:52 UTC) #61
commit-bot: I haz the power
3 years, 8 months ago (2017-04-05 00:55:37 UTC) #64
Message was sent while issue was closed.
Committed patchset #13 (id:240001) as
https://chromium.googlesource.com/chromium/src/+/e52cb19f44be5e48c4e34189c2c3...

Powered by Google App Engine
This is Rietveld 408576698