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

Issue 810033010: Remove TransparentActivateWindowButton from Overview Mode (Closed)

Created:
5 years, 11 months ago by Nina
Modified:
5 years, 11 months ago
Reviewers:
*flackr, *tdanderson, bruthig
CC:
chromium-reviews, tdanderson+overview_chromium.org, kalyank, sadrul
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Remove TransparentActivateWindowButton from Overview Mode This change eliminates the need to have a transparent button on top of overview mode windows by installing a static event targeter on each of the item windows. The targeter checks for events on the item bounds and redirects events to a label button located under each item. This way, we greatly simplify event handling while preventing events to reach the actual windows. The reason why we use a label button now is that it already handles clicks and taps, as well as accessibility stuff (touch exploration, chromevox feedback) that were being handled in the transparent window before. The CL only involves refactoring - no features have been added or removed. BUG=446548 TEST=WindowSelectorTest.* Committed: https://crrev.com/a46f73ff27e6d54e56c4c45ef816ec167fcb5b99 Cr-Commit-Position: refs/heads/master@{#312936}

Patch Set 1 #

Total comments: 11

Patch Set 2 : Now installing targeters on each of the windows instead of the container. #

Total comments: 14

Patch Set 3 : Took care of comments, now windows are selected in click release #

Total comments: 6

Patch Set 4 : Fixed latest nits #

Total comments: 8

Patch Set 5 : Implemented changes suggested by flackr #

Total comments: 6

Patch Set 6 : Fixed nits #

Unified diffs Side-by-side diffs Delta from patch set Stats (+356 lines, -416 lines) Patch
M ash/ash.gyp View 1 2 3 4 2 chunks +4 lines, -3 lines 0 comments Download
A ash/wm/overview/overview_window_button.h View 1 2 3 4 5 1 chunk +71 lines, -0 lines 0 comments Download
A ash/wm/overview/overview_window_button.cc View 1 2 3 4 5 1 chunk +155 lines, -0 lines 0 comments Download
A ash/wm/overview/overview_window_targeter.h View 1 2 3 4 1 chunk +45 lines, -0 lines 0 comments Download
A ash/wm/overview/overview_window_targeter.cc View 1 1 chunk +32 lines, -0 lines 0 comments Download
M ash/wm/overview/scoped_overview_animation_settings.h View 1 2 3 4 1 chunk +5 lines, -0 lines 0 comments Download
M ash/wm/overview/scoped_overview_animation_settings.cc View 1 2 3 4 1 chunk +11 lines, -0 lines 0 comments Download
M ash/wm/overview/scoped_transform_overview_window.h View 1 6 chunks +2 lines, -15 lines 0 comments Download
M ash/wm/overview/scoped_transform_overview_window.cc View 1 2 chunks +0 lines, -6 lines 0 comments Download
D ash/wm/overview/transparent_activate_window_button.h View 1 1 chunk +0 lines, -57 lines 0 comments Download
D ash/wm/overview/transparent_activate_window_button.cc View 1 1 chunk +0 lines, -136 lines 0 comments Download
D ash/wm/overview/transparent_activate_window_button_delegate.h View 1 chunk +0 lines, -30 lines 0 comments Download
M ash/wm/overview/window_selector_item.h View 1 2 3 4 6 chunks +8 lines, -34 lines 0 comments Download
M ash/wm/overview/window_selector_item.cc View 1 2 3 4 10 chunks +9 lines, -124 lines 0 comments Download
M ash/wm/overview/window_selector_unittest.cc View 1 2 3 4 6 chunks +14 lines, -11 lines 0 comments Download

Messages

