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_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_GUEST_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_GUEST_H_ |
6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_GUEST_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_GUEST_H_ |
7 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
(...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
198 bool ForwardGestureEventToRenderer(ui::GestureEvent* gesture); | 198 bool ForwardGestureEventToRenderer(ui::GestureEvent* gesture); |
199 | 199 |
200 // Process all of the given gestures (passes them on to renderer) | 200 // Process all of the given gestures (passes them on to renderer) |
201 void ProcessGestures(ui::GestureRecognizer::Gestures* gestures); | 201 void ProcessGestures(ui::GestureRecognizer::Gestures* gestures); |
202 | 202 |
203 // The model object. | 203 // The model object. |
204 RenderWidgetHostImpl* host_; | 204 RenderWidgetHostImpl* host_; |
205 | 205 |
206 BrowserPluginGuest *guest_; | 206 BrowserPluginGuest *guest_; |
207 bool is_hidden_; | 207 bool is_hidden_; |
| 208 gfx::Size size_; |
208 // The platform view for this RenderWidgetHostView. | 209 // The platform view for this RenderWidgetHostView. |
209 // RenderWidgetHostViewGuest mostly only cares about stuff related to | 210 // RenderWidgetHostViewGuest mostly only cares about stuff related to |
210 // compositing, the rest are directly forwared to this |platform_view_|. | 211 // compositing, the rest are directly forwared to this |platform_view_|. |
211 RenderWidgetHostViewPort* platform_view_; | 212 RenderWidgetHostViewPort* platform_view_; |
212 #if defined(OS_WIN) || defined(USE_AURA) | 213 #if defined(OS_WIN) || defined(USE_AURA) |
213 scoped_ptr<ui::GestureRecognizer> gesture_recognizer_; | 214 scoped_ptr<ui::GestureRecognizer> gesture_recognizer_; |
214 #endif // defined(OS_WIN) || defined(USE_AURA) | 215 #endif // defined(OS_WIN) || defined(USE_AURA) |
215 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewGuest); | 216 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewGuest); |
216 }; | 217 }; |
217 | 218 |
218 } // namespace content | 219 } // namespace content |
219 | 220 |
220 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_GUEST_H_ | 221 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_GUEST_H_ |
OLD | NEW |