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 1730893002: Revert of Remove DialogDelegate::OnClosed() which is redundant with (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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
« no previous file with comments | « ui/views/window/dialog_client_view.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/macros.h" 9 #include "base/macros.h"
10 #include "base/strings/string16.h" 10 #include "base/strings/string16.h"
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 DialogDelegate* AsDialogDelegate() override; 102 DialogDelegate* AsDialogDelegate() override;
103 ClientView* CreateClientView(Widget* widget) override; 103 ClientView* CreateClientView(Widget* widget) override;
104 NonClientFrameView* CreateNonClientFrameView(Widget* widget) override; 104 NonClientFrameView* CreateNonClientFrameView(Widget* widget) override;
105 105
106 // Create a frame view using the new dialog style. 106 // Create a frame view using the new dialog style.
107 static NonClientFrameView* CreateDialogFrameView(Widget* widget); 107 static NonClientFrameView* CreateDialogFrameView(Widget* widget);
108 108
109 // Returns whether this particular dialog should use the new dialog style. 109 // Returns whether this particular dialog should use the new dialog style.
110 virtual bool UseNewStyleForThisDialog() const; 110 virtual bool UseNewStyleForThisDialog() const;
111 111
112 // Called when the window has been closed.
113 virtual void OnClosed() {}
114
112 // A helper for accessing the DialogClientView object contained by this 115 // A helper for accessing the DialogClientView object contained by this
113 // delegate's Window. 116 // delegate's Window.
114 const DialogClientView* GetDialogClientView() const; 117 const DialogClientView* GetDialogClientView() const;
115 DialogClientView* GetDialogClientView(); 118 DialogClientView* GetDialogClientView();
116 119
117 protected: 120 protected:
118 // Overridden from WidgetDelegate: 121 // Overridden from WidgetDelegate:
119 ui::AXRole GetAccessibleWindowRole() const override; 122 ui::AXRole GetAccessibleWindowRole() const override;
120 123
121 private: 124 private:
(...skipping 22 matching lines...) Expand all
144 void ViewHierarchyChanged( 147 void ViewHierarchyChanged(
145 const ViewHierarchyChangedDetails& details) override; 148 const ViewHierarchyChangedDetails& details) override;
146 149
147 private: 150 private:
148 DISALLOW_COPY_AND_ASSIGN(DialogDelegateView); 151 DISALLOW_COPY_AND_ASSIGN(DialogDelegateView);
149 }; 152 };
150 153
151 } // namespace views 154 } // namespace views
152 155
153 #endif // UI_VIEWS_WINDOW_DIALOG_DELEGATE_H_ 156 #endif // UI_VIEWS_WINDOW_DIALOG_DELEGATE_H_
OLDNEW
« no previous file with comments | « ui/views/window/dialog_client_view.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698