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 CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_GTK_H_ | 5 #ifndef CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_GTK_H_ |
6 #define CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_GTK_H_ | 6 #define CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_GTK_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <gtk/gtk.h> | 9 #include <gtk/gtk.h> |
10 | 10 |
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
132 scoped_ptr<WebDragDestGtk> drag_dest_; | 132 scoped_ptr<WebDragDestGtk> drag_dest_; |
133 | 133 |
134 // Object responsible for handling drags from the page for us. | 134 // Object responsible for handling drags from the page for us. |
135 scoped_ptr<WebDragSourceGtk> drag_source_; | 135 scoped_ptr<WebDragSourceGtk> drag_source_; |
136 | 136 |
137 // Our optional views wrapper. If non-NULL, we return this widget as our | 137 // Our optional views wrapper. If non-NULL, we return this widget as our |
138 // GetNativeView() and insert |expanded_| as its child in the GtkWidget | 138 // GetNativeView() and insert |expanded_| as its child in the GtkWidget |
139 // hierarchy. | 139 // hierarchy. |
140 scoped_ptr<WebContentsViewDelegate> delegate_; | 140 scoped_ptr<WebContentsViewDelegate> delegate_; |
141 | 141 |
142 // The size we want the tab contents view to be. We keep this in a separate | 142 // The size we want the view to be. We keep this in a separate variable |
143 // variable because resizing in GTK+ is async. | 143 // because resizing in GTK+ is async. |
144 gfx::Size requested_size_; | 144 gfx::Size requested_size_; |
145 | 145 |
146 DISALLOW_COPY_AND_ASSIGN(WebContentsViewGtk); | 146 DISALLOW_COPY_AND_ASSIGN(WebContentsViewGtk); |
147 }; | 147 }; |
148 | 148 |
149 } // namespace content | 149 } // namespace content |
150 | 150 |
151 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_GTK_H_ | 151 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_GTK_H_ |
OLD | NEW |