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

Side by Side Diff: ui/views/window/dialog_delegate.h

Issue 15667004: Add resize support for Views new style dialogs. (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 unified diff | Download patch | Annotate | Revision Log
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_WINDOW_DIALOG_DELEGATE_H_ 5 #ifndef UI_VIEWS_WINDOW_DIALOG_DELEGATE_H_
6 #define UI_VIEWS_WINDOW_DIALOG_DELEGATE_H_ 6 #define UI_VIEWS_WINDOW_DIALOG_DELEGATE_H_
7 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "base/string16.h" 9 #include "base/string16.h"
10 #include "ui/base/accessibility/accessibility_types.h" 10 #include "ui/base/accessibility/accessibility_types.h"
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 virtual int GetDialogButtons() const OVERRIDE; 75 virtual int GetDialogButtons() const OVERRIDE;
76 virtual int GetDefaultDialogButton() const OVERRIDE; 76 virtual int GetDefaultDialogButton() const OVERRIDE;
77 virtual base::string16 GetDialogButtonLabel( 77 virtual base::string16 GetDialogButtonLabel(
78 ui::DialogButton button) const OVERRIDE; 78 ui::DialogButton button) const OVERRIDE;
79 virtual bool IsDialogButtonEnabled(ui::DialogButton button) const OVERRIDE; 79 virtual bool IsDialogButtonEnabled(ui::DialogButton button) const OVERRIDE;
80 virtual bool OnDialogButtonActivated(ui::DialogButton button) OVERRIDE; 80 virtual bool OnDialogButtonActivated(ui::DialogButton button) OVERRIDE;
81 81
82 // Overridden from WidgetDelegate: 82 // Overridden from WidgetDelegate:
83 virtual View* GetInitiallyFocusedView() OVERRIDE; 83 virtual View* GetInitiallyFocusedView() OVERRIDE;
84 virtual DialogDelegate* AsDialogDelegate() OVERRIDE; 84 virtual DialogDelegate* AsDialogDelegate() OVERRIDE;
85 virtual bool CanResize() const OVERRIDE;
85 virtual ClientView* CreateClientView(Widget* widget) OVERRIDE; 86 virtual ClientView* CreateClientView(Widget* widget) OVERRIDE;
86 virtual NonClientFrameView* CreateNonClientFrameView(Widget* widget) OVERRIDE; 87 virtual NonClientFrameView* CreateNonClientFrameView(Widget* widget) OVERRIDE;
87 88
88 // Create a frame view using the new dialog style. 89 // Create a frame view using the new dialog style.
89 static NonClientFrameView* CreateNewStyleFrameView(Widget* widget); 90 static NonClientFrameView* CreateNewStyleFrameView(Widget* widget);
90 // The semi-transparent border and shadow of the new style frame view does not 91 // The semi-transparent border and shadow of the new style frame view does not
91 // work on child windows under Views/Win32. This is a kludge to get a 92 // work on child windows under Views/Win32. This is a kludge to get a
92 // reasonable-looking opaque border for the dialog. Note that this does not 93 // reasonable-looking opaque border for the dialog. Note that this does not
93 // support arrows. 94 // support arrows.
94 // 95 //
(...skipping 30 matching lines...) Expand all
125 virtual const Widget* GetWidget() const OVERRIDE; 126 virtual const Widget* GetWidget() const OVERRIDE;
126 virtual View* GetContentsView() OVERRIDE; 127 virtual View* GetContentsView() OVERRIDE;
127 128
128 private: 129 private:
129 DISALLOW_COPY_AND_ASSIGN(DialogDelegateView); 130 DISALLOW_COPY_AND_ASSIGN(DialogDelegateView);
130 }; 131 };
131 132
132 } // namespace views 133 } // namespace views
133 134
134 #endif // UI_VIEWS_WINDOW_DIALOG_DELEGATE_H_ 135 #endif // UI_VIEWS_WINDOW_DIALOG_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698