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

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

Issue 1686433002: Remove DialogDelegate::OnClosed() which is redundant with (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: change less 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
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
115 // A helper for accessing the DialogClientView object contained by this 112 // A helper for accessing the DialogClientView object contained by this
116 // delegate's Window. 113 // delegate's Window.
117 const DialogClientView* GetDialogClientView() const; 114 const DialogClientView* GetDialogClientView() const;
118 DialogClientView* GetDialogClientView(); 115 DialogClientView* GetDialogClientView();
119 116
120 protected: 117 protected:
121 // Overridden from WidgetDelegate: 118 // Overridden from WidgetDelegate:
122 ui::AXRole GetAccessibleWindowRole() const override; 119 ui::AXRole GetAccessibleWindowRole() const override;
123 120
124 private: 121 private:
(...skipping 22 matching lines...) Expand all
147 void ViewHierarchyChanged( 144 void ViewHierarchyChanged(
148 const ViewHierarchyChangedDetails& details) override; 145 const ViewHierarchyChangedDetails& details) override;
149 146
150 private: 147 private:
151 DISALLOW_COPY_AND_ASSIGN(DialogDelegateView); 148 DISALLOW_COPY_AND_ASSIGN(DialogDelegateView);
152 }; 149 };
153 150
154 } // namespace views 151 } // namespace views
155 152
156 #endif // UI_VIEWS_WINDOW_DIALOG_DELEGATE_H_ 153 #endif // UI_VIEWS_WINDOW_DIALOG_DELEGATE_H_
OLDNEW
« ui/views/window/dialog_client_view.cc ('K') | « 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