| 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; |
| 154 virtual void OnDidFlushInput() OVERRIDE; |
| 153 virtual void GestureEventAck(int gesture_event_type, | 155 virtual void GestureEventAck(int gesture_event_type, |
| 154 InputEventAckState ack_result) OVERRIDE; | 156 InputEventAckState ack_result) OVERRIDE; |
| 155 virtual void OnAccessibilityEvents( | 157 virtual void OnAccessibilityEvents( |
| 156 const std::vector<AccessibilityHostMsg_EventParams>& | 158 const std::vector<AccessibilityHostMsg_EventParams>& |
| 157 params) OVERRIDE; | 159 params) OVERRIDE; |
| 158 virtual bool LockMouse() OVERRIDE; | 160 virtual bool LockMouse() OVERRIDE; |
| 159 virtual void UnlockMouse() OVERRIDE; | 161 virtual void UnlockMouse() OVERRIDE; |
| 160 virtual void HasTouchEventHandlers(bool need_touch_events) OVERRIDE; | 162 virtual void HasTouchEventHandlers(bool need_touch_events) OVERRIDE; |
| 161 virtual void OnSwapCompositorFrame( | 163 virtual void OnSwapCompositorFrame( |
| 162 uint32 output_surface_id, | 164 uint32 output_surface_id, |
| (...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 246 | 248 |
| 247 void UpdateContentViewCoreFrameMetadata( | 249 void UpdateContentViewCoreFrameMetadata( |
| 248 const cc::CompositorFrameMetadata& frame_metadata); | 250 const cc::CompositorFrameMetadata& frame_metadata); |
| 249 void ComputeContentsSize(const cc::CompositorFrameMetadata& frame_metadata); | 251 void ComputeContentsSize(const cc::CompositorFrameMetadata& frame_metadata); |
| 250 void ResetClipping(); | 252 void ResetClipping(); |
| 251 void ClipContents(const gfx::Rect& clipping, const gfx::Size& content_size); | 253 void ClipContents(const gfx::Rect& clipping, const gfx::Size& content_size); |
| 252 | 254 |
| 253 void AttachLayers(); | 255 void AttachLayers(); |
| 254 void RemoveLayers(); | 256 void RemoveLayers(); |
| 255 | 257 |
| 258 void AddBeginFrameSubscriber(); |
| 259 void RemoveBeginFrameSubscriber(); |
| 260 |
| 256 void CreateOverscrollEffectIfNecessary(); | 261 void CreateOverscrollEffectIfNecessary(); |
| 257 void UpdateAnimationSize(const cc::CompositorFrameMetadata& frame_metadata); | 262 void UpdateAnimationSize(const cc::CompositorFrameMetadata& frame_metadata); |
| 258 void ScheduleAnimationIfNecessary(); | 263 void ScheduleAnimationIfNecessary(); |
| 259 | 264 |
| 260 // Called after async screenshot task completes. Scales and crops the result | 265 // Called after async screenshot task completes. Scales and crops the result |
| 261 // of the copy. | 266 // of the copy. |
| 262 static void PrepareTextureCopyOutputResult( | 267 static void PrepareTextureCopyOutputResult( |
| 263 const gfx::Size& dst_size_in_pixel, | 268 const gfx::Size& dst_size_in_pixel, |
| 264 const base::Callback<void(bool, const SkBitmap&)>& callback, | 269 const base::Callback<void(bool, const SkBitmap&)>& callback, |
| 265 scoped_ptr<cc::CopyOutputResult> result); | 270 scoped_ptr<cc::CopyOutputResult> result); |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 315 uint32_t current_mailbox_output_surface_id_; | 320 uint32_t current_mailbox_output_surface_id_; |
| 316 | 321 |
| 317 base::WeakPtrFactory<RenderWidgetHostViewAndroid> weak_ptr_factory_; | 322 base::WeakPtrFactory<RenderWidgetHostViewAndroid> weak_ptr_factory_; |
| 318 | 323 |
| 319 std::queue<base::Closure> ack_callbacks_; | 324 std::queue<base::Closure> ack_callbacks_; |
| 320 | 325 |
| 321 // Used to render overscroll overlays. | 326 // Used to render overscroll overlays. |
| 322 bool overscroll_effect_enabled_; | 327 bool overscroll_effect_enabled_; |
| 323 scoped_ptr<OverscrollGlow> overscroll_effect_; | 328 scoped_ptr<OverscrollGlow> overscroll_effect_; |
| 324 | 329 |
| 330 bool flush_input_requested_; |
| 331 |
| 325 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAndroid); | 332 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAndroid); |
| 326 }; | 333 }; |
| 327 | 334 |
| 328 } // namespace content | 335 } // namespace content |
| 329 | 336 |
| 330 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_ | 337 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_ |
| OLD | NEW |