| 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_ANDROID_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_ |
| 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <queue> | 9 #include <queue> |
| 10 | 10 |
| (...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 143 virtual void ProcessAckedTouchEvent(const TouchEventWithLatencyInfo& touch, | 143 virtual void ProcessAckedTouchEvent(const TouchEventWithLatencyInfo& touch, |
| 144 InputEventAckState ack_result) OVERRIDE; | 144 InputEventAckState ack_result) OVERRIDE; |
| 145 virtual void SetHasHorizontalScrollbar( | 145 virtual void SetHasHorizontalScrollbar( |
| 146 bool has_horizontal_scrollbar) OVERRIDE; | 146 bool has_horizontal_scrollbar) OVERRIDE; |
| 147 virtual void SetScrollOffsetPinning( | 147 virtual void SetScrollOffsetPinning( |
| 148 bool is_pinned_to_left, bool is_pinned_to_right) OVERRIDE; | 148 bool is_pinned_to_left, bool is_pinned_to_right) OVERRIDE; |
| 149 virtual void UnhandledWheelEvent( | 149 virtual void UnhandledWheelEvent( |
| 150 const WebKit::WebMouseWheelEvent& event) OVERRIDE; | 150 const WebKit::WebMouseWheelEvent& event) OVERRIDE; |
| 151 virtual InputEventAckState FilterInputEvent( | 151 virtual InputEventAckState FilterInputEvent( |
| 152 const WebKit::WebInputEvent& input_event) OVERRIDE; | 152 const WebKit::WebInputEvent& input_event) OVERRIDE; |
| 153 virtual void OnSetNeedsFlushInput() OVERRIDE; |
| 153 virtual void GestureEventAck(int gesture_event_type, | 154 virtual void GestureEventAck(int gesture_event_type, |
| 154 InputEventAckState ack_result) OVERRIDE; | 155 InputEventAckState ack_result) OVERRIDE; |
| 155 virtual void OnAccessibilityEvents( | 156 virtual void OnAccessibilityEvents( |
| 156 const std::vector<AccessibilityHostMsg_EventParams>& | 157 const std::vector<AccessibilityHostMsg_EventParams>& |
| 157 params) OVERRIDE; | 158 params) OVERRIDE; |
| 158 virtual bool LockMouse() OVERRIDE; | 159 virtual bool LockMouse() OVERRIDE; |
| 159 virtual void UnlockMouse() OVERRIDE; | 160 virtual void UnlockMouse() OVERRIDE; |
| 160 virtual void HasTouchEventHandlers(bool need_touch_events) OVERRIDE; | 161 virtual void HasTouchEventHandlers(bool need_touch_events) OVERRIDE; |
| 161 virtual void OnSwapCompositorFrame( | 162 virtual void OnSwapCompositorFrame( |
| 162 uint32 output_surface_id, | 163 uint32 output_surface_id, |
| (...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 249 | 250 |
| 250 void UpdateContentViewCoreFrameMetadata( | 251 void UpdateContentViewCoreFrameMetadata( |
| 251 const cc::CompositorFrameMetadata& frame_metadata); | 252 const cc::CompositorFrameMetadata& frame_metadata); |
| 252 void ComputeContentsSize(const cc::CompositorFrameMetadata& frame_metadata); | 253 void ComputeContentsSize(const cc::CompositorFrameMetadata& frame_metadata); |
| 253 void ResetClipping(); | 254 void ResetClipping(); |
| 254 void ClipContents(const gfx::Rect& clipping, const gfx::Size& content_size); | 255 void ClipContents(const gfx::Rect& clipping, const gfx::Size& content_size); |
| 255 | 256 |
| 256 void AttachLayers(); | 257 void AttachLayers(); |
| 257 void RemoveLayers(); | 258 void RemoveLayers(); |
| 258 | 259 |
| 260 void AddBeginFrameSubscriber(); |
| 261 void RemoveBeginFrameSubscriber(); |
| 262 |
| 259 void CreateOverscrollEffectIfNecessary(); | 263 void CreateOverscrollEffectIfNecessary(); |
| 260 void UpdateAnimationSize(const cc::CompositorFrameMetadata& frame_metadata); | 264 void UpdateAnimationSize(const cc::CompositorFrameMetadata& frame_metadata); |
| 261 void ScheduleAnimationIfNecessary(); | 265 void ScheduleAnimationIfNecessary(); |
| 262 | 266 |
| 263 // Called after async screenshot task completes. Scales and crops the result | 267 // Called after async screenshot task completes. Scales and crops the result |
| 264 // of the copy. | 268 // of the copy. |
| 265 static void PrepareTextureCopyOutputResult( | 269 static void PrepareTextureCopyOutputResult( |
| 266 const gfx::Size& dst_size_in_pixel, | 270 const gfx::Size& dst_size_in_pixel, |
| 267 const base::Callback<void(bool, const SkBitmap&)>& callback, | 271 const base::Callback<void(bool, const SkBitmap&)>& callback, |
| 268 scoped_ptr<cc::CopyOutputResult> result); | 272 scoped_ptr<cc::CopyOutputResult> result); |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 318 uint32_t current_mailbox_output_surface_id_; | 322 uint32_t current_mailbox_output_surface_id_; |
| 319 | 323 |
| 320 base::WeakPtrFactory<RenderWidgetHostViewAndroid> weak_ptr_factory_; | 324 base::WeakPtrFactory<RenderWidgetHostViewAndroid> weak_ptr_factory_; |
| 321 | 325 |
| 322 std::queue<base::Closure> ack_callbacks_; | 326 std::queue<base::Closure> ack_callbacks_; |
| 323 | 327 |
| 324 // Used to render overscroll overlays. | 328 // Used to render overscroll overlays. |
| 325 bool overscroll_effect_enabled_; | 329 bool overscroll_effect_enabled_; |
| 326 scoped_ptr<OverscrollGlow> overscroll_effect_; | 330 scoped_ptr<OverscrollGlow> overscroll_effect_; |
| 327 | 331 |
| 332 bool flush_input_requested_; |
| 333 |
| 328 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAndroid); | 334 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAndroid); |
| 329 }; | 335 }; |
| 330 | 336 |
| 331 } // namespace content | 337 } // namespace content |
| 332 | 338 |
| 333 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_ | 339 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_ |
| OLD | NEW |