X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=src%2Fcontent%2Fbrowser%2Frenderer_host%2Frender_widget_host_view_android.h;h=25d0f0d9c62ce5306aa3199d881093bc06a933b0;hb=ff3e2503a20db9193d323c1d19c38c68004dec4a;hp=091f2a9e3c40df2a29bb947b9d92e0fcdd107f98;hpb=7338fba38ba696536d1cc9d389afd716a6ab2fe6;p=platform%2Fframework%2Fweb%2Fcrosswalk.git diff --git a/src/content/browser/renderer_host/render_widget_host_view_android.h b/src/content/browser/renderer_host/render_widget_host_view_android.h index 091f2a9..25d0f0d 100644 --- a/src/content/browser/renderer_host/render_widget_host_view_android.h +++ b/src/content/browser/renderer_host/render_widget_host_view_android.h @@ -159,12 +159,11 @@ class RenderWidgetHostViewAndroid virtual InputEventAckState FilterInputEvent( const blink::WebInputEvent& input_event) OVERRIDE; virtual void OnSetNeedsFlushInput() OVERRIDE; - virtual void GestureEventAck(int gesture_event_type, + virtual void GestureEventAck(const blink::WebGestureEvent& event, InputEventAckState ack_result) OVERRIDE; virtual void CreateBrowserAccessibilityManagerIfNeeded() OVERRIDE; virtual bool LockMouse() OVERRIDE; virtual void UnlockMouse() OVERRIDE; - virtual void HasTouchEventHandlers(bool need_touch_events) OVERRIDE; virtual void OnSwapCompositorFrame( uint32 output_surface_id, scoped_ptr frame) OVERRIDE; @@ -225,7 +224,10 @@ class RenderWidgetHostViewAndroid void WasResized(); - blink::WebGLId GetScaledContentTexture(float scale, gfx::Size* out_size); + void GetScaledContentBitmap( + float scale, + gfx::Size* out_size, + const base::Callback& result_callback); bool PopulateBitmapWithContents(jobject jbitmap); bool HasValidFrame() const; @@ -258,6 +260,7 @@ class RenderWidgetHostViewAndroid void SwapDelegatedFrame(uint32 output_surface_id, scoped_ptr frame_data); void SendDelegatedFrameAck(uint32 output_surface_id); + void SendReturnedDelegatedResources(uint32 output_surface_id); void UpdateContentViewCoreFrameMetadata( const cc::CompositorFrameMetadata& frame_metadata); @@ -280,6 +283,7 @@ class RenderWidgetHostViewAndroid scoped_ptr result); static void PrepareBitmapCopyOutputResult( const gfx::Size& dst_size_in_pixel, + const SkBitmap::Config config, const base::TimeTicks& start_time, const base::Callback& callback, scoped_ptr result); @@ -288,7 +292,8 @@ class RenderWidgetHostViewAndroid void SynchronousCopyContents( const gfx::Rect& src_subrect_in_pixel, const gfx::Size& dst_size_in_pixel, - const base::Callback& callback); + const base::Callback& callback, + const SkBitmap::Config config); // The model object. RenderWidgetHostImpl* host_; @@ -296,11 +301,7 @@ class RenderWidgetHostViewAndroid // Used to track whether this render widget needs a BeginFrame. bool needs_begin_frame_; - // Whether or not this widget is potentially attached to the view hierarchy. - // This view may not actually be attached if this is true, but it should be - // treated as such, because as soon as a ContentViewCore is set the layer - // will be attached automatically. - bool are_layers_attached_; + bool is_showing_; // ContentViewCoreImpl is our interface to the view system. ContentViewCoreImpl* content_view_core_; @@ -357,6 +358,8 @@ class RenderWidgetHostViewAndroid scoped_ptr frame_evictor_; + bool using_delegated_renderer_; + DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAndroid); };