| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 CHROME_VIEWS_DIALOG_DELEGATE_H_ | 5 #ifndef CHROME_VIEWS_DIALOG_DELEGATE_H_ |
| 6 #define CHROME_VIEWS_DIALOG_DELEGATE_H_ | 6 #define CHROME_VIEWS_DIALOG_DELEGATE_H_ |
| 7 | 7 |
| 8 #include "chrome/views/dialog_client_view.h" | 8 #include "chrome/views/dialog_client_view.h" |
| 9 #include "chrome/views/window_delegate.h" | 9 #include "chrome/views/window_delegate.h" |
| 10 | 10 |
| 11 namespace views { | 11 namespace views { |
| 12 | 12 |
| 13 class NativeButton; | |
| 14 class View; | 13 class View; |
| 15 | 14 |
| 16 /////////////////////////////////////////////////////////////////////////////// | 15 /////////////////////////////////////////////////////////////////////////////// |
| 17 // | 16 // |
| 18 // DialogDelegate | 17 // DialogDelegate |
| 19 // | 18 // |
| 20 // DialogDelegate is an interface implemented by objects that wish to show a | 19 // DialogDelegate is an interface implemented by objects that wish to show a |
| 21 // dialog box Window. The window that is displayed uses this interface to | 20 // dialog box Window. The window that is displayed uses this interface to |
| 22 // determine how it should be displayed and notify the delegate object of | 21 // determine how it should be displayed and notify the delegate object of |
| 23 // certain events. | 22 // certain events. |
| (...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 102 // Overridden from WindowDelegate: | 101 // Overridden from WindowDelegate: |
| 103 virtual ClientView* CreateClientView(Window* window); | 102 virtual ClientView* CreateClientView(Window* window); |
| 104 | 103 |
| 105 // A helper for accessing the DialogClientView object contained by this | 104 // A helper for accessing the DialogClientView object contained by this |
| 106 // delegate's Window. | 105 // delegate's Window. |
| 107 DialogClientView* GetDialogClientView() const; | 106 DialogClientView* GetDialogClientView() const; |
| 108 }; | 107 }; |
| 109 | 108 |
| 110 } // namespace views | 109 } // namespace views |
| 111 | 110 |
| 112 #endif // #ifndef CHROME_VIEWS_DIALOG_DELEGATE_H_ | 111 #endif // CHROME_VIEWS_DIALOG_DELEGATE_H_ |
| 113 | |
| OLD | NEW |