cros: Clean up ash::WindowPositioner and GetPopupPosition
* Convert GetPopupPosition to take a gfx::Size(), because it does not use the position of the passed Rect. * Convert member variables that always match constant values to just use constants * Convert non-mutating functions to static I noticed these while looking at WindowPositioner for mustash. TBR=msw@chromium.org Bug: 764009 Test: ash_unittests, chrome unit_tests WindowSizer* Change-Id: Ie9c16a0a41fc46d8b6ca8918e1cfa757f80e8b70 Reviewed-on: https://chromium-review.googlesource.com/811684 Commit-Queue: James Cook <jamescook@chromium.org> Reviewed-by:James Cook <jamescook@chromium.org> Reviewed-by:
Mitsuru Oshima <oshima@chromium.org> Cr-Commit-Position: refs/heads/master@{#522297}
Showing
Please register or sign in to comment