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 "chrome/browser/ui/views/frame/opaque_browser_frame_view.h" | 8 #include "chrome/browser/ui/views/frame/opaque_browser_frame_view.h" |
9 #include "ui/views/layout/layout_manager.h" | 9 #include "ui/views/layout/layout_manager.h" |
10 #include "ui/views/window/frame_buttons.h" | 10 #include "ui/views/window/frame_buttons.h" |
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
86 void set_extra_caption_y(int extra_caption_y) { | 86 void set_extra_caption_y(int extra_caption_y) { |
87 extra_caption_y_ = extra_caption_y; | 87 extra_caption_y_ = extra_caption_y; |
88 } | 88 } |
89 | 89 |
90 void set_window_caption_spacing(int window_caption_spacing) { | 90 void set_window_caption_spacing(int window_caption_spacing) { |
91 window_caption_spacing_ = window_caption_spacing; | 91 window_caption_spacing_ = window_caption_spacing; |
92 } | 92 } |
93 | 93 |
94 const gfx::Rect& client_view_bounds() const { return client_view_bounds_; } | 94 const gfx::Rect& client_view_bounds() const { return client_view_bounds_; } |
95 | 95 |
| 96 // Determines whether the title bar is condensed vertically, as when the |
| 97 // window is maximized. If true, the title bar is just the height of a tab, |
| 98 // rather than having extra vertical space above the tabs. This also removes |
| 99 // the thick frame border and rounded corners. |
| 100 bool IsTitleBarCondensed() const; |
| 101 |
96 private: | 102 private: |
97 // Whether a specific button should be inserted on the leading or trailing | 103 // Whether a specific button should be inserted on the leading or trailing |
98 // side. | 104 // side. |
99 enum ButtonAlignment { | 105 enum ButtonAlignment { |
100 ALIGN_LEADING, | 106 ALIGN_LEADING, |
101 ALIGN_TRAILING | 107 ALIGN_TRAILING |
102 }; | 108 }; |
103 | 109 |
104 // Determines whether the avatar should be shown on the right side of the tab | 110 // Determines whether the avatar should be shown on the right side of the tab |
105 // strip (instead of the usual left). | 111 // strip (instead of the usual left). |
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
183 AvatarMenuButton* avatar_button_; | 189 AvatarMenuButton* avatar_button_; |
184 views::View* new_avatar_button_; | 190 views::View* new_avatar_button_; |
185 | 191 |
186 std::vector<views::FrameButton> leading_buttons_; | 192 std::vector<views::FrameButton> leading_buttons_; |
187 std::vector<views::FrameButton> trailing_buttons_; | 193 std::vector<views::FrameButton> trailing_buttons_; |
188 | 194 |
189 DISALLOW_COPY_AND_ASSIGN(OpaqueBrowserFrameViewLayout); | 195 DISALLOW_COPY_AND_ASSIGN(OpaqueBrowserFrameViewLayout); |
190 }; | 196 }; |
191 | 197 |
192 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_OPAQUE_BROWSER_FRAME_VIEW_LAYOUT_H_ | 198 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_OPAQUE_BROWSER_FRAME_VIEW_LAYOUT_H_ |
OLD | NEW |