Chromium Code Reviews| Index: components/app_modal_dialogs/javascript_native_dialog_factory.h |
| diff --git a/components/app_modal_dialogs/javascript_native_dialog_factory.h b/components/app_modal_dialogs/javascript_native_dialog_factory.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..3944a6186fc09a0599b9eddfd02ec1b656556864 |
| --- /dev/null |
| +++ b/components/app_modal_dialogs/javascript_native_dialog_factory.h |
| @@ -0,0 +1,27 @@ |
| +// Copyright 2014 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef COMPONENTS_APP_MODAL_DIALOGS_JAVASCRIPT_NATIVE_DIALOG_FACTORY_H_ |
| +#define COMPONENTS_APP_MODAL_DIALOGS_JAVASCRIPT_NATIVE_DIALOG_FACTORY_H_ |
| + |
| +#include <string> |
|
msw
2014/11/05 03:53:56
Remove this, it's not used.
oshima
2014/11/05 21:42:19
Done.
|
| + |
| +#include "base/memory/scoped_ptr.h" |
|
msw
2014/11/05 03:53:56
Remove this, it's not used.
oshima
2014/11/05 21:42:19
Done.
|
| +#include "ui/gfx/native_widget_types.h" |
| + |
| +class GURL; |
|
msw
2014/11/05 03:53:56
Remove this, it's not used.
oshima
2014/11/05 21:42:19
Done.
|
| +class JavaScriptAppModalDialog; |
| +class NativeAppModalDialog; |
| + |
| +class JavaScriptNativeDialogFactory { |
| + public: |
| + virtual ~JavaScriptNativeDialogFactory() {} |
| + |
| + // Creates an native modal dialog for a JavaScript dialog; |
| + virtual NativeAppModalDialog* CreateNativeJavaScriptDialog( |
| + JavaScriptAppModalDialog* dialog, |
| + gfx::NativeWindow parent_window) = 0; |
| +}; |
| + |
| +#endif // COMPONENTS_APP_MODAL_DIALOGS_JAVASCRIPT_NATIVE_DIALOG_FACTORY_H_ |