Refactor coordinate system of OpaqueBrowserFrameViewLayout::trailing_button_start_
This CL is a refactor and has no behavioural changes. OpaqueBrowserFrameView::trailing_button_start_ is an x coordinate relative to the right edge of the window title bar. This CL replaces trailing_button_start_ with available_space_trailing_x_ where available_space_trailing_x_ == host->width() - trailing_button_start_. available_space_trailing_x_ represents the same x position as trailing_button_start_ except it's relative to the left edge of the titlebar (0). The name "button_start" has been replaced with "available_space_*_x" as it's used for more than just button elements and now represents a typical x co-ordinate. This refactor is intended to support https://chromium-review.googlesource.com/c/chromium/src/+/1156117 by making HostedAppButtonContainer::LayoutInContainer() less cumbersome to use in OpaqueBrowserFrameViewLayout. Bug: 854479 Change-Id: Iff1c29139cd4c8c66286db85fce85b99c94c5261 Reviewed-on: https://chromium-review.googlesource.com/1158313 Commit-Queue: Alan Cutter <alancutter@chromium.org> Reviewed-by:Bret Sepulveda <bsep@chromium.org> Cr-Commit-Position: refs/heads/master@{#580045}
Showing
Please register or sign in to comment