Chromium Code Reviews| Index: ui/views/window/dialog_delegate.h |
| diff --git a/ui/views/window/dialog_delegate.h b/ui/views/window/dialog_delegate.h |
| index 59319c0b85c8925bd5f5d650e2a840975a9f2e78..59d6401d9c29d350fd164d1d20d78b1a42b66888 100644 |
| --- a/ui/views/window/dialog_delegate.h |
| +++ b/ui/views/window/dialog_delegate.h |
| @@ -28,6 +28,9 @@ class View; |
| /////////////////////////////////////////////////////////////////////////////// |
| class VIEWS_EXPORT DialogDelegate : public WidgetDelegate { |
| public: |
| + // Returns whether to use the new dialog style. |
| + static bool UseNewStyle(); |
|
sky
2012/12/19 15:55:54
constructor/destructor before other methods.
msw
2012/12/19 17:07:33
Done.
|
| + |
| virtual DialogDelegate* AsDialogDelegate() OVERRIDE; |
| virtual ~DialogDelegate(); |
| @@ -58,10 +61,6 @@ class VIEWS_EXPORT DialogDelegate : public WidgetDelegate { |
| // Returns whether the specified dialog button is visible. |
| virtual bool IsDialogButtonVisible(ui::DialogButton button) const; |
| - // Returns whether to use chrome style for the button strip (like WebUI). If |
| - // false, native style padding is used. |
| - virtual bool UseChromeStyle() const; |
| - |
| // Returns whether accelerators are enabled on the button. This is invoked |
| // when an accelerator is pressed, not at construction time. This |
| // returns true. |
| @@ -98,6 +97,7 @@ class VIEWS_EXPORT DialogDelegate : public WidgetDelegate { |
| // Overridden from WindowDelegate: |
| virtual View* GetInitiallyFocusedView() OVERRIDE; |
| virtual ClientView* CreateClientView(Widget* widget) OVERRIDE; |
| + virtual NonClientFrameView* CreateNonClientFrameView(Widget* widget) OVERRIDE; |
| // Called when the window has been closed. |
| virtual void OnClose() {} |
| @@ -124,6 +124,7 @@ class VIEWS_EXPORT DialogDelegateView : public DialogDelegate, |
| // Overridden from DialogDelegate: |
| virtual Widget* GetWidget() OVERRIDE; |
| virtual const Widget* GetWidget() const OVERRIDE; |
| + virtual View* GetContentsView() OVERRIDE; |
| private: |
| DISALLOW_COPY_AND_ASSIGN(DialogDelegateView); |