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 |
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
89 // there is no "Cancel" button. This function should return true if the window | 89 // there is no "Cancel" button. This function should return true if the window |
90 // can be closed after the window can be closed after it returns, or false if | 90 // can be closed after the window can be closed after it returns, or false if |
91 // it must remain open. If |window_closing| is true, it means that this | 91 // it must remain open. If |window_closing| is true, it means that this |
92 // handler is being called because the window is being closed (e.g. by | 92 // handler is being called because the window is being closed (e.g. by |
93 // Window::Close) and there is no Cancel handler, so Accept is being called | 93 // Window::Close) and there is no Cancel handler, so Accept is being called |
94 // instead. | 94 // instead. |
95 virtual bool Accept(bool window_closing) { return Accept(); } | 95 virtual bool Accept(bool window_closing) { return Accept(); } |
96 virtual bool Accept() { return true; } | 96 virtual bool Accept() { return true; } |
97 | 97 |
98 // Overridden from WindowDelegate: | 98 // Overridden from WindowDelegate: |
99 virtual View* GetInitiallyFocusedView() const; | 99 virtual View* GetInitiallyFocusedView(); |
100 | 100 |
101 // Overridden from WindowDelegate: | 101 // Overridden from WindowDelegate: |
102 virtual ClientView* CreateClientView(Window* window); | 102 virtual ClientView* CreateClientView(Window* window); |
103 | 103 |
104 // A helper for accessing the DialogClientView object contained by this | 104 // A helper for accessing the DialogClientView object contained by this |
105 // delegate's Window. | 105 // delegate's Window. |
106 DialogClientView* GetDialogClientView() const; | 106 DialogClientView* GetDialogClientView() const; |
107 }; | 107 }; |
108 | 108 |
109 } // namespace views | 109 } // namespace views |
110 | 110 |
111 #endif // CHROME_VIEWS_DIALOG_DELEGATE_H_ | 111 #endif // CHROME_VIEWS_DIALOG_DELEGATE_H_ |
OLD | NEW |