Chromium Code Reviews
Description[ABANDONED; THE SHELF DIMMER WILL BE REMOVED WITH MD, BEFORE MASH SHIPS.]
Simplify ash shelf dimmer.
Nix dimmer view/widget/image; use the opaque foreground.
(0.25f opacity black bar instead of IDR_ASH_SHELF_DIMMING)
(see before/after pictures at http://crbug.com/615155#c35)
Extract the local 'DimmerEventFilter' -> 'Dimmer' EventHandler.
Use for shelf window (not root window) pre-target handling.
Add PointerWatcher functionality for external touch presses.
TODO: Refine drag/drop behavior (for dragging onto the shelf).
Remove unnecessary ShelfWidget dimming test helpers.
Remove WmShelf::IsDimmed; use GetBackgroundType instead.
Simplify ShelfLayoutManagerTest:
- Use CreateTestWidget where possible.
- Use AshTestBase::GetEventGenerator() throughout.
- Use and cache display::Screen::GetPrimaryDisplay().
- Use GetDimsShelf instead of GetDimmingAlphaForTest.
- Remove unnecessary event generator uses.
- Try to re-enable some tests.
- Try to avoid SupportsHostWindowResize early returns.
BUG=615155
TEST=Automated tests; no behavior changes; slight appearance change.
Patch Set 1 #Patch Set 2 : Refine beahvior; cleanup code; update tests. #Patch Set 3 : Refine behavior further; huge test cleanup. #Patch Set 4 : Remove GetDimmingOpacityForTest #Patch Set 5 : Remove WmShelf::IsDimmed(); use GetBackgroundType() instead. #Patch Set 6 : Sync and rebase; cleanup #Patch Set 7 : Restore an EventHandler object; fix behavior tests. #
Messages
Total messages: 8 (8 generated)
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||