| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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_BROWSER_VIEWS_CONFIRM_MESSAGE_BOX_DIALOG_H_ | 5 #ifndef CHROME_BROWSER_VIEWS_CONFIRM_MESSAGE_BOX_DIALOG_H_ |
| 6 #define CHROME_BROWSER_VIEWS_CONFIRM_MESSAGE_BOX_DIALOG_H_ | 6 #define CHROME_BROWSER_VIEWS_CONFIRM_MESSAGE_BOX_DIALOG_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "app/gfx/native_widget_types.h" |
| 10 #include "base/basictypes.h" | 11 #include "base/basictypes.h" |
| 11 #include "base/gfx/native_widget_types.h" | |
| 12 #include "views/controls/label.h" | 12 #include "views/controls/label.h" |
| 13 #include "views/window/dialog_delegate.h" | 13 #include "views/window/dialog_delegate.h" |
| 14 | 14 |
| 15 // An interface the confirm dialog uses to notify its clients (observers) when | 15 // An interface the confirm dialog uses to notify its clients (observers) when |
| 16 // the user makes a decision to confirm or cancel. Only one method will be | 16 // the user makes a decision to confirm or cancel. Only one method will be |
| 17 // invoked per use (i.e per invocation of ConfirmMessageBoxDialog::Run). | 17 // invoked per use (i.e per invocation of ConfirmMessageBoxDialog::Run). |
| 18 class ConfirmMessageBoxObserver { | 18 class ConfirmMessageBoxObserver { |
| 19 public: | 19 public: |
| 20 // The user explicitly confirmed by clicking "OK". | 20 // The user explicitly confirmed by clicking "OK". |
| 21 virtual void OnConfirmMessageAccept() = 0; | 21 virtual void OnConfirmMessageAccept() = 0; |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 69 // This is the Title bar text. | 69 // This is the Title bar text. |
| 70 std::wstring window_title_; | 70 std::wstring window_title_; |
| 71 | 71 |
| 72 // The observer to notify of acceptance or cancellation. | 72 // The observer to notify of acceptance or cancellation. |
| 73 ConfirmMessageBoxObserver* observer_; | 73 ConfirmMessageBoxObserver* observer_; |
| 74 | 74 |
| 75 DISALLOW_COPY_AND_ASSIGN(ConfirmMessageBoxDialog); | 75 DISALLOW_COPY_AND_ASSIGN(ConfirmMessageBoxDialog); |
| 76 }; | 76 }; |
| 77 | 77 |
| 78 #endif // CHROME_BROWSER_VIEWS_CONFIRM_MESSAGE_BOX_DIALOG_H_ | 78 #endif // CHROME_BROWSER_VIEWS_CONFIRM_MESSAGE_BOX_DIALOG_H_ |
| OLD | NEW |