OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 UI_VIEWS_BUBBLE_BUBBLE_FRAME_VIEW_H_ | 5 #ifndef UI_VIEWS_BUBBLE_BUBBLE_FRAME_VIEW_H_ |
6 #define UI_VIEWS_BUBBLE_BUBBLE_FRAME_VIEW_H_ | 6 #define UI_VIEWS_BUBBLE_BUBBLE_FRAME_VIEW_H_ |
7 | 7 |
8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
9 #include "base/gtest_prod_util.h" | 9 #include "base/gtest_prod_util.h" |
10 #include "base/macros.h" | 10 #include "base/macros.h" |
| 11 #include "ui/gfx/font_list.h" |
11 #include "ui/gfx/geometry/insets.h" | 12 #include "ui/gfx/geometry/insets.h" |
12 #include "ui/views/controls/button/button.h" | 13 #include "ui/views/controls/button/button.h" |
13 #include "ui/views/window/non_client_view.h" | 14 #include "ui/views/window/non_client_view.h" |
14 | 15 |
15 namespace gfx { | |
16 class FontList; | |
17 } | |
18 | |
19 namespace views { | 16 namespace views { |
20 | 17 |
21 class Label; | |
22 class BubbleBorder; | 18 class BubbleBorder; |
23 class ImageView; | 19 class ImageView; |
| 20 class StyledLabel; |
24 | 21 |
25 // The non-client frame view of bubble-styled widgets. | 22 // The non-client frame view of bubble-styled widgets. |
26 class VIEWS_EXPORT BubbleFrameView : public NonClientFrameView, | 23 class VIEWS_EXPORT BubbleFrameView : public NonClientFrameView, |
27 public ButtonListener { | 24 public ButtonListener { |
28 public: | 25 public: |
29 // Internal class name. | 26 // Internal class name. |
30 static const char kViewClassName[]; | 27 static const char kViewClassName[]; |
31 | 28 |
32 BubbleFrameView(const gfx::Insets& title_margins, | 29 BubbleFrameView(const gfx::Insets& title_margins, |
33 const gfx::Insets& content_margins); | 30 const gfx::Insets& content_margins); |
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
117 | 114 |
118 // The bubble border. | 115 // The bubble border. |
119 BubbleBorder* bubble_border_; | 116 BubbleBorder* bubble_border_; |
120 | 117 |
121 // Margins around the title label. | 118 // Margins around the title label. |
122 gfx::Insets title_margins_; | 119 gfx::Insets title_margins_; |
123 | 120 |
124 // Margins between the content and the inside of the border, in pixels. | 121 // Margins between the content and the inside of the border, in pixels. |
125 gfx::Insets content_margins_; | 122 gfx::Insets content_margins_; |
126 | 123 |
| 124 // The font list used by the title. |
| 125 gfx::FontList title_font_list_; |
| 126 |
127 // The optional title icon, title, and (x) close button. | 127 // The optional title icon, title, and (x) close button. |
128 views::ImageView* title_icon_; | 128 views::ImageView* title_icon_; |
129 Label* title_; | 129 StyledLabel* title_; |
130 Button* close_; | 130 Button* close_; |
131 | 131 |
132 // A view to contain the footnote view, if it exists. | 132 // A view to contain the footnote view, if it exists. |
133 View* footnote_container_; | 133 View* footnote_container_; |
134 | 134 |
135 // Whether the close button was clicked. | 135 // Whether the close button was clicked. |
136 bool close_button_clicked_; | 136 bool close_button_clicked_; |
137 | 137 |
138 DISALLOW_COPY_AND_ASSIGN(BubbleFrameView); | 138 DISALLOW_COPY_AND_ASSIGN(BubbleFrameView); |
139 }; | 139 }; |
140 | 140 |
141 } // namespace views | 141 } // namespace views |
142 | 142 |
143 #endif // UI_VIEWS_BUBBLE_BUBBLE_FRAME_VIEW_H_ | 143 #endif // UI_VIEWS_BUBBLE_BUBBLE_FRAME_VIEW_H_ |
OLD | NEW |