| 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 265 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 276 // current frame. | 276 // current frame. |
| 277 void RetainFrame(uint32 output_surface_id, | 277 void RetainFrame(uint32 output_surface_id, |
| 278 scoped_ptr<cc::CompositorFrame> frame); | 278 scoped_ptr<cc::CompositorFrame> frame); |
| 279 | 279 |
| 280 void InternalSwapCompositorFrame(uint32 output_surface_id, | 280 void InternalSwapCompositorFrame(uint32 output_surface_id, |
| 281 scoped_ptr<cc::CompositorFrame> frame); | 281 scoped_ptr<cc::CompositorFrame> frame); |
| 282 | 282 |
| 283 void SetNeedsAnimate(); | 283 void SetNeedsAnimate(); |
| 284 bool Animate(base::TimeTicks frame_time); | 284 bool Animate(base::TimeTicks frame_time); |
| 285 | 285 |
| 286 bool ShouldConvertToMouseEvent(const ui::MotionEvent& event); |
| 287 |
| 286 | 288 |
| 287 // The model object. | 289 // The model object. |
| 288 RenderWidgetHostImpl* host_; | 290 RenderWidgetHostImpl* host_; |
| 289 | 291 |
| 290 // Used to track whether this render widget needs a BeginFrame. | 292 // Used to track whether this render widget needs a BeginFrame. |
| 291 bool needs_begin_frame_; | 293 bool needs_begin_frame_; |
| 292 | 294 |
| 293 bool is_showing_; | 295 bool is_showing_; |
| 294 | 296 |
| 295 // ContentViewCoreImpl is our interface to the view system. | 297 // ContentViewCoreImpl is our interface to the view system. |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 352 }; | 354 }; |
| 353 | 355 |
| 354 scoped_ptr<LastFrameInfo> last_frame_info_; | 356 scoped_ptr<LastFrameInfo> last_frame_info_; |
| 355 | 357 |
| 356 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAndroid); | 358 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAndroid); |
| 357 }; | 359 }; |
| 358 | 360 |
| 359 } // namespace content | 361 } // namespace content |
| 360 | 362 |
| 361 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_ | 363 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_ |
| OLD | NEW |