Chromium Code Reviews| 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_VIEWS_EXTENSIONS_EXTENSION_DIALOG_OBSERVER_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_EXTENSIONS_EXTENSION_DIALOG_OBSERVER_H_ |
| 6 #define CHROME_BROWSER_UI_VIEWS_EXTENSIONS_EXTENSION_DIALOG_OBSERVER_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_EXTENSIONS_EXTENSION_DIALOG_OBSERVER_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 class ExtensionDialog; | 9 class ExtensionDialog; |
| 10 | 10 |
| 11 // Observer to ExtensionDialog events. | 11 // Observer to ExtensionDialog events. |
| 12 class ExtensionDialogObserver { | 12 class ExtensionDialogObserver { |
| 13 public: | 13 public: |
| 14 ExtensionDialogObserver(); | 14 ExtensionDialogObserver(); |
| 15 virtual ~ExtensionDialogObserver(); | 15 virtual ~ExtensionDialogObserver(); |
| 16 | 16 |
| 17 // Called when the ExtensionDialog is closing. Note that it | 17 // Called when the ExtensionDialog is closing. Note that it |
| 18 // is ref-counted, and thus will be released shortly after | 18 // is ref-counted, and thus will be released shortly after |
| 19 // making this delegate call. | 19 // making this delegate call. |
| 20 virtual void ExtensionDialogClosing(ExtensionDialog* popup) = 0; | 20 virtual void ExtensionDialogClosing(ExtensionDialog* popup) = 0; |
| 21 // Called in case the extension hosted by the extension dialog is | |
| 22 // terminated. If not intentional, this would be typically happen | |
|
Peter Kasting
2012/02/10 21:09:27
Nit: How about just:
// terminated, e.g. if the
rkc
2012/02/10 21:33:11
Done.
| |
| 23 // in case the extension crashes. | |
| 24 virtual void ExtensionDialogTerminated(ExtensionDialog* popup) = 0; | |
| 21 }; | 25 }; |
| 22 | 26 |
| 23 #endif // CHROME_BROWSER_UI_VIEWS_EXTENSIONS_EXTENSION_DIALOG_OBSERVER_H_ | 27 #endif // CHROME_BROWSER_UI_VIEWS_EXTENSIONS_EXTENSION_DIALOG_OBSERVER_H_ |
| OLD | NEW |