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

Unified Diff: ui/views/bubble/bubble_frame_view.h

Issue 2907983002: Allow dialogs to use a custom View as their title. (Closed)
Patch Set: merge Created 3 years, 6 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 side-by-side diff with in-line comments
Download patch
Index: ui/views/bubble/bubble_frame_view.h
diff --git a/ui/views/bubble/bubble_frame_view.h b/ui/views/bubble/bubble_frame_view.h
index 4f4d94647a9d20d963fecd7794bb06b640751441..aa658fee9e6fae27c1fec49f1e3a49bb54a2fcf7 100644
--- a/ui/views/bubble/bubble_frame_view.h
+++ b/ui/views/bubble/bubble_frame_view.h
@@ -8,19 +8,16 @@
#include "base/compiler_specific.h"
#include "base/gtest_prod_util.h"
#include "base/macros.h"
+#include "ui/gfx/font_list.h"
#include "ui/gfx/geometry/insets.h"
#include "ui/views/controls/button/button.h"
#include "ui/views/window/non_client_view.h"
-namespace gfx {
-class FontList;
-}
-
namespace views {
-class Label;
class BubbleBorder;
class ImageView;
+class StyledLabel;
// The non-client frame view of bubble-styled widgets.
class VIEWS_EXPORT BubbleFrameView : public NonClientFrameView,
@@ -124,9 +121,12 @@ class VIEWS_EXPORT BubbleFrameView : public NonClientFrameView,
// Margins between the content and the inside of the border, in pixels.
gfx::Insets content_margins_;
+ // The font list used by the title.
+ gfx::FontList title_font_list_;
+
// The optional title icon, title, and (x) close button.
views::ImageView* title_icon_;
- Label* title_;
+ StyledLabel* title_;
Button* close_;
// A view to contain the footnote view, if it exists.

Powered by Google App Engine
This is Rietveld 408576698