OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_INTENT_PICKER_GTK_H_ | 5 #ifndef CHROME_BROWSER_UI_GTK_WEB_INTENT_PICKER_GTK_H_ |
6 #define CHROME_BROWSER_UI_GTK_WEB_INTENT_PICKER_GTK_H_ | 6 #define CHROME_BROWSER_UI_GTK_WEB_INTENT_PICKER_GTK_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
| 9 #include <gtk/gtk.h> |
| 10 |
9 #include <vector> | 11 #include <vector> |
10 | 12 |
11 #include <gtk/gtk.h> | |
12 | |
13 #include "base/basictypes.h" | 13 #include "base/basictypes.h" |
14 #include "base/compiler_specific.h" | 14 #include "base/compiler_specific.h" |
15 #include "base/memory/scoped_ptr.h" | 15 #include "base/memory/scoped_ptr.h" |
16 #include "chrome/browser/ui/gtk/bubble/bubble_gtk.h" | 16 #include "chrome/browser/ui/gtk/bubble/bubble_gtk.h" |
17 #include "chrome/browser/ui/intents/web_intent_picker.h" | 17 #include "chrome/browser/ui/intents/web_intent_picker.h" |
18 #include "content/browser/tab_contents/tab_contents_delegate.h" | 18 #include "content/browser/tab_contents/tab_contents_delegate.h" |
19 #include "ui/base/gtk/gtk_signal.h" | 19 #include "ui/base/gtk/gtk_signal.h" |
20 #include "ui/base/gtk/owned_widget_gtk.h" | 20 #include "ui/base/gtk/owned_widget_gtk.h" |
21 | 21 |
22 class Browser; | 22 class Browser; |
23 class CustomDrawButton; | 23 class CustomDrawButton; |
24 class GURL; | 24 class GURL; |
25 class TabContents; | 25 class TabContents; |
26 class TabContentsContainerGtk; | 26 class TabContentsContainerGtk; |
27 class TabContentsWrapper; | 27 class TabContentsWrapper; |
28 class WebIntentController; | |
29 class WebIntentPickerDelegate; | 28 class WebIntentPickerDelegate; |
30 | 29 |
31 // Gtk implementation of WebIntentPicker. | 30 // Gtk implementation of WebIntentPicker. |
32 class WebIntentPickerGtk : public WebIntentPicker, | 31 class WebIntentPickerGtk : public WebIntentPicker, |
33 public BubbleDelegateGtk { | 32 public BubbleDelegateGtk { |
34 public: | 33 public: |
35 WebIntentPickerGtk(Browser* browser, | 34 WebIntentPickerGtk(Browser* browser, |
36 TabContentsWrapper* tab_contents, | 35 TabContentsWrapper* tab_contents, |
37 WebIntentPickerDelegate* delegate); | 36 WebIntentPickerDelegate* delegate); |
38 virtual ~WebIntentPickerGtk(); | 37 virtual ~WebIntentPickerGtk(); |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
105 // Container for the HTML in the inline disposition case. | 104 // Container for the HTML in the inline disposition case. |
106 scoped_ptr<TabContentsWrapper> inline_disposition_tab_contents_; | 105 scoped_ptr<TabContentsWrapper> inline_disposition_tab_contents_; |
107 | 106 |
108 // Widget for displaying the HTML in the inline disposition case. | 107 // Widget for displaying the HTML in the inline disposition case. |
109 scoped_ptr<TabContentsContainerGtk> tab_contents_container_; | 108 scoped_ptr<TabContentsContainerGtk> tab_contents_container_; |
110 | 109 |
111 DISALLOW_COPY_AND_ASSIGN(WebIntentPickerGtk); | 110 DISALLOW_COPY_AND_ASSIGN(WebIntentPickerGtk); |
112 }; | 111 }; |
113 | 112 |
114 #endif // CHROME_BROWSER_UI_GTK_WEB_INTENT_PICKER_GTK_H_ | 113 #endif // CHROME_BROWSER_UI_GTK_WEB_INTENT_PICKER_GTK_H_ |
OLD | NEW |