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

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

Issue 63343004: Remove DialogDelegate::UseNewStyle and unused code. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Additional cleanup; sync and rebase. Created 7 years, 1 month 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
Index: ui/views/window/dialog_delegate.h
diff --git a/ui/views/window/dialog_delegate.h b/ui/views/window/dialog_delegate.h
index e6dc5870d08f55efb569091e95d61c27ffac713f..8e8948de427b026fcaad990597b07bc730af426d 100644
--- a/ui/views/window/dialog_delegate.h
+++ b/ui/views/window/dialog_delegate.h
@@ -31,11 +31,6 @@ class VIEWS_EXPORT DialogDelegate : public ui::DialogModel,
public:
virtual ~DialogDelegate();
- // Returns whether to use the new dialog style in general.
- // See UseNewStyleForThisDialog() for dialog-specific styling.
- // TODO(msw): Remove this. The new dialog style is always on by default.
- static bool UseNewStyle();
-
// Create a |dialog| window Widget with the specified |context| or |parent|.
static Widget* CreateDialogWidget(DialogDelegate* dialog,
gfx::NativeWindow context,
@@ -95,15 +90,15 @@ class VIEWS_EXPORT DialogDelegate : public ui::DialogModel,
virtual NonClientFrameView* CreateNonClientFrameView(Widget* widget) OVERRIDE;
// Create a frame view using the new dialog style.
- static NonClientFrameView* CreateNewStyleFrameView(Widget* widget);
+ static NonClientFrameView* CreateDialogFrameView(Widget* widget);
// The semi-transparent border and shadow of the new style frame view does not
// work on child windows under Views/Win32. This is a kludge to get a
// reasonable-looking opaque border for the dialog. Note that this does not
// support arrows.
//
// TODO(wittman): Remove once WinAura is in place.
- static NonClientFrameView* CreateNewStyleFrameView(Widget* widget,
- bool force_opaque_border);
+ static NonClientFrameView* CreateDialogFrameView(Widget* widget,
+ bool force_opaque_border);
// Returns whether this particular dialog should use the new dialog style.
virtual bool UseNewStyleForThisDialog() const;

Powered by Google App Engine
This is Rietveld 408576698