Chromium Code Reviews| Index: chrome/browser/ui/views/frame/glass_browser_frame_view.h |
| diff --git a/chrome/browser/ui/views/frame/glass_browser_frame_view.h b/chrome/browser/ui/views/frame/glass_browser_frame_view.h |
| index f14ba9dfa546e2920d12e20d0b89514ab10f6b7b..9c2c48f0d86a17c0ac17435105afad1b2201eb21 100644 |
| --- a/chrome/browser/ui/views/frame/glass_browser_frame_view.h |
| +++ b/chrome/browser/ui/views/frame/glass_browser_frame_view.h |
| @@ -52,30 +52,38 @@ class GlassBrowserFrameView : public BrowserNonClientFrameView { |
| bool DoesIntersectRect(const views::View* target, |
| const gfx::Rect& rect) const override; |
| - // Returns the thickness of the border that makes up the window left, right, |
| - // and bottom frame edges. This does not include any client edge. |
| + // Returns the thickness of the border around the client area (web content, |
| + // toolbar, and tabs) that separates it from the frame border. If |restored| |
| + // is true, this is calculated as if the window was restored, regardless of |
| + // its current state. |
| + int ClientBorderThickness(bool restored) const; |
| + |
| + // Returns the thickness of the window border for the left, right, and bottom |
| + // edges of the frame. On Windows 10 this is a mostly-transparent handle that |
| + // allows you to resize the window. |
| int FrameBorderThickness() const; |
| - // Returns the height of the window top frame edge. If |restored| is true, |
| - // this is calculated as if the window was restored, regardless of its current |
| - // state. |
| - int FrameTopBorderHeight(bool restored) const; |
| + // Returns the thickness of the window border for the top edge of the frame, |
| + // which is sometimes different than FrameBorderThickness(). Does not include |
| + // the titlebar/tabstrip area. If |restored| is true, this is calculated as if |
| + // the window was restored, regardless of its current state. |
| + int FrameTopBorderThickness(bool restored) const; |
| - // Returns the thickness of the entire nonclient left, right, and bottom |
| - // borders, including both the window frame and any client edge. If |restored| |
| - // is true, this is calculated as if the window was restored, regardless of |
| - // its current state. |
| - int NonClientBorderThickness(bool restored) const; |
| + // Returns the height of the entire top chrome, from the edge of the window to |
| + // the top of the tabs. If |restored| is true, this is calculated as if the |
|
Peter Kasting
2016/04/19 21:00:00
Nit: Maybe "Returns the height of everything above
Bret
2016/04/19 23:19:47
Ok, I like your comment. Done.
|
| + // window was restored, regardless of its current state. |
| + int TopAreaHeight(bool restored) const; |
| - // Returns the height of the entire nonclient top border, including the window |
| - // frame, any title area, and any connected client edge. If |restored| is |
| - // true, this is calculated as if the window was restored, regardless of its |
| - // current state. |
| - int NonClientTopBorderHeight(bool restored) const; |
| + // Returns the y coordinate for the Windows caption buttons. |
| + int CaptionButtonY() const; |
| // Returns whether the toolbar is currently visible. |
| bool IsToolbarVisible() const; |
| + // Returns whether the caption buttons are drawn at the leading edge (i.e. the |
| + // left in LTR mode, or the right in RTL mode). |
| + bool CaptionButtonsOnLeadingEdge() const; |
| + |
| // Paint various sub-components of this view. |
| void PaintToolbarBackground(gfx::Canvas* canvas) const; |
| void PaintClientEdge(gfx::Canvas* canvas) const; |
| @@ -88,7 +96,7 @@ class GlassBrowserFrameView : public BrowserNonClientFrameView { |
| // Layout various sub-components of this view. |
| void LayoutIncognitoIcon(); |
| - void LayoutNewStyleAvatar(); |
| + void LayoutProfileSwitcher(); |
| void LayoutClientView(); |
| // Returns the insets of the client area. If |restored| is true, this is |
| @@ -117,7 +125,7 @@ class GlassBrowserFrameView : public BrowserNonClientFrameView { |
| // The big icon created from the bitmap image of the window icon. |
| base::win::ScopedHICON big_window_icon_; |
| - // Wrapper around the in-frame avatar switcher. |
| + // Wrapper around the in-frame profile switcher. |
| AvatarButtonManager profile_switcher_; |
| // Whether or not the window throbber is currently animating. |