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

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

Issue 1003023002: Signal input flush when all flings have terminated (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 9 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 <deque> 8 #include <deque>
9 #include <list> 9 #include <list>
10 #include <map> 10 #include <map>
(...skipping 427 matching lines...) Expand 10 before | Expand all | Expand 10 after
438 438
439 void DetachDelegate(); 439 void DetachDelegate();
440 440
441 // Update the renderer's cache of the screen rect of the view and window. 441 // Update the renderer's cache of the screen rect of the view and window.
442 void SendScreenRects(); 442 void SendScreenRects();
443 443
444 // Suppreses future char events until a keydown. See 444 // Suppreses future char events until a keydown. See
445 // suppress_next_char_events_. 445 // suppress_next_char_events_.
446 void SuppressNextCharEvents(); 446 void SuppressNextCharEvents();
447 447
448 // Called by RenderWidgetHostView in response to OnSetNeedsFlushInput. 448 // Called by the view in response to a flush request.
449 void FlushInput(); 449 void FlushInput();
450 450
451 // InputRouterClient 451 // Request a flush signal from the view.
452 void SetNeedsFlush() override; 452 void SetNeedsFlush();
453 453
454 // Indicates whether the renderer drives the RenderWidgetHosts's size or the 454 // Indicates whether the renderer drives the RenderWidgetHosts's size or the
455 // other way around. 455 // other way around.
456 bool auto_resize_enabled() { return auto_resize_enabled_; } 456 bool auto_resize_enabled() { return auto_resize_enabled_; }
457 457
458 // The minimum size of this renderer when auto-resize is enabled. 458 // The minimum size of this renderer when auto-resize is enabled.
459 const gfx::Size& min_size_for_auto_resize() const { 459 const gfx::Size& min_size_for_auto_resize() const {
460 return min_size_for_auto_resize_; 460 return min_size_for_auto_resize_;
461 } 461 }
462 462
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after
610 610
611 // IPC message handlers 611 // IPC message handlers
612 void OnRenderViewReady(); 612 void OnRenderViewReady();
613 void OnRenderProcessGone(int status, int error_code); 613 void OnRenderProcessGone(int status, int error_code);
614 void OnClose(); 614 void OnClose();
615 void OnUpdateScreenRectsAck(); 615 void OnUpdateScreenRectsAck();
616 void OnRequestMove(const gfx::Rect& pos); 616 void OnRequestMove(const gfx::Rect& pos);
617 void OnSetTooltipText(const base::string16& tooltip_text, 617 void OnSetTooltipText(const base::string16& tooltip_text,
618 blink::WebTextDirection text_direction_hint); 618 blink::WebTextDirection text_direction_hint);
619 bool OnSwapCompositorFrame(const IPC::Message& message); 619 bool OnSwapCompositorFrame(const IPC::Message& message);
620 void OnFlingingStopped();
621 void OnUpdateRect(const ViewHostMsg_UpdateRect_Params& params); 620 void OnUpdateRect(const ViewHostMsg_UpdateRect_Params& params);
622 void OnQueueSyntheticGesture(const SyntheticGesturePacket& gesture_packet); 621 void OnQueueSyntheticGesture(const SyntheticGesturePacket& gesture_packet);
623 virtual void OnFocus(); 622 virtual void OnFocus();
624 virtual void OnBlur(); 623 virtual void OnBlur();
625 void OnSetCursor(const WebCursor& cursor); 624 void OnSetCursor(const WebCursor& cursor);
626 void OnTextInputTypeChanged(ui::TextInputType type, 625 void OnTextInputTypeChanged(ui::TextInputType type,
627 ui::TextInputMode input_mode, 626 ui::TextInputMode input_mode,
628 bool can_compose_inline, 627 bool can_compose_inline,
629 int flags); 628 int flags);
630 629
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
664 663
665 // InputRouterClient 664 // InputRouterClient
666 InputEventAckState FilterInputEvent( 665 InputEventAckState FilterInputEvent(
667 const blink::WebInputEvent& event, 666 const blink::WebInputEvent& event,
668 const ui::LatencyInfo& latency_info) override; 667 const ui::LatencyInfo& latency_info) override;
669 void IncrementInFlightEventCount() override; 668 void IncrementInFlightEventCount() override;
670 void DecrementInFlightEventCount() override; 669 void DecrementInFlightEventCount() override;
671 void OnHasTouchEventHandlers(bool has_handlers) override; 670 void OnHasTouchEventHandlers(bool has_handlers) override;
672 void DidFlush() override; 671 void DidFlush() override;
673 void DidOverscroll(const DidOverscrollParams& params) override; 672 void DidOverscroll(const DidOverscrollParams& params) override;
673 void DidStopFlinging() override;
674 674
675 // InputAckHandler 675 // InputAckHandler
676 void OnKeyboardEventAck(const NativeWebKeyboardEvent& event, 676 void OnKeyboardEventAck(const NativeWebKeyboardEvent& event,
677 InputEventAckState ack_result) override; 677 InputEventAckState ack_result) override;
678 void OnWheelEventAck(const MouseWheelEventWithLatencyInfo& event, 678 void OnWheelEventAck(const MouseWheelEventWithLatencyInfo& event,
679 InputEventAckState ack_result) override; 679 InputEventAckState ack_result) override;
680 void OnTouchEventAck(const TouchEventWithLatencyInfo& event, 680 void OnTouchEventAck(const TouchEventWithLatencyInfo& event,
681 InputEventAckState ack_result) override; 681 InputEventAckState ack_result) override;
682 void OnGestureEventAck(const GestureEventWithLatencyInfo& event, 682 void OnGestureEventAck(const GestureEventWithLatencyInfo& event,
683 InputEventAckState ack_result) override; 683 InputEventAckState ack_result) override;
(...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after
855 bool is_focused_; 855 bool is_focused_;
856 856
857 base::WeakPtrFactory<RenderWidgetHostImpl> weak_factory_; 857 base::WeakPtrFactory<RenderWidgetHostImpl> weak_factory_;
858 858
859 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); 859 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl);
860 }; 860 };
861 861
862 } // namespace content 862 } // namespace content
863 863
864 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ 864 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698