| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_UI_APP_MODAL_DIALOGS_APP_MODAL_DIALOG_H_ | 5 #ifndef COMPONENTS_APP_MODAL_DIALOGS_APP_MODAL_DIALOG_H_ |
| 6 #define CHROME_BROWSER_UI_APP_MODAL_DIALOGS_APP_MODAL_DIALOG_H_ | 6 #define COMPONENTS_APP_MODAL_DIALOGS_APP_MODAL_DIALOG_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| 11 #include "base/strings/string16.h" | 11 #include "base/strings/string16.h" |
| 12 #include "build/build_config.h" | 12 #include "build/build_config.h" |
| 13 | 13 |
| 14 class NativeAppModalDialog; | 14 class NativeAppModalDialog; |
| 15 | 15 |
| 16 namespace content { | 16 namespace content { |
| (...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 82 bool valid_; | 82 bool valid_; |
| 83 | 83 |
| 84 // The toolkit-specific implementation of the app modal dialog box. | 84 // The toolkit-specific implementation of the app modal dialog box. |
| 85 NativeAppModalDialog* native_dialog_; | 85 NativeAppModalDialog* native_dialog_; |
| 86 | 86 |
| 87 content::WebContents* web_contents_; | 87 content::WebContents* web_contents_; |
| 88 | 88 |
| 89 DISALLOW_COPY_AND_ASSIGN(AppModalDialog); | 89 DISALLOW_COPY_AND_ASSIGN(AppModalDialog); |
| 90 }; | 90 }; |
| 91 | 91 |
| 92 #endif // CHROME_BROWSER_UI_APP_MODAL_DIALOGS_APP_MODAL_DIALOG_H_ | 92 // An interface to observe that a modal dialog is shown. |
| 93 class AppModalDialogObserver { |
| 94 public: |
| 95 AppModalDialogObserver(); |
| 96 virtual ~AppModalDialogObserver(); |
| 97 |
| 98 // Called when the modal dialog is shown. |
| 99 virtual void Notify(AppModalDialog* dialog) = 0; |
| 100 |
| 101 private: |
| 102 DISALLOW_COPY_AND_ASSIGN(AppModalDialogObserver); |
| 103 }; |
| 104 |
| 105 #endif // COMPONENTS_APP_MODAL_DIALOGS_APP_MODAL_DIALOG_H_ |
| OLD | NEW |