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

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: Fix test compile 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 141 matching lines...) Expand 10 before | Expand all | Expand 10 after
604 604
605 // IPC message handlers 605 // IPC message handlers
606 void OnRenderViewReady(); 606 void OnRenderViewReady();
607 void OnRenderProcessGone(int status, int error_code); 607 void OnRenderProcessGone(int status, int error_code);
608 void OnClose(); 608 void OnClose();
609 void OnUpdateScreenRectsAck(); 609 void OnUpdateScreenRectsAck();
610 void OnRequestMove(const gfx::Rect& pos); 610 void OnRequestMove(const gfx::Rect& pos);
611 void OnSetTooltipText(const base::string16& tooltip_text, 611 void OnSetTooltipText(const base::string16& tooltip_text,
612 blink::WebTextDirection text_direction_hint); 612 blink::WebTextDirection text_direction_hint);
613 bool OnSwapCompositorFrame(const IPC::Message& message); 613 bool OnSwapCompositorFrame(const IPC::Message& message);
614 void OnFlingingStopped();
615 void OnUpdateRect(const ViewHostMsg_UpdateRect_Params& params); 614 void OnUpdateRect(const ViewHostMsg_UpdateRect_Params& params);
616 void OnQueueSyntheticGesture(const SyntheticGesturePacket& gesture_packet); 615 void OnQueueSyntheticGesture(const SyntheticGesturePacket& gesture_packet);
617 virtual void OnFocus(); 616 virtual void OnFocus();
618 virtual void OnBlur(); 617 virtual void OnBlur();
619 void OnSetCursor(const WebCursor& cursor); 618 void OnSetCursor(const WebCursor& cursor);
620 void OnTextInputTypeChanged(ui::TextInputType type, 619 void OnTextInputTypeChanged(ui::TextInputType type,
621 ui::TextInputMode input_mode, 620 ui::TextInputMode input_mode,
622 bool can_compose_inline, 621 bool can_compose_inline,
623 int flags); 622 int flags);
624 623
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
658 657
659 // InputRouterClient 658 // InputRouterClient
660 InputEventAckState FilterInputEvent( 659 InputEventAckState FilterInputEvent(
661 const blink::WebInputEvent& event, 660 const blink::WebInputEvent& event,
662 const ui::LatencyInfo& latency_info) override; 661 const ui::LatencyInfo& latency_info) override;
663 void IncrementInFlightEventCount() override; 662 void IncrementInFlightEventCount() override;
664 void DecrementInFlightEventCount() override; 663 void DecrementInFlightEventCount() override;
665 void OnHasTouchEventHandlers(bool has_handlers) override; 664 void OnHasTouchEventHandlers(bool has_handlers) override;
666 void DidFlush() override; 665 void DidFlush() override;
667 void DidOverscroll(const DidOverscrollParams& params) override; 666 void DidOverscroll(const DidOverscrollParams& params) override;
667 void DidStopFlinging() override;
668 668
669 // InputAckHandler 669 // InputAckHandler
670 void OnKeyboardEventAck(const NativeWebKeyboardEvent& event, 670 void OnKeyboardEventAck(const NativeWebKeyboardEvent& event,
671 InputEventAckState ack_result) override; 671 InputEventAckState ack_result) override;
672 void OnWheelEventAck(const MouseWheelEventWithLatencyInfo& event, 672 void OnWheelEventAck(const MouseWheelEventWithLatencyInfo& event,
673 InputEventAckState ack_result) override; 673 InputEventAckState ack_result) override;
674 void OnTouchEventAck(const TouchEventWithLatencyInfo& event, 674 void OnTouchEventAck(const TouchEventWithLatencyInfo& event,
675 InputEventAckState ack_result) override; 675 InputEventAckState ack_result) override;
676 void OnGestureEventAck(const GestureEventWithLatencyInfo& event, 676 void OnGestureEventAck(const GestureEventWithLatencyInfo& event,
677 InputEventAckState ack_result) override; 677 InputEventAckState ack_result) override;
(...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after
847 bool is_focused_; 847 bool is_focused_;
848 848
849 base::WeakPtrFactory<RenderWidgetHostImpl> weak_factory_; 849 base::WeakPtrFactory<RenderWidgetHostImpl> weak_factory_;
850 850
851 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); 851 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl);
852 }; 852 };
853 853
854 } // namespace content 854 } // namespace content
855 855
856 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ 856 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698