Chromium Code Reviews| 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; |