Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(362)

Side by Side Diff: content/browser/renderer_host/render_widget_host_impl.h

Issue 2935563002: input: Remove dead code. (Closed)
Patch Set: . Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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_IMPL_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 466 matching lines...) Expand 10 before | Expand all | Expand 10 after
477 // We need to reset these flags when we want to repaint the contents of 477 // We need to reset these flags when we want to repaint the contents of
478 // browser plugin in this RWH. Resetting these flags will ensure we ignore 478 // browser plugin in this RWH. Resetting these flags will ensure we ignore
479 // any previous pending acks that are not relevant upon repaint. 479 // any previous pending acks that are not relevant upon repaint.
480 void ResetSizeAndRepaintPendingFlags(); 480 void ResetSizeAndRepaintPendingFlags();
481 481
482 void DetachDelegate(); 482 void DetachDelegate();
483 483
484 // Update the renderer's cache of the screen rect of the view and window. 484 // Update the renderer's cache of the screen rect of the view and window.
485 void SendScreenRects(); 485 void SendScreenRects();
486 486
487 void OnBeginFrame();
488
489 // Indicates whether the renderer drives the RenderWidgetHosts's size or the 487 // Indicates whether the renderer drives the RenderWidgetHosts's size or the
490 // other way around. 488 // other way around.
491 bool auto_resize_enabled() { return auto_resize_enabled_; } 489 bool auto_resize_enabled() { return auto_resize_enabled_; }
492 490
493 // The minimum size of this renderer when auto-resize is enabled. 491 // The minimum size of this renderer when auto-resize is enabled.
494 const gfx::Size& min_size_for_auto_resize() const { 492 const gfx::Size& min_size_for_auto_resize() const {
495 return min_size_for_auto_resize_; 493 return min_size_for_auto_resize_;
496 } 494 }
497 495
498 // The maximum size of this renderer when auto-resize is enabled. 496 // The maximum size of this renderer when auto-resize is enabled.
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
579 void RequestCompositionUpdates(bool immediate_request, bool monitor_updates); 577 void RequestCompositionUpdates(bool immediate_request, bool monitor_updates);
580 578
581 void RequestMojoCompositorFrameSink( 579 void RequestMojoCompositorFrameSink(
582 cc::mojom::MojoCompositorFrameSinkRequest request, 580 cc::mojom::MojoCompositorFrameSinkRequest request,
583 cc::mojom::MojoCompositorFrameSinkClientPtr client); 581 cc::mojom::MojoCompositorFrameSinkClientPtr client);
584 582
585 const cc::CompositorFrameMetadata& last_frame_metadata() { 583 const cc::CompositorFrameMetadata& last_frame_metadata() {
586 return last_frame_metadata_; 584 return last_frame_metadata_;
587 } 585 }
588 586
589 // SyntheticGestureController::Delegate:
590 void RequestBeginFrameForSynthesizedInput(
591 base::OnceClosure begin_frame_callback) override;
592 bool HasGestureStopped() override; 587 bool HasGestureStopped() override;
593 588
594 // cc::mojom::MojoCompositorFrameSink implementation. 589 // cc::mojom::MojoCompositorFrameSink implementation.
595 void SetNeedsBeginFrame(bool needs_begin_frame) override; 590 void SetNeedsBeginFrame(bool needs_begin_frame) override;
596 void SubmitCompositorFrame(const cc::LocalSurfaceId& local_surface_id, 591 void SubmitCompositorFrame(const cc::LocalSurfaceId& local_surface_id,
597 cc::CompositorFrame frame) override; 592 cc::CompositorFrame frame) override;
598 void DidNotProduceFrame(const cc::BeginFrameAck& ack) override; 593 void DidNotProduceFrame(const cc::BeginFrameAck& ack) override;
599 594
600 // Signals that a frame with token |frame_token| was finished processing. If 595 // Signals that a frame with token |frame_token| was finished processing. If
601 // there are any queued messages belonging to it, they will be processed. 596 // there are any queued messages belonging to it, they will be processed.
(...skipping 385 matching lines...) Expand 10 before | Expand all | Expand 10 after
987 cc::CompositorFrameMetadata last_frame_metadata_; 982 cc::CompositorFrameMetadata last_frame_metadata_;
988 983
989 // Last non-zero frame token received from the renderer. Any swap messsages 984 // Last non-zero frame token received from the renderer. Any swap messsages
990 // having a token less than or equal to this value will be processed. 985 // having a token less than or equal to this value will be processed.
991 uint32_t last_received_frame_token_ = 0; 986 uint32_t last_received_frame_token_ = 0;
992 987
993 // List of all swap messages that their corresponding frames have not arrived. 988 // List of all swap messages that their corresponding frames have not arrived.
994 // Sorted by frame token. 989 // Sorted by frame token.
995 std::queue<std::pair<uint32_t, std::vector<IPC::Message>>> queued_messages_; 990 std::queue<std::pair<uint32_t, std::vector<IPC::Message>>> queued_messages_;
996 991
997 base::OnceClosure begin_frame_callback_;
998
999 base::WeakPtrFactory<RenderWidgetHostImpl> weak_factory_; 992 base::WeakPtrFactory<RenderWidgetHostImpl> weak_factory_;
1000 993
1001 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); 994 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl);
1002 }; 995 };
1003 996
1004 } // namespace content 997 } // namespace content
1005 998
1006 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ 999 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698