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

Side by Side 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 unified diff | 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 »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef UI_VIEWS_WIDGET_WIDGET_DELEGATE_H_ 5 #ifndef UI_VIEWS_WIDGET_WIDGET_DELEGATE_H_
6 #define UI_VIEWS_WIDGET_WIDGET_DELEGATE_H_ 6 #define UI_VIEWS_WIDGET_WIDGET_DELEGATE_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 72
73 // Returns the title to be read with screen readers. 73 // Returns the title to be read with screen readers.
74 virtual base::string16 GetAccessibleWindowTitle() const; 74 virtual base::string16 GetAccessibleWindowTitle() const;
75 75
76 // Returns the text to be displayed in the window title. 76 // Returns the text to be displayed in the window title.
77 virtual base::string16 GetWindowTitle() const; 77 virtual base::string16 GetWindowTitle() const;
78 78
79 // Returns true if the window should show a title in the title bar. 79 // Returns true if the window should show a title in the title bar.
80 virtual bool ShouldShowWindowTitle() const; 80 virtual bool ShouldShowWindowTitle() const;
81 81
82 // Returns the icon to be displayed in the window title.
83 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
84
85 // Returns true if the window should show an icon in the title bar.
86 virtual bool ShouldShowWindowTitleIcon() const;
87
82 // Returns true if the window should show a close button in the title bar. 88 // Returns true if the window should show a close button in the title bar.
83 virtual bool ShouldShowCloseButton() const; 89 virtual bool ShouldShowCloseButton() const;
84 90
85 // Returns true if the window should handle standard system commands, such as 91 // Returns true if the window should handle standard system commands, such as
86 // close, minimize, maximize. 92 // close, minimize, maximize.
87 virtual bool ShouldHandleSystemCommands() const; 93 virtual bool ShouldHandleSystemCommands() const;
88 94
89 // Returns the app icon for the window. On Windows, this is the ICON_BIG used 95 // Returns the app icon for the window. On Windows, this is the ICON_BIG used
90 // in Alt-Tab list and Win7's taskbar. 96 // in Alt-Tab list and Win7's taskbar.
91 virtual gfx::ImageSkia GetWindowAppIcon(); 97 virtual gfx::ImageSkia GetWindowAppIcon();
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
214 // View: 220 // View:
215 const char* GetClassName() const override; 221 const char* GetClassName() const override;
216 222
217 private: 223 private:
218 DISALLOW_COPY_AND_ASSIGN(WidgetDelegateView); 224 DISALLOW_COPY_AND_ASSIGN(WidgetDelegateView);
219 }; 225 };
220 226
221 } // namespace views 227 } // namespace views
222 228
223 #endif // UI_VIEWS_WIDGET_WIDGET_DELEGATE_H_ 229 #endif // UI_VIEWS_WIDGET_WIDGET_DELEGATE_H_
OLDNEW
« 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