OLD | NEW |
1 // Copyright (c) 2011 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_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" | |
15 #include "content/browser/tab_contents/tab_contents_view.h" | 14 #include "content/browser/tab_contents/tab_contents_view.h" |
| 15 #include "content/browser/tab_contents/tab_contents_view_helper.h" |
16 #include "ui/base/gtk/focus_store_gtk.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 |
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
121 GtkWidget*, GtkRequisition*); | 121 GtkWidget*, GtkRequisition*); |
122 | 122 |
123 // Used to propagate the size change of |expanded_| to our RWHV to resize the | 123 // Used to propagate the size change of |expanded_| to our RWHV to resize the |
124 // renderer content. | 124 // renderer content. |
125 CHROMEGTK_CALLBACK_1(TabContentsViewGtk, void, OnSizeAllocate, | 125 CHROMEGTK_CALLBACK_1(TabContentsViewGtk, void, OnSizeAllocate, |
126 GtkAllocation*); | 126 GtkAllocation*); |
127 | 127 |
128 // The TabContents whose contents we display. | 128 // The TabContents whose contents we display. |
129 TabContents* tab_contents_; | 129 TabContents* tab_contents_; |
130 | 130 |
131 // Common implementations of some RenderViewHostDelegate::View methods. | 131 // Common implementations of some TabContentsView methods. |
132 RenderViewHostDelegateViewHelper delegate_view_helper_; | 132 TabContentsViewHelper tab_contents_view_helper_; |
133 | 133 |
134 // This container holds the tab's web page views. It is a GtkExpandedContainer | 134 // This container holds the tab's web page views. It is a GtkExpandedContainer |
135 // so that we can control the size of the web pages. | 135 // so that we can control the size of the web pages. |
136 ui::OwnedWidgetGtk expanded_; | 136 ui::OwnedWidgetGtk expanded_; |
137 | 137 |
138 ui::FocusStoreGtk focus_store_; | 138 ui::FocusStoreGtk focus_store_; |
139 | 139 |
140 // The helper object that handles drag destination related interactions with | 140 // The helper object that handles drag destination related interactions with |
141 // GTK. | 141 // GTK. |
142 scoped_ptr<content::WebDragDestGtk> drag_dest_; | 142 scoped_ptr<content::WebDragDestGtk> drag_dest_; |
(...skipping 11 matching lines...) Expand all Loading... |
154 gfx::Size requested_size_; | 154 gfx::Size requested_size_; |
155 | 155 |
156 // The overlaid view. Owned by the caller of |InstallOverlayView|; this is a | 156 // The overlaid view. Owned by the caller of |InstallOverlayView|; this is a |
157 // weak reference. | 157 // weak reference. |
158 GtkWidget* overlaid_view_; | 158 GtkWidget* overlaid_view_; |
159 | 159 |
160 DISALLOW_COPY_AND_ASSIGN(TabContentsViewGtk); | 160 DISALLOW_COPY_AND_ASSIGN(TabContentsViewGtk); |
161 }; | 161 }; |
162 | 162 |
163 #endif // CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_VIEW_GTK_H_ | 163 #endif // CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_VIEW_GTK_H_ |
OLD | NEW |