Hook the WebThreadImplForMessageLoop up to post taks through the blink
[chromium-blink-merge.git] / components / app_modal_dialogs / javascript_native_dialog_factory.h
blob513c11993332e8968bd768031eb7345a1da02518
1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef COMPONENTS_APP_MODAL_DIALOGS_JAVASCRIPT_NATIVE_DIALOG_FACTORY_H_
6 #define COMPONENTS_APP_MODAL_DIALOGS_JAVASCRIPT_NATIVE_DIALOG_FACTORY_H_
9 #include "ui/gfx/native_widget_types.h"
11 class JavaScriptAppModalDialog;
12 class NativeAppModalDialog;
14 class JavaScriptNativeDialogFactory {
15 public:
16 virtual ~JavaScriptNativeDialogFactory() {}
18 // Creates an native modal dialog for a JavaScript dialog;
19 virtual NativeAppModalDialog* CreateNativeJavaScriptDialog(
20 JavaScriptAppModalDialog* dialog,
21 gfx::NativeWindow parent_window) = 0;
24 #endif // COMPONENTS_APP_MODAL_DIALOGS_JAVASCRIPT_NATIVE_DIALOG_FACTORY_H_