| 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 <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| (...skipping 329 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 340 void SendBeginFrame(cc::BeginFrameArgs args); | 340 void SendBeginFrame(cc::BeginFrameArgs args); |
| 341 bool Animate(base::TimeTicks frame_time); | 341 bool Animate(base::TimeTicks frame_time); |
| 342 void RequestDisallowInterceptTouchEvent(); | 342 void RequestDisallowInterceptTouchEvent(); |
| 343 | 343 |
| 344 bool SyncCompositorOnMessageReceived(const IPC::Message& message); | 344 bool SyncCompositorOnMessageReceived(const IPC::Message& message); |
| 345 | 345 |
| 346 void ComputeEventLatencyOSTouchHistograms(const ui::MotionEvent& event); | 346 void ComputeEventLatencyOSTouchHistograms(const ui::MotionEvent& event); |
| 347 | 347 |
| 348 void CreateOverscrollControllerIfPossible(); | 348 void CreateOverscrollControllerIfPossible(); |
| 349 | 349 |
| 350 void UpdateLeftClickCount(int action_button, |
| 351 float mousedown_x, |
| 352 float mouse_down_y); |
| 353 |
| 350 WebContentsAccessibilityAndroid* GetWebContentsAccessibilityAndroid() const; | 354 WebContentsAccessibilityAndroid* GetWebContentsAccessibilityAndroid() const; |
| 351 | 355 |
| 352 // The model object. | 356 // The model object. |
| 353 RenderWidgetHostImpl* host_; | 357 RenderWidgetHostImpl* host_; |
| 354 | 358 |
| 355 // The begin frame source being observed. Null if none. | 359 // The begin frame source being observed. Null if none. |
| 356 cc::BeginFrameSource* begin_frame_source_; | 360 cc::BeginFrameSource* begin_frame_source_; |
| 357 cc::BeginFrameArgs last_begin_frame_args_; | 361 cc::BeginFrameArgs last_begin_frame_args_; |
| 358 uint32_t latest_confirmed_begin_frame_source_id_; | 362 uint32_t latest_confirmed_begin_frame_source_id_; |
| 359 uint64_t latest_confirmed_begin_frame_sequence_number_; | 363 uint64_t latest_confirmed_begin_frame_sequence_number_; |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 421 std::unique_ptr<viz::FrameEvictor> frame_evictor_; | 425 std::unique_ptr<viz::FrameEvictor> frame_evictor_; |
| 422 | 426 |
| 423 bool observing_root_window_; | 427 bool observing_root_window_; |
| 424 | 428 |
| 425 // The last scroll offset of the view. | 429 // The last scroll offset of the view. |
| 426 gfx::Vector2dF last_scroll_offset_; | 430 gfx::Vector2dF last_scroll_offset_; |
| 427 | 431 |
| 428 float prev_top_shown_pix_; | 432 float prev_top_shown_pix_; |
| 429 float prev_bottom_shown_pix_; | 433 float prev_bottom_shown_pix_; |
| 430 | 434 |
| 435 base::TimeTicks prev_mousedown_timestamp_; |
| 436 gfx::Point prev_mousedown_point_; |
| 437 int left_click_count_ = 0; |
| 438 |
| 431 cc::mojom::MojoCompositorFrameSinkClient* renderer_compositor_frame_sink_ = | 439 cc::mojom::MojoCompositorFrameSinkClient* renderer_compositor_frame_sink_ = |
| 432 nullptr; | 440 nullptr; |
| 433 | 441 |
| 434 base::ObserverList<DestructionObserver> destruction_observers_; | 442 base::ObserverList<DestructionObserver> destruction_observers_; |
| 435 | 443 |
| 436 MouseWheelPhaseHandler mouse_wheel_phase_handler_; | 444 MouseWheelPhaseHandler mouse_wheel_phase_handler_; |
| 437 | 445 |
| 438 base::WeakPtrFactory<RenderWidgetHostViewAndroid> weak_ptr_factory_; | 446 base::WeakPtrFactory<RenderWidgetHostViewAndroid> weak_ptr_factory_; |
| 439 | 447 |
| 440 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAndroid); | 448 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAndroid); |
| 441 }; | 449 }; |
| 442 | 450 |
| 443 } // namespace content | 451 } // namespace content |
| 444 | 452 |
| 445 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_ | 453 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_ |
| OLD | NEW |