| // Copyright 2014 The Chromium Authors |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| #ifndef COMPONENTS_JAVASCRIPT_DIALOGS_EXTENSIONS_CLIENT_H_ |
| #define COMPONENTS_JAVASCRIPT_DIALOGS_EXTENSIONS_CLIENT_H_ |
| namespace javascript_dialogs { |
| // A client interface to access and control extensions/apps |
| // that opened a JavaScript dialog. |
| virtual ~ExtensionsClient() = default; |
| // Called when the extension associated with |web_contents| opened |
| virtual void OnDialogOpened(content::WebContents* web_contents) = 0; |
| // Called when a dialog created by the extension associated with |
| // |web_contents| is closed. |
| virtual void OnDialogClosed(content::WebContents* web_contents) = 0; |
| } // namespace javascript_dialogs |
| #endif // COMPONENTS_JAVASCRIPT_DIALOGS_EXTENSIONS_CLIENT_H_ |