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

Issue 101773004: Refactor PhantomWindowController so that the PhantomWindowController owns the phantom window (Closed)

Created:
7 years ago by pkotwicz
Modified:
6 years, 11 months ago
CC:
chromium-reviews, kalyank, sadrul, ben+ash_chromium.org
Visibility:
Public.

Description

This is part 1 of implemeting phantom windows for the window controls when using --ash-enable-alternate-caption-button Other notable changes: - Switched to using layer animations instead of gfx::SlideAnimation - Renamed PhantomWindowController::phantom_widget_ and PhantomWindowController::phantom_widget_start_ to PhantomWindowController::phantom_widget_in_target_root_ and PhantomWindowController::phantom_widget_in_start_root_ respectively. - Removed PhantomWindowController::Hide(). Hiding the phantom window can now only be done via destroying the PhantomWindowController BUG=328930 TEST=PhantomWindowControllerTest.* Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=244050

Patch Set 1 : #

Total comments: 1

Patch Set 2 : #

Total comments: 15

Patch Set 3 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+265 lines, -268 lines) Patch
M ash/ash.gyp View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M ash/wm/gestures/system_pinch_handler.h View 1 2 2 chunks +2 lines, -1 line 0 comments Download
M ash/wm/gestures/system_pinch_handler.cc View 1 2 2 chunks +6 lines, -4 lines 0 comments Download
M ash/wm/workspace/phantom_window_controller.h View 1 2 4 chunks +18 lines, -39 lines 0 comments Download
M ash/wm/workspace/phantom_window_controller.cc View 1 2 6 chunks +68 lines, -68 lines 0 comments Download
A ash/wm/workspace/phantom_window_controller_unittest.cc View 1 2 1 chunk +170 lines, -0 lines 0 comments Download
M ash/wm/workspace/workspace_window_resizer.h View 1 2 1 chunk +0 lines, -4 lines 0 comments Download
M ash/wm/workspace/workspace_window_resizer.cc View 1 2 1 chunk +0 lines, -9 lines 0 comments Download
M ash/wm/workspace/workspace_window_resizer_unittest.cc View 1 2 3 chunks +0 lines, -143 lines 0 comments Download

Messages

Total messages: 17 (0 generated)
pkotwicz
Stefan, can you please take a look?
7 years ago (2013-12-16 23:30:02 UTC) #1
Mr4D (OOO till 08-26)
Except for naming lgtm. https://codereview.chromium.org/101773004/diff/10008/ash/wm/workspace/phantom_window_controller.h File ash/wm/workspace/phantom_window_controller.h (right): https://codereview.chromium.org/101773004/diff/10008/ash/wm/workspace/phantom_window_controller.h#newcode88 ash/wm/workspace/phantom_window_controller.h:88: // NULL. This allows animation ...
7 years ago (2013-12-17 22:55:20 UTC) #2
pkotwicz
Stefan, can you please take another look? I fixed a couple of bugs I found ...
7 years ago (2013-12-18 19:16:46 UTC) #3
pkotwicz
Stefan, ping?
7 years ago (2013-12-19 16:10:48 UTC) #4
Mr4D (OOO till 08-26)
A few comments. https://codereview.chromium.org/101773004/diff/130001/ash/wm/workspace/phantom_window_controller.cc File ash/wm/workspace/phantom_window_controller.cc (right): https://codereview.chromium.org/101773004/diff/130001/ash/wm/workspace/phantom_window_controller.cc#newcode90 ash/wm/workspace/phantom_window_controller.cc:90: widget->Hide(); I just checked with sky ...
7 years ago (2013-12-19 17:56:54 UTC) #5
pkotwicz
https://codereview.chromium.org/101773004/diff/130001/ash/wm/workspace/phantom_window_controller.cc File ash/wm/workspace/phantom_window_controller.cc (right): https://codereview.chromium.org/101773004/diff/130001/ash/wm/workspace/phantom_window_controller.cc#newcode90 ash/wm/workspace/phantom_window_controller.cc:90: widget->Hide(); I am unsure if I understand. I need ...
7 years ago (2013-12-19 18:18:21 UTC) #6
Mr4D (OOO till 08-26)
The unit tests are a refactor and still test the legacy case. As such that ...
7 years ago (2013-12-19 18:57:52 UTC) #7
pkotwicz
Scott, can you please take a look?
7 years ago (2013-12-19 19:03:38 UTC) #8
sky
https://codereview.chromium.org/101773004/diff/130001/ash/wm/workspace/phantom_window_controller.cc File ash/wm/workspace/phantom_window_controller.cc (right): https://codereview.chromium.org/101773004/diff/130001/ash/wm/workspace/phantom_window_controller.cc#newcode65 ash/wm/workspace/phantom_window_controller.cc:65: ui::LayerAnimator::IMMEDIATELY_ANIMATE_TO_NEW_TARGET); Why do you want strategy? https://codereview.chromium.org/101773004/diff/130001/ash/wm/workspace/phantom_window_controller.cc#newcode73 ash/wm/workspace/phantom_window_controller.cc:73: void ...
7 years ago (2013-12-19 21:25:42 UTC) #9
pkotwicz
Scott, can you please take another look? https://codereview.chromium.org/101773004/diff/130001/ash/wm/workspace/phantom_window_controller.cc File ash/wm/workspace/phantom_window_controller.cc (right): https://codereview.chromium.org/101773004/diff/130001/ash/wm/workspace/phantom_window_controller.cc#newcode65 ash/wm/workspace/phantom_window_controller.cc:65: ui::LayerAnimator::IMMEDIATELY_ANIMATE_TO_NEW_TARGET); I ...
7 years ago (2013-12-20 01:57:19 UTC) #10
sky
https://codereview.chromium.org/101773004/diff/130001/ash/wm/workspace/phantom_window_controller.cc File ash/wm/workspace/phantom_window_controller.cc (right): https://codereview.chromium.org/101773004/diff/130001/ash/wm/workspace/phantom_window_controller.cc#newcode73 ash/wm/workspace/phantom_window_controller.cc:73: void AnimateToVisibility(views::Widget* widget, bool new_visibility) { On 2013/12/20 01:57:20, ...
6 years, 11 months ago (2014-01-06 17:30:05 UTC) #11
pkotwicz
Scott, can you please take a look? After some discussion with the UX designers it ...
6 years, 11 months ago (2014-01-09 04:54:09 UTC) #12
sky
LGTM
6 years, 11 months ago (2014-01-09 16:41:17 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/pkotwicz@chromium.org/101773004/250001
6 years, 11 months ago (2014-01-09 18:28:31 UTC) #14
commit-bot: I haz the power
Retried try job too often on win_rel for step(s) browser_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_rel&number=244208
6 years, 11 months ago (2014-01-09 21:04:56 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/pkotwicz@chromium.org/101773004/250001
6 years, 11 months ago (2014-01-09 21:33:53 UTC) #16
commit-bot: I haz the power
6 years, 11 months ago (2014-01-10 02:33:58 UTC) #17
Message was sent while issue was closed.
Change committed as 244050

Powered by Google App Engine
This is Rietveld 408576698