| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CHROME_BROWSER_UI_GTK_WEB_DIALOG_GTK_H_ | 5 #ifndef CHROME_BROWSER_UI_GTK_WEB_DIALOG_GTK_H_ |
| 6 #define CHROME_BROWSER_UI_GTK_WEB_DIALOG_GTK_H_ | 6 #define CHROME_BROWSER_UI_GTK_WEB_DIALOG_GTK_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| 11 | 11 |
| 12 #include "base/compiler_specific.h" | 12 #include "base/compiler_specific.h" |
| 13 #include "base/memory/scoped_ptr.h" | 13 #include "base/memory/scoped_ptr.h" |
| 14 #include "chrome/browser/ui/webui/web_dialog_web_contents_delegate.h" | 14 #include "chrome/browser/ui/webui/web_dialog_web_contents_delegate.h" |
| 15 #include "ui/base/gtk/gtk_signal.h" | 15 #include "ui/base/gtk/gtk_signal.h" |
| 16 #include "ui/gfx/native_widget_types.h" | 16 #include "ui/gfx/native_widget_types.h" |
| 17 #include "ui/gfx/size.h" | 17 #include "ui/gfx/size.h" |
| 18 #include "ui/web_dialogs/web_dialog_delegate.h" | 18 #include "ui/web_dialogs/web_dialog_delegate.h" |
| 19 | 19 |
| 20 typedef struct _GtkWidget GtkWidget; | 20 typedef struct _GtkWidget GtkWidget; |
| 21 | 21 |
| 22 class Browser; | 22 class Browser; |
| 23 class Profile; | 23 class Profile; |
| 24 class TabContentsContainerGtk; | 24 class TabContentsContainerGtk; |
| 25 class TabContentsWrapper; | 25 class TabContents; |
| 26 typedef TabContents TabContentsWrapper; |
| 26 class WebDialogController; | 27 class WebDialogController; |
| 27 | 28 |
| 28 class WebDialogGtk : public WebDialogWebContentsDelegate, | 29 class WebDialogGtk : public WebDialogWebContentsDelegate, |
| 29 public ui::WebDialogDelegate { | 30 public ui::WebDialogDelegate { |
| 30 public: | 31 public: |
| 31 WebDialogGtk(Profile* profile, | 32 WebDialogGtk(Profile* profile, |
| 32 Browser* browser, | 33 Browser* browser, |
| 33 ui::WebDialogDelegate* delegate, | 34 ui::WebDialogDelegate* delegate, |
| 34 gfx::NativeWindow parent_window); | 35 gfx::NativeWindow parent_window); |
| 35 virtual ~WebDialogGtk(); | 36 virtual ~WebDialogGtk(); |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 79 GtkWidget* dialog_; | 80 GtkWidget* dialog_; |
| 80 | 81 |
| 81 scoped_ptr<WebDialogController> dialog_controller_; | 82 scoped_ptr<WebDialogController> dialog_controller_; |
| 82 scoped_ptr<TabContentsWrapper> tab_; | 83 scoped_ptr<TabContentsWrapper> tab_; |
| 83 scoped_ptr<TabContentsContainerGtk> tab_contents_container_; | 84 scoped_ptr<TabContentsContainerGtk> tab_contents_container_; |
| 84 | 85 |
| 85 DISALLOW_COPY_AND_ASSIGN(WebDialogGtk); | 86 DISALLOW_COPY_AND_ASSIGN(WebDialogGtk); |
| 86 }; | 87 }; |
| 87 | 88 |
| 88 #endif // CHROME_BROWSER_UI_GTK_WEB_DIALOG_GTK_H_ | 89 #endif // CHROME_BROWSER_UI_GTK_WEB_DIALOG_GTK_H_ |
| OLD | NEW |