Overview mode code has built up quite a bit of technical debt over time, making it tough for developers to add new features to it. We should set some time to do some cleanup over the next milestone or two.
This bug will be a general tracker for related work.
Some ideas:
1) Rename instances of window_selector -> overview.
2) Split window_selector_unittest into different files (eg. overview_utils_test, window_selector_item_unittest). It's almost 5k lines long.
3) Introduce test api and maybe test utils to help do 2).
4) Combine window_selector and window_selector_controller? There does not seem to be a reason to keep them separate and forces us to use DeleteSoons and similar.
5) Extract some inline classes into their own files (eg. CaptionContainerView).
Please add more ideas you may have run into!
Comment 1 by afakhry@chromium.org
, Dec 15