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

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

Issue 11571023: Move ash/wm's DialogFrameView to ui/views/window; etc. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove redundant GetContentsView() OVERRIDEs; re-git-add dialog_frame_view files. Created 8 years 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 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);
« 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