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

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

Issue 109623005: Cleanup: Remove deprecated version of views::CreateDialogFrameView(). (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 7 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 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/strings/string16.h" 9 #include "base/strings/string16.h"
10 #include "ui/base/accessibility/accessibility_types.h" 10 #include "ui/base/accessibility/accessibility_types.h"
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 virtual bool IsDialogButtonEnabled(ui::DialogButton button) const OVERRIDE; 84 virtual bool IsDialogButtonEnabled(ui::DialogButton button) const OVERRIDE;
85 85
86 // Overridden from WidgetDelegate: 86 // Overridden from WidgetDelegate:
87 virtual View* GetInitiallyFocusedView() OVERRIDE; 87 virtual View* GetInitiallyFocusedView() OVERRIDE;
88 virtual DialogDelegate* AsDialogDelegate() OVERRIDE; 88 virtual DialogDelegate* AsDialogDelegate() OVERRIDE;
89 virtual ClientView* CreateClientView(Widget* widget) OVERRIDE; 89 virtual ClientView* CreateClientView(Widget* widget) OVERRIDE;
90 virtual NonClientFrameView* CreateNonClientFrameView(Widget* widget) OVERRIDE; 90 virtual NonClientFrameView* CreateNonClientFrameView(Widget* widget) OVERRIDE;
91 91
92 // Create a frame view using the new dialog style. 92 // Create a frame view using the new dialog style.
93 static NonClientFrameView* CreateDialogFrameView(Widget* widget); 93 static NonClientFrameView* CreateDialogFrameView(Widget* widget);
94 // The semi-transparent border and shadow of the new style frame view does not
95 // work on child windows under Views/Win32. This is a kludge to get a
96 // reasonable-looking opaque border for the dialog. Note that this does not
msw 2013/12/11 17:47:13 Hmm, I was considering using this to create top-le
97 // support arrows.
98 //
99 // TODO(wittman): Remove once WinAura is in place.
100 static NonClientFrameView* CreateDialogFrameView(Widget* widget,
101 bool force_opaque_border);
102 94
103 // Returns whether this particular dialog should use the new dialog style. 95 // Returns whether this particular dialog should use the new dialog style.
104 virtual bool UseNewStyleForThisDialog() const; 96 virtual bool UseNewStyleForThisDialog() const;
105 97
106 // Called when the window has been closed. 98 // Called when the window has been closed.
107 virtual void OnClosed() {} 99 virtual void OnClosed() {}
108 100
109 // A helper for accessing the DialogClientView object contained by this 101 // A helper for accessing the DialogClientView object contained by this
110 // delegate's Window. 102 // delegate's Window.
111 const DialogClientView* GetDialogClientView() const; 103 const DialogClientView* GetDialogClientView() const;
(...skipping 20 matching lines...) Expand all
132 virtual const Widget* GetWidget() const OVERRIDE; 124 virtual const Widget* GetWidget() const OVERRIDE;
133 virtual View* GetContentsView() OVERRIDE; 125 virtual View* GetContentsView() OVERRIDE;
134 126
135 private: 127 private:
136 DISALLOW_COPY_AND_ASSIGN(DialogDelegateView); 128 DISALLOW_COPY_AND_ASSIGN(DialogDelegateView);
137 }; 129 };
138 130
139 } // namespace views 131 } // namespace views
140 132
141 #endif // UI_VIEWS_WINDOW_DIALOG_DELEGATE_H_ 133 #endif // UI_VIEWS_WINDOW_DIALOG_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698