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

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

Issue 15731007: Add dialog-specific styling, restore old-style task manager. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 7 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/window/dialog_client_view.cc ('k') | ui/views/window/dialog_delegate.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/window/dialog_delegate.h
diff --git a/ui/views/window/dialog_delegate.h b/ui/views/window/dialog_delegate.h
index 401456ea646ebd7cbf33b9d8cfe97ddfd83a9345..958707c2fd0c92e491798bd0d8a361aecf2b0ff7 100644
--- a/ui/views/window/dialog_delegate.h
+++ b/ui/views/window/dialog_delegate.h
@@ -31,7 +31,8 @@ class VIEWS_EXPORT DialogDelegate : public ui::DialogModel,
public:
virtual ~DialogDelegate();
- // Returns whether to use the new dialog style.
+ // Returns whether to use the new dialog style in general.
+ // See UseNewStyleForThisDialog() for dialog-specific styling.
static bool UseNewStyle();
// Create a |dialog| window Widget with the specified |context| or |parent|.
@@ -96,6 +97,9 @@ class VIEWS_EXPORT DialogDelegate : public ui::DialogModel,
static NonClientFrameView* CreateNewStyleFrameView(Widget* widget,
bool force_opaque_border);
+ // Returns whether this particular dialog should use the new dialog style.
+ virtual bool UseNewStyleForThisDialog() const;
+
// Called when the window has been closed.
virtual void OnClose() {}
« no previous file with comments | « ui/views/window/dialog_client_view.cc ('k') | ui/views/window/dialog_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698