OLD | NEW |
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 Loading... |
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 Loading... |
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_ |
OLD | NEW |