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

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

Issue 23983036: [Android] Provide synchronized input flush with BeginFrame (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 7 years, 2 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 504 matching lines...) Expand 10 before | Expand all | Expand 10 after
515 515
516 base::TimeDelta GetSyntheticGestureMessageInterval() const; 516 base::TimeDelta GetSyntheticGestureMessageInterval() const;
517 517
518 // Sets whether the overscroll controller should be enabled for this page. 518 // Sets whether the overscroll controller should be enabled for this page.
519 void SetOverscrollControllerEnabled(bool enabled); 519 void SetOverscrollControllerEnabled(bool enabled);
520 520
521 // Suppreses future char events until a keydown. See 521 // Suppreses future char events until a keydown. See
522 // suppress_next_char_events_. 522 // suppress_next_char_events_.
523 void SuppressNextCharEvents(); 523 void SuppressNextCharEvents();
524 524
525 // Called by RenderWidgetHostView in response to OnSetNeedsFlushInput.
526 void FlushInput();
527
525 // Indicates whether the renderer drives the RenderWidgetHosts's size or the 528 // Indicates whether the renderer drives the RenderWidgetHosts's size or the
526 // other way around. 529 // other way around.
527 bool should_auto_resize() { return should_auto_resize_; } 530 bool should_auto_resize() { return should_auto_resize_; }
528 531
529 void ComputeTouchLatency(const ui::LatencyInfo& latency_info); 532 void ComputeTouchLatency(const ui::LatencyInfo& latency_info);
530 void FrameSwapped(const ui::LatencyInfo& latency_info); 533 void FrameSwapped(const ui::LatencyInfo& latency_info);
531 void DidReceiveRendererFrame(); 534 void DidReceiveRendererFrame();
532 535
533 // Returns the ID that uniquely describes this component to the latency 536 // Returns the ID that uniquely describes this component to the latency
534 // subsystem. 537 // subsystem.
(...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after
754 virtual void OnGestureEventAck(const WebKit::WebGestureEvent& event, 757 virtual void OnGestureEventAck(const WebKit::WebGestureEvent& event,
755 InputEventAckState ack_result) OVERRIDE; 758 InputEventAckState ack_result) OVERRIDE;
756 virtual void OnUnexpectedEventAck(UnexpectedEventAckType type) OVERRIDE; 759 virtual void OnUnexpectedEventAck(UnexpectedEventAckType type) OVERRIDE;
757 760
758 void SimulateTouchGestureWithMouse(const WebKit::WebMouseEvent& mouse_event); 761 void SimulateTouchGestureWithMouse(const WebKit::WebMouseEvent& mouse_event);
759 762
760 // Called when there is a new auto resize (using a post to avoid a stack 763 // Called when there is a new auto resize (using a post to avoid a stack
761 // which may get in recursive loops). 764 // which may get in recursive loops).
762 void DelayedAutoResized(); 765 void DelayedAutoResized();
763 766
767 // Creates the proper InputRouter, either Buffered or Immediate.
768 scoped_ptr<InputRouter> CreateInputRouter();
769
764 // Our delegate, which wants to know mainly about keyboard events. 770 // Our delegate, which wants to know mainly about keyboard events.
765 // It will remain non-NULL until DetachDelegate() is called. 771 // It will remain non-NULL until DetachDelegate() is called.
766 RenderWidgetHostDelegate* delegate_; 772 RenderWidgetHostDelegate* delegate_;
767 773
768 // Created during construction but initialized during Init*(). Therefore, it 774 // Created during construction but initialized during Init*(). Therefore, it
769 // is guaranteed never to be NULL, but its channel may be NULL if the 775 // is guaranteed never to be NULL, but its channel may be NULL if the
770 // renderer crashed, so you must always check that. 776 // renderer crashed, so you must always check that.
771 RenderProcessHost* process_; 777 RenderProcessHost* process_;
772 778
773 // The ID of the corresponding object in the Renderer Instance. 779 // The ID of the corresponding object in the Renderer Instance.
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after
934 int64 last_input_number_; 940 int64 last_input_number_;
935 941
936 BrowserRenderingStats rendering_stats_; 942 BrowserRenderingStats rendering_stats_;
937 943
938 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); 944 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl);
939 }; 945 };
940 946
941 } // namespace content 947 } // namespace content
942 948
943 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ 949 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698