| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CHROME_BROWSER_UI_VIEWS_FRAME_OPAQUE_BROWSER_FRAME_VIEW_LAYOUT_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_FRAME_OPAQUE_BROWSER_FRAME_VIEW_LAYOUT_H_ |
| 6 #define CHROME_BROWSER_UI_VIEWS_FRAME_OPAQUE_BROWSER_FRAME_VIEW_LAYOUT_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_FRAME_OPAQUE_BROWSER_FRAME_VIEW_LAYOUT_H_ |
| 7 | 7 |
| 8 #include "base/macros.h" | 8 #include "base/macros.h" |
| 9 #include "chrome/browser/ui/views/frame/opaque_browser_frame_view.h" | 9 #include "chrome/browser/ui/views/frame/opaque_browser_frame_view.h" |
| 10 #include "ui/views/layout/layout_manager.h" | 10 #include "ui/views/layout/layout_manager.h" |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 66 | 66 |
| 67 // Returns the thickness of the border that makes up the window frame edges. | 67 // Returns the thickness of the border that makes up the window frame edges. |
| 68 // This does not include any client edge. If |restored| is true, acts as if | 68 // This does not include any client edge. If |restored| is true, acts as if |
| 69 // the window is restored regardless of the real mode. | 69 // the window is restored regardless of the real mode. |
| 70 int FrameBorderThickness(bool restored) const; | 70 int FrameBorderThickness(bool restored) const; |
| 71 | 71 |
| 72 // Returns the thickness of the entire nonclient left, right, and bottom | 72 // Returns the thickness of the entire nonclient left, right, and bottom |
| 73 // borders, including both the window frame and any client edge. | 73 // borders, including both the window frame and any client edge. |
| 74 int NonClientBorderThickness() const; | 74 int NonClientBorderThickness() const; |
| 75 | 75 |
| 76 // Returns the height of the entire nonclient top border, including the window | 76 // Returns the height of the entire nonclient top border, from the edge of the |
| 77 // frame, any title area, and any connected client edge. If |restored| is | 77 // window to the top of the tabs. If |restored| is true, this is calculated as |
| 78 // true, acts as if the window is restored regardless of the real mode. | 78 // if the window was restored, regardless of its current state. |
| 79 int NonClientTopBorderHeight(bool restored) const; | 79 int NonClientTopHeight(bool restored) const; |
| 80 | 80 |
| 81 int GetTabStripInsetsTop(bool restored) const; | 81 int GetTabStripInsetsTop(bool restored) const; |
| 82 | 82 |
| 83 // Returns the y-coordinate of the caption buttons. If |restored| is true, | 83 // Returns the y-coordinate of the caption buttons. If |restored| is true, |
| 84 // acts as if the window is restored regardless of the real mode. | 84 // acts as if the window is restored regardless of the real mode. |
| 85 int CaptionButtonY(bool restored) const; | 85 int CaptionButtonY(bool restored) const; |
| 86 | 86 |
| 87 // Returns the thickness of the 3D edge along the top of the titlebar. If | 87 // Returns the thickness of the 3D edge along the top of the titlebar. If |
| 88 // |restored| is true, acts as if the window is restored regardless of the | 88 // |restored| is true, acts as if the window is restored regardless of the |
| 89 // real mode. | 89 // real mode. |
| (...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 198 AvatarMenuButton* avatar_button_; | 198 AvatarMenuButton* avatar_button_; |
| 199 views::View* new_avatar_button_; | 199 views::View* new_avatar_button_; |
| 200 | 200 |
| 201 std::vector<views::FrameButton> leading_buttons_; | 201 std::vector<views::FrameButton> leading_buttons_; |
| 202 std::vector<views::FrameButton> trailing_buttons_; | 202 std::vector<views::FrameButton> trailing_buttons_; |
| 203 | 203 |
| 204 DISALLOW_COPY_AND_ASSIGN(OpaqueBrowserFrameViewLayout); | 204 DISALLOW_COPY_AND_ASSIGN(OpaqueBrowserFrameViewLayout); |
| 205 }; | 205 }; |
| 206 | 206 |
| 207 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_OPAQUE_BROWSER_FRAME_VIEW_LAYOUT_H_ | 207 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_OPAQUE_BROWSER_FRAME_VIEW_LAYOUT_H_ |
| OLD | NEW |