Total messages: 22 (6 generated)
Nina
Hey Terry, Can you give this patch a first look? I'll loop in flackr afterwards, ...
5 years, 11 months ago (2015-01-09 15:43:49 UTC) #3
Nina
Ben, I'm looping you in so that you can check the proposed changes as you've ...
5 years, 11 months ago (2015-01-09 16:08:08 UTC) #5
bruthig
Made a few comments inline as well as these. 1. Will clicks/taps outside inside of ...
5 years, 11 months ago (2015-01-09 17:04:33 UTC) #6
Nina
Hi Terry, Can you please give the patch a first review? Thanks! https://codereview.chromium.org/810033010/diff/1/ash/wm/overview/window_grid.cc File ash/wm/overview/window_grid.cc ...
5 years, 11 months ago (2015-01-21 16:24:16 UTC) #7
bruthig
https://codereview.chromium.org/810033010/diff/20001/ash/wm/overview/window_selector_item.cc File ash/wm/overview/window_selector_item.cc (right): https://codereview.chromium.org/810033010/diff/20001/ash/wm/overview/window_selector_item.cc#newcode338 ash/wm/overview/window_selector_item.cc:338: SetupFadeInAfterLayout(window_label_->GetNativeWindow()); The call to SetupFadeInAfterLayout was intentionally put in ...
5 years, 11 months ago (2015-01-21 16:55:42 UTC) #8
tdanderson
Hey Nico, I left a few comments below, which we can discuss in further detail ...
5 years, 11 months ago (2015-01-21 17:24:25 UTC) #9
Nina
Terry, Ben, please review the changes. Thanks! https://codereview.chromium.org/810033010/diff/20001/ash/wm/overview/overview_window_targeter.cc File ash/wm/overview/overview_window_targeter.cc (right): https://codereview.chromium.org/810033010/diff/20001/ash/wm/overview/overview_window_targeter.cc#newcode22 ash/wm/overview/overview_window_targeter.cc:22: event->set_location(gfx::PointF(0, 0)); ...
5 years, 11 months ago (2015-01-22 19:44:32 UTC) #10
tdanderson
Hey Nico, I took a look at your latest patch set and it lgtm, feel ...
5 years, 11 months ago (2015-01-22 20:43:58 UTC) #11
Nina
Flackr, can you give this patch a review? Thanks https://codereview.chromium.org/810033010/diff/40001/ash/wm/overview/window_selector_item.cc File ash/wm/overview/window_selector_item.cc (right): https://codereview.chromium.org/810033010/diff/40001/ash/wm/overview/window_selector_item.cc#newcode113 ash/wm/overview/window_selector_item.cc:113: ...
5 years, 11 months ago (2015-01-22 22:25:39 UTC) #14
flackr
https://codereview.chromium.org/810033010/diff/60001/ash/wm/overview/overview_window_targeter.h File ash/wm/overview/overview_window_targeter.h (right): https://codereview.chromium.org/810033010/diff/60001/ash/wm/overview/overview_window_targeter.h#newcode29 ash/wm/overview/overview_window_targeter.h:29: bool EventLocationInsideBounds(ui::EventTarget* target, can you re-state the parent class ...
5 years, 11 months ago (2015-01-22 23:21:17 UTC) #15
Nina
Hi flackr, can you give the code another look? I refactored the code as you ...
5 years, 11 months ago (2015-01-23 18:38:58 UTC) #16
flackr
LGTM, thanks for splitting out the label button behavior. https://codereview.chromium.org/810033010/diff/80001/ash/wm/overview/overview_window_button.cc File ash/wm/overview/overview_window_button.cc (right): https://codereview.chromium.org/810033010/diff/80001/ash/wm/overview/overview_window_button.cc#newcode34 ash/wm/overview/overview_window_button.cc:34: ...
5 years, 11 months ago (2015-01-23 19:31:55 UTC) #17
Nina
Moving forward with the commit. https://codereview.chromium.org/810033010/diff/80001/ash/wm/overview/overview_window_button.cc File ash/wm/overview/overview_window_button.cc (right): https://codereview.chromium.org/810033010/diff/80001/ash/wm/overview/overview_window_button.cc#newcode34 ash/wm/overview/overview_window_button.cc:34: static const int kShadowBlur ...
5 years, 11 months ago (2015-01-23 20:35:54 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/810033010/100001
5 years, 11 months ago (2015-01-23 20:36:49 UTC) #20
commit-bot: I haz the power
Committed patchset #6 (id:100001)
5 years, 11 months ago (2015-01-23 21:53:18 UTC) #21
commit-bot: I haz the power
5 years, 11 months ago (2015-01-23 21:54:19 UTC) #22
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/a46f73ff27e6d54e56c4c45ef816ec167fcb5b99
Cr-Commit-Position: refs/heads/master@{#312936}

Powered by Google App Engine
This is Rietveld 408576698