Revert of Add button to add new FSP services to Files app. (patchset #8 id:140001...
[chromium-blink-merge.git] / chrome / browser / ui / views / javascript_app_modal_dialog_views_x11.h
blob4b285838c5237af133fec391bddbb8ac238b513a
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 CHROME_BROWSER_UI_VIEWS_JAVASCRIPT_APP_MODAL_DIALOG_VIEWS_X11_H_
6 #define CHROME_BROWSER_UI_VIEWS_JAVASCRIPT_APP_MODAL_DIALOG_VIEWS_X11_H_
8 #include "base/memory/scoped_ptr.h"
9 #include "components/app_modal/views/javascript_app_modal_dialog_views.h"
11 class AppModalDialogHelper;
12 class JavascriptAppModalEventBlockerX11;
14 // JavaScriptAppModalDialog implmentation for linux desktop.
15 class JavaScriptAppModalDialogViewsX11
16 : public app_modal::JavaScriptAppModalDialogViews {
17 public:
18 explicit JavaScriptAppModalDialogViewsX11(
19 app_modal::JavaScriptAppModalDialog* parent);
20 ~JavaScriptAppModalDialogViewsX11() override;
22 // JavaScriptAppModalDialogViews:
23 void ShowAppModalDialog() override;
25 // views::DialogDelegate:
26 void WindowClosing() override;
28 private:
29 // Blocks events to other browser windows while the dialog is open.
30 scoped_ptr<JavascriptAppModalEventBlockerX11> event_blocker_x11_;
32 scoped_ptr<AppModalDialogHelper> helper_;
34 DISALLOW_COPY_AND_ASSIGN(JavaScriptAppModalDialogViewsX11);
37 #endif // CHROME_BROWSER_UI_VIEWS_JAVASCRIPT_APP_MODAL_DIALOG_VIEWS_X11_H_