| 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 328 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 339 FLUSH_INPUT = 1 << 0, | 339 FLUSH_INPUT = 1 << 0, |
| 340 BEGIN_FRAME = 1 << 1, | 340 BEGIN_FRAME = 1 << 1, |
| 341 PERSISTENT_BEGIN_FRAME = 1 << 2 | 341 PERSISTENT_BEGIN_FRAME = 1 << 2 |
| 342 }; | 342 }; |
| 343 void RequestVSyncUpdate(uint32 requests); | 343 void RequestVSyncUpdate(uint32 requests); |
| 344 void StartObservingRootWindow(); | 344 void StartObservingRootWindow(); |
| 345 void StopObservingRootWindow(); | 345 void StopObservingRootWindow(); |
| 346 void SendBeginFrame(base::TimeTicks frame_time, base::TimeDelta vsync_period); | 346 void SendBeginFrame(base::TimeTicks frame_time, base::TimeDelta vsync_period); |
| 347 bool Animate(base::TimeTicks frame_time); | 347 bool Animate(base::TimeTicks frame_time); |
| 348 | 348 |
| 349 void OnContentScrollingChange(); | |
| 350 bool IsContentScrolling() const; | |
| 351 | |
| 352 float GetDpiScale() const; | |
| 353 | |
| 354 // Handles all unprocessed and pending readback requests. | 349 // Handles all unprocessed and pending readback requests. |
| 355 void AbortPendingReadbackRequests(); | 350 void AbortPendingReadbackRequests(); |
| 356 | 351 |
| 357 // The model object. | 352 // The model object. |
| 358 RenderWidgetHostImpl* host_; | 353 RenderWidgetHostImpl* host_; |
| 359 | 354 |
| 360 // Used to control action dispatch at the next |OnVSync()| call. | 355 // Used to control action dispatch at the next |OnVSync()| call. |
| 361 uint32 outstanding_vsync_requests_; | 356 uint32 outstanding_vsync_requests_; |
| 362 | 357 |
| 363 bool is_showing_; | 358 bool is_showing_; |
| (...skipping 29 matching lines...) Expand all Loading... |
| 393 // Provides gesture synthesis given a stream of touch events (derived from | 388 // Provides gesture synthesis given a stream of touch events (derived from |
| 394 // Android MotionEvent's) and touch event acks. | 389 // Android MotionEvent's) and touch event acks. |
| 395 ui::FilteredGestureProvider gesture_provider_; | 390 ui::FilteredGestureProvider gesture_provider_; |
| 396 | 391 |
| 397 // Handles gesture based text selection | 392 // Handles gesture based text selection |
| 398 GestureTextSelector gesture_text_selector_; | 393 GestureTextSelector gesture_text_selector_; |
| 399 | 394 |
| 400 // Manages selection handle rendering and manipulation. | 395 // Manages selection handle rendering and manipulation. |
| 401 // This will always be NULL if |content_view_core_| is NULL. | 396 // This will always be NULL if |content_view_core_| is NULL. |
| 402 scoped_ptr<TouchSelectionController> selection_controller_; | 397 scoped_ptr<TouchSelectionController> selection_controller_; |
| 403 bool touch_scrolling_; | |
| 404 size_t potentially_active_fling_count_; | |
| 405 | 398 |
| 406 int accelerated_surface_route_id_; | 399 int accelerated_surface_route_id_; |
| 407 | 400 |
| 408 // Size to use if we have no backing ContentViewCore | 401 // Size to use if we have no backing ContentViewCore |
| 409 gfx::Size default_size_; | 402 gfx::Size default_size_; |
| 410 | 403 |
| 411 const bool using_synchronous_compositor_; | 404 const bool using_synchronous_compositor_; |
| 412 | 405 |
| 413 scoped_ptr<DelegatedFrameEvictor> frame_evictor_; | 406 scoped_ptr<DelegatedFrameEvictor> frame_evictor_; |
| 414 | 407 |
| (...skipping 19 matching lines...) Expand all Loading... |
| 434 gfx::Vector2dF last_scroll_offset_; | 427 gfx::Vector2dF last_scroll_offset_; |
| 435 | 428 |
| 436 base::WeakPtrFactory<RenderWidgetHostViewAndroid> weak_ptr_factory_; | 429 base::WeakPtrFactory<RenderWidgetHostViewAndroid> weak_ptr_factory_; |
| 437 | 430 |
| 438 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAndroid); | 431 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAndroid); |
| 439 }; | 432 }; |
| 440 | 433 |
| 441 } // namespace content | 434 } // namespace content |
| 442 | 435 |
| 443 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_ | 436 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_ |
| OLD | NEW |