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_TAB_CONTENTS_TAB_CONTENTS_VIEW_GTK_H_ | 5 #ifndef CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_VIEW_GTK_H_ |
6 #define CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_VIEW_GTK_H_ | 6 #define CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_VIEW_GTK_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <gtk/gtk.h> | 9 #include <gtk/gtk.h> |
10 | 10 |
11 #include <vector> | 11 #include <vector> |
12 | 12 |
13 #include "base/memory/scoped_ptr.h" | 13 #include "base/memory/scoped_ptr.h" |
14 #include "chrome/browser/tab_contents/render_view_host_delegate_helper.h" | 14 #include "chrome/browser/tab_contents/render_view_host_delegate_helper.h" |
15 #include "chrome/browser/ui/gtk/focus_store_gtk.h" | |
16 #include "content/browser/tab_contents/tab_contents_view.h" | 15 #include "content/browser/tab_contents/tab_contents_view.h" |
| 16 #include "ui/base/gtk/focus_store_gtk.h" |
17 #include "ui/base/gtk/gtk_signal.h" | 17 #include "ui/base/gtk/gtk_signal.h" |
18 #include "ui/base/gtk/owned_widget_gtk.h" | 18 #include "ui/base/gtk/owned_widget_gtk.h" |
19 | 19 |
20 namespace content { | 20 namespace content { |
21 class WebDragDestDelegate; | 21 class WebDragDestDelegate; |
22 class WebDragDestGtk; | 22 class WebDragDestGtk; |
23 class WebDragSourceGtk; | 23 class WebDragSourceGtk; |
24 } | 24 } |
25 | 25 |
26 class TabContentsViewWrapperGtk; | 26 class TabContentsViewWrapperGtk; |
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
127 // The TabContents whose contents we display. | 127 // The TabContents whose contents we display. |
128 TabContents* tab_contents_; | 128 TabContents* tab_contents_; |
129 | 129 |
130 // Common implementations of some RenderViewHostDelegate::View methods. | 130 // Common implementations of some RenderViewHostDelegate::View methods. |
131 RenderViewHostDelegateViewHelper delegate_view_helper_; | 131 RenderViewHostDelegateViewHelper delegate_view_helper_; |
132 | 132 |
133 // This container holds the tab's web page views. It is a GtkExpandedContainer | 133 // This container holds the tab's web page views. It is a GtkExpandedContainer |
134 // so that we can control the size of the web pages. | 134 // so that we can control the size of the web pages. |
135 ui::OwnedWidgetGtk expanded_; | 135 ui::OwnedWidgetGtk expanded_; |
136 | 136 |
137 FocusStoreGtk focus_store_; | 137 ui::FocusStoreGtk focus_store_; |
138 | 138 |
139 // The helper object that handles drag destination related interactions with | 139 // The helper object that handles drag destination related interactions with |
140 // GTK. | 140 // GTK. |
141 scoped_ptr<content::WebDragDestGtk> drag_dest_; | 141 scoped_ptr<content::WebDragDestGtk> drag_dest_; |
142 | 142 |
143 // Object responsible for handling drags from the page for us. | 143 // Object responsible for handling drags from the page for us. |
144 scoped_ptr<content::WebDragSourceGtk> drag_source_; | 144 scoped_ptr<content::WebDragSourceGtk> drag_source_; |
145 | 145 |
146 // Our optional views wrapper. If non-NULL, we return this widget as our | 146 // Our optional views wrapper. If non-NULL, we return this widget as our |
147 // GetNativeView() and insert |expanded_| as its child in the GtkWidget | 147 // GetNativeView() and insert |expanded_| as its child in the GtkWidget |
148 // hierarchy. | 148 // hierarchy. |
149 scoped_ptr<TabContentsViewWrapperGtk> view_wrapper_; | 149 scoped_ptr<TabContentsViewWrapperGtk> view_wrapper_; |
150 | 150 |
151 // The size we want the tab contents view to be. We keep this in a separate | 151 // The size we want the tab contents view to be. We keep this in a separate |
152 // variable because resizing in GTK+ is async. | 152 // variable because resizing in GTK+ is async. |
153 gfx::Size requested_size_; | 153 gfx::Size requested_size_; |
154 | 154 |
155 // The overlaid view. Owned by the caller of |InstallOverlayView|; this is a | 155 // The overlaid view. Owned by the caller of |InstallOverlayView|; this is a |
156 // weak reference. | 156 // weak reference. |
157 GtkWidget* overlaid_view_; | 157 GtkWidget* overlaid_view_; |
158 | 158 |
159 DISALLOW_COPY_AND_ASSIGN(TabContentsViewGtk); | 159 DISALLOW_COPY_AND_ASSIGN(TabContentsViewGtk); |
160 }; | 160 }; |
161 | 161 |
162 #endif // CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_VIEW_GTK_H_ | 162 #endif // CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_VIEW_GTK_H_ |
OLD | NEW |