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

Issue 1967543002: Move ShowState-related code from PlatformWindowMus to NativeWidgetMus (Closed)

Created:
4 years, 7 months ago by Mark Dittmer
Modified:
4 years, 7 months ago
Reviewers:
sadrul
CC:
chromium-reviews, tfarina, Fady Samuel
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Move ShowState-related code from PlatformWindowMus to NativeWidgetMus R=sadrul@chromium.org BUG=609555 Committed: https://crrev.com/71c7728405a2e8ff0ffae53cab82605c0aae5176 Cr-Commit-Position: refs/heads/master@{#393251}

Patch Set 1 #

Patch Set 2 : Update logic according to changed ShowState enum #

Patch Set 3 : Update logic according to changed ShowState enum #

Patch Set 4 : Cast to PlatformWindowDelegate for OnWindowStateChanged #

Total comments: 8

Patch Set 5 : Address code review comments from sadrul #

Total comments: 4

Patch Set 6 : Drop WTHM::show_state #

Patch Set 7 : Refactor show_state checks #

Unified diffs Side-by-side diffs Delta from patch set Stats (+75 lines, -92 lines) Patch
M ui/views/mus/native_widget_mus.h View 1 2 3 4 5 6 2 chunks +3 lines, -1 line 0 comments Download
M ui/views/mus/native_widget_mus.cc View 1 2 3 4 5 6 9 chunks +68 lines, -23 lines 0 comments Download
M ui/views/mus/platform_window_mus.h View 2 chunks +0 lines, -8 lines 0 comments Download
M ui/views/mus/platform_window_mus.cc View 1 4 chunks +3 lines, -51 lines 0 comments Download
M ui/views/mus/window_tree_host_mus.h View 1 2 3 4 5 6 1 chunk +0 lines, -3 lines 0 comments Download
M ui/views/mus/window_tree_host_mus.cc View 1 2 3 4 5 6 2 chunks +1 line, -6 lines 0 comments Download

Messages

