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..a0b635d97b9783fd143d8cf439ba5859a8e0267b 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. |
- 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 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 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 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 NonClientBorderThickness() const; |
Peter Kasting
2016/04/12 01:49:31
Note: For all these functions you're renaming, con
Bret
2016/04/12 23:19:38
I took a look at these. It seems like Ash/Mus are
|
+ |
+ // Returns the thickness of the window border for the top edge of the frame, |
+ // which is sometimes different than NonClientBorderThickness(). 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 NonClientTopBorderThickness(bool restored) const; |
+ |
+ // Returns the thickness of the border around the client area that separates |
+ // it from the non-client area. If |restored| is true, this is calculated as |
+ // if the window was restored, regardless of its current state. |
+ int ClientBorderThickness(bool restored) const; |
Peter Kasting
2016/04/12 01:49:31
Nit: I might place this above the NonClientXXX() f
Bret
2016/04/12 23:19:38
ClientBorderThickness is only sort of related to N
Peter Kasting
2016/04/13 01:00:22
Maybe it's the NonClient functions which have poor
Bret
2016/04/13 22:19:47
Before I spend a bunch of time thinking about thes
|
+ |
+ // Returns the height of the entire nonclient top border, from the edge of the |
+ // window to the top of the tabs. If |restored| is true, this is calculated as |
+ // if the window was restored, regardless of its current state. |
+ int NonClientTopHeight(bool restored) const; |
Peter Kasting
2016/04/12 01:49:31
Nit: I might place this just below NonClientTopBor
Bret
2016/04/12 23:19:38
Done.
|
// Returns whether the toolbar is currently visible. |
bool IsToolbarVisible() const; |
+ // Returns whether we should use the special layout for when the caption |
+ // buttons are drawn at the top-right corner in RTL mode. |
+ bool RTLSpecialLayout() const; |
Peter Kasting
2016/04/12 01:49:31
"Special layout" is kind of vague. If this is spe
Bret
2016/04/12 23:19:38
Hmm I like having a comment on it even if it's a s
Peter Kasting
2016/04/13 01:00:22
That implies we have two RTL mode states: caption
Bret
2016/04/13 22:19:47
You're correct that at this moment they're on alwa
Peter Kasting
2016/04/15 00:20:51
Note that once you're custom-drawing them on the l
|
+ |
+ // Returns the y coordinate for an element that's aligned as far towards the |
+ // top of the window as it should be allowed to draw. |
+ int WindowTopY() const; |
Peter Kasting
2016/04/12 01:49:31
Nit: I would place this next to the other XXXTopXX
Bret
2016/04/12 23:19:38
Done.
|
+ |
// 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 LayoutAvatar(); |
Peter Kasting
2016/04/12 01:49:31
Nit: If we're going to rename this, maybe we shoul
Bret
2016/04/12 23:19:38
Done for references in this class. There are a bun
|
void LayoutClientView(); |
// Returns the insets of the client area. If |restored| is true, this is |