Chromium Code Reviews| 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 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 85 void set_extra_caption_y(int extra_caption_y) { | 85 void set_extra_caption_y(int extra_caption_y) { |
| 86 extra_caption_y_ = extra_caption_y; | 86 extra_caption_y_ = extra_caption_y; |
| 87 } | 87 } |
| 88 | 88 |
| 89 void set_window_caption_spacing(int window_caption_spacing) { | 89 void set_window_caption_spacing(int window_caption_spacing) { |
| 90 window_caption_spacing_ = window_caption_spacing; | 90 window_caption_spacing_ = window_caption_spacing; |
| 91 } | 91 } |
| 92 | 92 |
| 93 const gfx::Rect& client_view_bounds() const { return client_view_bounds_; } | 93 const gfx::Rect& client_view_bounds() const { return client_view_bounds_; } |
| 94 | 94 |
| 95 // Determines whether the title bar is condensed vertically, as when the | |
| 96 // window is maximized. If true, the title bar is just the height of a tab, | |
| 97 // rather than having extra vertical space above the tabs. This also removes | |
| 98 // the thick frame border and rounded corners. | |
|
James Cook
2013/12/19 20:57:55
Nice comment, very helpful to readers.
| |
| 99 bool IsTitleBarCondensed() const; | |
| 100 | |
| 95 private: | 101 private: |
| 96 // Whether a specific button should be inserted on the leading or trailing | 102 // Whether a specific button should be inserted on the leading or trailing |
| 97 // side. | 103 // side. |
| 98 enum ButtonAlignment { | 104 enum ButtonAlignment { |
| 99 ALIGN_LEADING, | 105 ALIGN_LEADING, |
| 100 ALIGN_TRAILING | 106 ALIGN_TRAILING |
| 101 }; | 107 }; |
| 102 | 108 |
| 103 // Determines whether the avatar should be shown on the right side of the tab | 109 // Determines whether the avatar should be shown on the right side of the tab |
| 104 // strip (instead of the usual left). | 110 // strip (instead of the usual left). |
| (...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 178 AvatarMenuButton* avatar_button_; | 184 AvatarMenuButton* avatar_button_; |
| 179 views::View* new_avatar_button_; | 185 views::View* new_avatar_button_; |
| 180 | 186 |
| 181 std::vector<views::FrameButton> leading_buttons_; | 187 std::vector<views::FrameButton> leading_buttons_; |
| 182 std::vector<views::FrameButton> trailing_buttons_; | 188 std::vector<views::FrameButton> trailing_buttons_; |
| 183 | 189 |
| 184 DISALLOW_COPY_AND_ASSIGN(OpaqueBrowserFrameViewLayout); | 190 DISALLOW_COPY_AND_ASSIGN(OpaqueBrowserFrameViewLayout); |
| 185 }; | 191 }; |
| 186 | 192 |
| 187 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_OPAQUE_BROWSER_FRAME_VIEW_LAYOUT_H_ | 193 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_OPAQUE_BROWSER_FRAME_VIEW_LAYOUT_H_ |
| OLD | NEW |