Disable TabDragController tests that fail with a real compositor.
[chromium-blink-merge.git] / chrome / browser / ui / gtk / javascript_app_modal_dialog_gtk.h
blob0f49a310ae893d5cc76dcb44d46a65da3397e1f7
1 // Copyright (c) 2012 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_GTK_JAVASCRIPT_APP_MODAL_DIALOG_GTK_H_
6 #define CHROME_BROWSER_UI_GTK_JAVASCRIPT_APP_MODAL_DIALOG_GTK_H_
8 #include "base/basictypes.h"
9 #include "base/compiler_specific.h"
10 #include "base/memory/scoped_ptr.h"
11 #include "chrome/browser/ui/app_modal_dialogs/native_app_modal_dialog.h"
12 #include "ui/base/gtk/gtk_signal.h"
13 #include "ui/gfx/native_widget_types.h"
15 typedef struct _GtkWidget GtkWidget;
17 class JavaScriptAppModalDialog;
19 class JavaScriptAppModalDialogGtk : public NativeAppModalDialog {
20 public:
21 JavaScriptAppModalDialogGtk(JavaScriptAppModalDialog* dialog,
22 gfx::NativeWindow parent_window);
23 virtual ~JavaScriptAppModalDialogGtk();
25 // Overridden from NativeAppModalDialog:
26 virtual int GetAppModalDialogButtons() const OVERRIDE;
27 virtual void ShowAppModalDialog() OVERRIDE;
28 virtual void ActivateAppModalDialog() OVERRIDE;
29 virtual void CloseAppModalDialog() OVERRIDE;
30 virtual void AcceptAppModalDialog() OVERRIDE;
31 virtual void CancelAppModalDialog() OVERRIDE;
33 private:
34 CHROMEGTK_CALLBACK_1(JavaScriptAppModalDialogGtk, void, OnResponse, int);
36 scoped_ptr<JavaScriptAppModalDialog> dialog_;
37 GtkWidget* gtk_dialog_;
39 DISALLOW_COPY_AND_ASSIGN(JavaScriptAppModalDialogGtk);
42 #endif // CHROME_BROWSER_UI_GTK_JAVASCRIPT_APP_MODAL_DIALOG_GTK_H_