Commit f0dd1da7 authored by Tessa Nijssen's avatar Tessa Nijssen Committed by Commit Bot

[Views] Refactoring MenuController::CalculateBubbleMenuBounds()

The following changes were made:
  - Store reference to monitor bounds
  - Rename variable to determine child menu position
  - Renamed anchor bounds
  - Renamed menu bounds
  - Removed Calls to gfx::Rect's origin

Store Reference to Monitor Bounds
state_.monitor_bounds -> monitor_bounds

Renamed Variable to Determine Child Menu Position
create_on_the_right -> create_on_right
Also cleaned up initialization.

Renamed Anchor Bounds
owner_bounds -> anchor_bounds
The variable is described as being the anchor bounds in a comment above
its instantiation.

Renamed Menu Bounds
pref -> menu_bounds
More descriptive name.

Removed Calls to gfx::Rect's Origin
origin().x() -> x()
origin().y() -> y()
Calls to x() and y() return the origin's x and y positions. Adding a
call to the origin is unnecessary.

Change-Id: I29d9b669d567b3d978da721c1b34b9399a1e8178
Reviewed-on: https://chromium-review.googlesource.com/1145544Reviewed-by: default avatarPeter Kasting <pkasting@chromium.org>
Reviewed-by: default avatarScott Violet <sky@chromium.org>
Commit-Queue: Peter Kasting <pkasting@chromium.org>
Cr-Commit-Position: refs/heads/master@{#585528}
parent 093ae17e
This diff is collapsed.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment