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

Unified Diff: ui/views/window/dialog_delegate.cc

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
« ui/views/window/dialog_delegate.h ('K') | « ui/views/window/dialog_delegate.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/window/dialog_delegate.cc
diff --git a/ui/views/window/dialog_delegate.cc b/ui/views/window/dialog_delegate.cc
index 0d6b99feb73e0b14e0847749f4648b02f516d154..ea3c42dfa82d9a1972d6c33df823608e271d9a08 100644
--- a/ui/views/window/dialog_delegate.cc
+++ b/ui/views/window/dialog_delegate.cc
@@ -91,8 +91,12 @@ Widget::InitParams DialogDelegate::GetDialogWidgetInitParams(
return params;
}
+StyledLabel* DialogDelegate::CreateTitleView() {
+ return nullptr;
Peter Kasting 2017/06/07 02:40:43 Why not have this return a StyledLabel for GetWind
Bret 2017/06/07 20:15:41 I'll keep this in mind as I rework it, and see if
+}
+
View* DialogDelegate::CreateExtraView() {
- return NULL;
+ return nullptr;
}
bool DialogDelegate::GetExtraViewPadding(int* padding) {
« ui/views/window/dialog_delegate.h ('K') | « ui/views/window/dialog_delegate.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698