Total messages: 46 (16 generated)
Mark Dittmer
4 years, 7 months ago (2016-05-10 15:18:24 UTC) #2
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1967543002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1967543002/1
4 years, 7 months ago (2016-05-10 15:18:43 UTC) #3
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: chromeos_amd64-generic_chromium_compile_only_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromeos_amd64-generic_chromium_compile_only_ng/builds/134891) linux_chromium_gn_chromeos_rel on ...
4 years, 7 months ago (2016-05-10 15:30:12 UTC) #5
Mark Dittmer
Update logic according to changed ShowState enum
4 years, 7 months ago (2016-05-10 16:00:22 UTC) #6
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1967543002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1967543002/20001
4 years, 7 months ago (2016-05-10 16:01:17 UTC) #8
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: chromeos_daisy_chromium_compile_only_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromeos_daisy_chromium_compile_only_ng/builds/134862) chromeos_x86-generic_chromium_compile_only_ng on ...
4 years, 7 months ago (2016-05-10 16:11:41 UTC) #10
Mark Dittmer
Update logic according to changed ShowState enum
4 years, 7 months ago (2016-05-10 17:10:54 UTC) #11
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1967543002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1967543002/40001
4 years, 7 months ago (2016-05-10 17:11:56 UTC) #13
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: chromeos_amd64-generic_chromium_compile_only_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromeos_amd64-generic_chromium_compile_only_ng/builds/134960)
4 years, 7 months ago (2016-05-10 17:24:54 UTC) #15
Mark Dittmer
Cast to PlatformWindowDelegate for OnWindowStateChanged
4 years, 7 months ago (2016-05-10 17:42:02 UTC) #16
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1967543002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1967543002/60001
4 years, 7 months ago (2016-05-10 17:42:56 UTC) #18
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 7 months ago (2016-05-10 18:51:09 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1967543002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1967543002/60001
4 years, 7 months ago (2016-05-10 19:30:04 UTC) #22
commit-bot: I haz the power
No L-G-T-M from a valid reviewer yet. CQ run can only be started by full ...
4 years, 7 months ago (2016-05-10 19:30:06 UTC) #24
sadrul
You should also remove WindowTreeHostMus::show_state_. https://codereview.chromium.org/1967543002/diff/60001/ui/views/mus/native_widget_mus.cc File ui/views/mus/native_widget_mus.cc (right): https://codereview.chromium.org/1967543002/diff/60001/ui/views/mus/native_widget_mus.cc#newcode900 ui/views/mus/native_widget_mus.cc:900: window_tree_host_->platform_window()->Maximize(); Remove these calls ...
4 years, 7 months ago (2016-05-11 05:12:47 UTC) #25
sadrul
https://codereview.chromium.org/1967543002/diff/60001/ui/views/mus/native_widget_mus.cc File ui/views/mus/native_widget_mus.cc (right): https://codereview.chromium.org/1967543002/diff/60001/ui/views/mus/native_widget_mus.cc#newcode365 ui/views/mus/native_widget_mus.cc:365: return static_cast<ui::PlatformWindowDelegate*>( btw: this static_cast<> isn't necessary, is it?
4 years, 7 months ago (2016-05-11 05:35:33 UTC) #26
Mark Dittmer
Address code review comments from sadrul
4 years, 7 months ago (2016-05-11 13:37:26 UTC) #27
Mark Dittmer
All comments addressed. https://codereview.chromium.org/1967543002/diff/60001/ui/views/mus/native_widget_mus.cc File ui/views/mus/native_widget_mus.cc (right): https://codereview.chromium.org/1967543002/diff/60001/ui/views/mus/native_widget_mus.cc#newcode365 ui/views/mus/native_widget_mus.cc:365: return static_cast<ui::PlatformWindowDelegate*>( On 2016/05/11 05:35:33, sadrul ...
4 years, 7 months ago (2016-05-11 13:37:37 UTC) #28
sadrul
https://codereview.chromium.org/1967543002/diff/80001/ui/views/mus/native_widget_mus.cc File ui/views/mus/native_widget_mus.cc (right): https://codereview.chromium.org/1967543002/diff/80001/ui/views/mus/native_widget_mus.cc#newcode910 ui/views/mus/native_widget_mus.cc:910: mus_window_observer_->show_state() == ui::PLATFORM_WINDOW_STATE_MINIMIZED; Make sure to add show_state() accessor ...
4 years, 7 months ago (2016-05-11 14:18:21 UTC) #29
Mark Dittmer
Drop WTHM::show_state
4 years, 7 months ago (2016-05-11 14:37:39 UTC) #30
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1967543002/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1967543002/100001
4 years, 7 months ago (2016-05-11 14:40:37 UTC) #32
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: chromeos_x86-generic_chromium_compile_only_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromeos_x86-generic_chromium_compile_only_ng/builds/135563)
4 years, 7 months ago (2016-05-11 14:50:25 UTC) #34
Mark Dittmer
Refactor show_state checks
4 years, 7 months ago (2016-05-11 15:12:12 UTC) #35
Mark Dittmer
https://codereview.chromium.org/1967543002/diff/80001/ui/views/mus/native_widget_mus.cc File ui/views/mus/native_widget_mus.cc (right): https://codereview.chromium.org/1967543002/diff/80001/ui/views/mus/native_widget_mus.cc#newcode910 ui/views/mus/native_widget_mus.cc:910: mus_window_observer_->show_state() == ui::PLATFORM_WINDOW_STATE_MINIMIZED; On 2016/05/11 14:18:20, sadrul wrote: > ...
4 years, 7 months ago (2016-05-11 15:12:55 UTC) #37
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1967543002/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1967543002/120001
4 years, 7 months ago (2016-05-11 15:13:00 UTC) #38
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 7 months ago (2016-05-11 15:51:09 UTC) #40
sadrul
lgtm
4 years, 7 months ago (2016-05-11 19:22:33 UTC) #41
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1967543002/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1967543002/120001
4 years, 7 months ago (2016-05-12 15:01:52 UTC) #43
commit-bot: I haz the power
Committed patchset #7 (id:120001)
4 years, 7 months ago (2016-05-12 15:05:46 UTC) #44
commit-bot: I haz the power
4 years, 7 months ago (2016-05-12 15:07:21 UTC) #46
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/71c7728405a2e8ff0ffae53cab82605c0aae5176
Cr-Commit-Position: refs/heads/master@{#393251}

Powered by Google App Engine
This is Rietveld 408576698