Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(85)

Side by Side Diff: chrome/browser/ui/views/frame/opaque_browser_frame_view_layout.h

Issue 1869163003: Refactored GlassBrowserFrameView and BrowserDesktopTreeHostWin. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: edited a comment Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
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, including the window
77 // frame, any title area, and any connected client edge. If |restored| is 77 // frame, any title area, and any connected client edge. If |restored| is
78 // true, acts as if the window is restored regardless of the real mode. 78 // true, acts as if the window is restored regardless of the real mode.
Peter Kasting 2016/04/13 01:00:22 Nit: We should probably update the comments on all
Bret 2016/04/13 22:19:47 I need to be careful because some of these comment
79 int NonClientTopBorderHeight(bool restored) const; 79 int NonClientTopBorderThickness(bool restored) const;
Peter Kasting 2016/04/13 01:00:22 I'm of two minds regarding this name switch. On o
Bret 2016/04/13 22:19:47 I made a mistake with this one, its equivalent is
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698