Index: ui/views/window/dialog_delegate.h |
diff --git a/ui/views/window/dialog_delegate.h b/ui/views/window/dialog_delegate.h |
index 9f19c73a7eb0d7de39469e8338d50f968e503c91..9be756fa2f802080b8894536f25fcb4ff50bbbb7 100644 |
--- a/ui/views/window/dialog_delegate.h |
+++ b/ui/views/window/dialog_delegate.h |
@@ -18,6 +18,7 @@ namespace views { |
class DialogClientView; |
class LabelButton; |
+class StyledLabel; |
/////////////////////////////////////////////////////////////////////////////// |
// |
@@ -48,6 +49,10 @@ class VIEWS_EXPORT DialogDelegate : public ui::DialogModel, |
gfx::NativeView parent, |
const gfx::Rect& bounds); |
+ // Returns a StyledLabel to use as the title of the bubble. By default returns |
+ // nullptr to indicate the default title should be used instead. |
+ virtual StyledLabel* CreateTitleView(); |
sky
2017/06/06 23:55:10
One concern I have with adding this here is that n
Bret
2017/06/07 00:37:46
TaskManagerView is a DialogDelegateView, so I thin
sky
2017/06/07 15:59:40
The new function you are adding is only called fro
Bret
2017/06/07 20:15:41
Okay you're right, that's kind of subtle. It doesn
|
+ |
// Override this function to display an extra view adjacent to the buttons. |
// Overrides may construct the view; this will only be called once per dialog. |
virtual View* CreateExtraView(); |