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

Unified Diff: ui/views/widget/widget_delegate.h

Issue 933893003: Use standard icon/title in global error bubble (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 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
« no previous file with comments | « ui/views/bubble/bubble_frame_view.cc ('k') | ui/views/widget/widget_delegate.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/widget/widget_delegate.h
diff --git a/ui/views/widget/widget_delegate.h b/ui/views/widget/widget_delegate.h
index 2219699940b0bde6d4f6a71995d16af2fc71d42d..41637cfdbfc72e2509b83e613efab12ceb1b5ed9 100644
--- a/ui/views/widget/widget_delegate.h
+++ b/ui/views/widget/widget_delegate.h
@@ -79,6 +79,12 @@ class VIEWS_EXPORT WidgetDelegate {
// Returns true if the window should show a title in the title bar.
virtual bool ShouldShowWindowTitle() const;
+ // Returns the icon to be displayed in the window title.
+ virtual gfx::ImageSkia GetWindowTitleIcon();
msw 2015/02/18 18:48:15 Use GetWindowIcon and ShouldShowWindowIcon below i
xiaoling 2015/02/18 19:03:02 Can I? Excellent if I can. What's the purpose of t
msw 2015/02/18 19:14:44 You should definitely use those. They're already u
+
+ // Returns true if the window should show an icon in the title bar.
+ virtual bool ShouldShowWindowTitleIcon() const;
+
// Returns true if the window should show a close button in the title bar.
virtual bool ShouldShowCloseButton() const;
« no previous file with comments | « ui/views/bubble/bubble_frame_view.cc ('k') | ui/views/widget/widget_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698