Chromium Code Reviews| Index: content/browser/frame_host/render_widget_host_view_guest.h |
| diff --git a/content/browser/renderer_host/render_widget_host_view_guest.h b/content/browser/frame_host/render_widget_host_view_guest.h |
| similarity index 84% |
| rename from content/browser/renderer_host/render_widget_host_view_guest.h |
| rename to content/browser/frame_host/render_widget_host_view_guest.h |
| index 1e9bf47651a5fbfca6b38b2485b0a9c198d6f7c0..2eadb7789652c5b86c7144fffe94e0e201736d0d 100644 |
| --- a/content/browser/renderer_host/render_widget_host_view_guest.h |
| +++ b/content/browser/frame_host/render_widget_host_view_guest.h |
| @@ -8,7 +8,7 @@ |
| #include <vector> |
| #include "base/memory/scoped_ptr.h" |
| -#include "content/browser/renderer_host/render_widget_host_view_base.h" |
| +#include "content/browser/frame_host/render_widget_host_view_child_frame.h" |
| #include "content/common/content_export.h" |
| #include "ui/events/event.h" |
| #include "ui/events/gestures/gesture_recognizer.h" |
| @@ -32,12 +32,16 @@ struct NativeWebKeyboardEvent; |
| // See comments in render_widget_host_view.h about this class and its members. |
| // This version is for the webview plugin which handles a lot of the |
| // functionality in a diffent place and isn't platform specific. |
| +// The webview plugin is currently a special case for out-of-process rendered |
|
nasko
2013/12/20 17:21:05
nit: It should be either <webview> or BrowserPlugi
awong
2013/12/20 23:53:38
Done.
|
| +// content, and therefore inherits RenderWidgetHostViewChildFrame. Eventually |
| +// all RenderWidgetHostViewGuest code will be subsumed by |
| +// RenderWidgetHostViewChildFrame and this class will be removed. |
| // |
| // Some elements that are platform specific will be deal with by delegating |
| // the relevant calls to the platform view. |
| // ----------------------------------------------------------------------------- |
| class CONTENT_EXPORT RenderWidgetHostViewGuest |
| - : public RenderWidgetHostViewBase, |
| + : public RenderWidgetHostViewChildFrame, |
| public ui::GestureConsumer, |
| public ui::GestureEventHelper { |
| public: |
| @@ -49,22 +53,14 @@ class CONTENT_EXPORT RenderWidgetHostViewGuest |
| // RenderWidgetHostView implementation. |
| virtual bool OnMessageReceived(const IPC::Message& msg) OVERRIDE; |
| virtual void InitAsChild(gfx::NativeView parent_view) OVERRIDE; |
| - virtual RenderWidgetHost* GetRenderWidgetHost() const OVERRIDE; |
| virtual void SetSize(const gfx::Size& size) OVERRIDE; |
| virtual void SetBounds(const gfx::Rect& rect) OVERRIDE; |
| virtual gfx::NativeView GetNativeView() const OVERRIDE; |
| virtual gfx::NativeViewId GetNativeViewId() const OVERRIDE; |
| virtual gfx::NativeViewAccessible GetNativeViewAccessible() OVERRIDE; |
| - virtual bool HasFocus() const OVERRIDE; |
| - virtual bool IsSurfaceAvailableForCopy() const OVERRIDE; |
| - virtual void Show() OVERRIDE; |
| - virtual void Hide() OVERRIDE; |
| - virtual bool IsShowing() OVERRIDE; |
| virtual gfx::Rect GetViewBounds() const OVERRIDE; |
| virtual void SetBackground(const SkBitmap& background) OVERRIDE; |
| -#if defined(OS_WIN) && !defined(USE_AURA) |
| - virtual void SetClickthroughRegion(SkRegion* region) OVERRIDE; |
| -#endif |
| + virtual gfx::Size GetPhysicalBackingSize() const OVERRIDE; |
| // RenderWidgetHostViewPort implementation. |
| virtual void InitAsPopup(RenderWidgetHostView* parent_host_view, |
| @@ -76,8 +72,6 @@ class CONTENT_EXPORT RenderWidgetHostViewGuest |
| virtual void MovePluginWindows( |
| const gfx::Vector2d& scroll_offset, |
| const std::vector<WebPluginGeometry>& moves) OVERRIDE; |
| - virtual void Focus() OVERRIDE; |
| - virtual void Blur() OVERRIDE; |
| virtual void UpdateCursor(const WebCursor& cursor) OVERRIDE; |
| virtual void SetIsLoading(bool is_loading) OVERRIDE; |
| virtual void TextInputTypeChanged(ui::TextInputType type, |
| @@ -97,27 +91,16 @@ class CONTENT_EXPORT RenderWidgetHostViewGuest |
| virtual void RenderProcessGone(base::TerminationStatus status, |
| int error_code) OVERRIDE; |
| virtual void Destroy() OVERRIDE; |
| - virtual void WillDestroyRenderWidget(RenderWidgetHost* rwh) {} |
| virtual void SetTooltipText(const base::string16& tooltip_text) OVERRIDE; |
| virtual void SelectionChanged(const base::string16& text, |
| size_t offset, |
| const gfx::Range& range) OVERRIDE; |
| virtual void SelectionBoundsChanged( |
| const ViewHostMsg_SelectionBounds_Params& params) OVERRIDE; |
| - virtual void ScrollOffsetChanged() OVERRIDE; |
| - virtual BackingStore* AllocBackingStore(const gfx::Size& size) OVERRIDE; |
| virtual void CopyFromCompositingSurface( |
| const gfx::Rect& src_subrect, |
| const gfx::Size& dst_size, |
| const base::Callback<void(bool, const SkBitmap&)>& callback) OVERRIDE; |
| - virtual void CopyFromCompositingSurfaceToVideoFrame( |
| - const gfx::Rect& src_subrect, |
| - const scoped_refptr<media::VideoFrame>& target, |
| - const base::Callback<void(bool)>& callback) OVERRIDE; |
| - virtual bool CanCopyToVideoFrame() const OVERRIDE; |
| - virtual void OnAcceleratedCompositingStateChange() OVERRIDE; |
| - virtual void AcceleratedSurfaceInitialized(int host_id, |
| - int route_id) OVERRIDE; |
| virtual void AcceleratedSurfaceBuffersSwapped( |
| const GpuHostMsg_AcceleratedSurfaceBuffersSwapped_Params& params, |
| int gpu_host_id) OVERRIDE; |
| @@ -127,15 +110,10 @@ class CONTENT_EXPORT RenderWidgetHostViewGuest |
| virtual void OnSwapCompositorFrame( |
| uint32 output_surface_id, |
| scoped_ptr<cc::CompositorFrame> frame) OVERRIDE; |
| - virtual void AcceleratedSurfaceSuspend() OVERRIDE; |
| - virtual void AcceleratedSurfaceRelease() OVERRIDE; |
| - virtual bool HasAcceleratedSurface(const gfx::Size& desired_size) OVERRIDE; |
| virtual void SetHasHorizontalScrollbar( |
| bool has_horizontal_scrollbar) OVERRIDE; |
| virtual void SetScrollOffsetPinning( |
| bool is_pinned_to_left, bool is_pinned_to_right) OVERRIDE; |
| - virtual gfx::Rect GetBoundsInRootWindow() OVERRIDE; |
| - virtual gfx::GLSurfaceHandle GetCompositingSurface() OVERRIDE; |
| #if defined(OS_WIN) || defined(USE_AURA) |
| virtual void ProcessAckedTouchEvent( |
| const TouchEventWithLatencyInfo& touch, |
| @@ -205,9 +183,6 @@ class CONTENT_EXPORT RenderWidgetHostViewGuest |
| // Process all of the given gestures (passes them on to renderer) |
| void ProcessGestures(ui::GestureRecognizer::Gestures* gestures); |
| - // The model object. |
| - RenderWidgetHostImpl* host_; |
| - |
| BrowserPluginGuest *guest_; |
| gfx::Size size_; |
| // The platform view for this RenderWidgetHostView. |