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

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: Compile fix Created 7 years, 3 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 499 matching lines...) Expand 10 before | Expand all | Expand 10 after
510 510
511 base::TimeDelta GetSyntheticGestureMessageInterval() const; 511 base::TimeDelta GetSyntheticGestureMessageInterval() const;
512 512
513 // Sets whether the overscroll controller should be enabled for this page. 513 // Sets whether the overscroll controller should be enabled for this page.
514 void SetOverscrollControllerEnabled(bool enabled); 514 void SetOverscrollControllerEnabled(bool enabled);
515 515
516 // Suppreses future char events until a keydown. See 516 // Suppreses future char events until a keydown. See
517 // suppress_next_char_events_. 517 // suppress_next_char_events_.
518 void SuppressNextCharEvents(); 518 void SuppressNextCharEvents();
519 519
520 // Called by RenderWidgetHostView in response to OnSetNeedsFlushInput.
521 void FlushInput();
522
520 // Indicates whether the renderer drives the RenderWidgetHosts's size or the 523 // Indicates whether the renderer drives the RenderWidgetHosts's size or the
521 // other way around. 524 // other way around.
522 bool should_auto_resize() { return should_auto_resize_; } 525 bool should_auto_resize() { return should_auto_resize_; }
523 526
524 void ComputeTouchLatency(const ui::LatencyInfo& latency_info); 527 void ComputeTouchLatency(const ui::LatencyInfo& latency_info);
525 void FrameSwapped(const ui::LatencyInfo& latency_info); 528 void FrameSwapped(const ui::LatencyInfo& latency_info);
526 void DidReceiveRendererFrame(); 529 void DidReceiveRendererFrame();
527 530
528 // Returns the ID that uniquely describes this component to the latency 531 // Returns the ID that uniquely describes this component to the latency
529 // subsystem. 532 // subsystem.
(...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after
749 virtual void OnGestureEventAck(const WebKit::WebGestureEvent& event, 752 virtual void OnGestureEventAck(const WebKit::WebGestureEvent& event,
750 InputEventAckState ack_result) OVERRIDE; 753 InputEventAckState ack_result) OVERRIDE;
751 virtual void OnUnexpectedEventAck(UnexpectedEventAckType type) OVERRIDE; 754 virtual void OnUnexpectedEventAck(UnexpectedEventAckType type) OVERRIDE;
752 755
753 void SimulateTouchGestureWithMouse(const WebKit::WebMouseEvent& mouse_event); 756 void SimulateTouchGestureWithMouse(const WebKit::WebMouseEvent& mouse_event);
754 757
755 // Called when there is a new auto resize (using a post to avoid a stack 758 // Called when there is a new auto resize (using a post to avoid a stack
756 // which may get in recursive loops). 759 // which may get in recursive loops).
757 void DelayedAutoResized(); 760 void DelayedAutoResized();
758 761
762 // Creates the proper InputRouter, either Buffered or Immediate.
763 scoped_ptr<InputRouter> CreateInputRouter();
764
759 // Our delegate, which wants to know mainly about keyboard events. 765 // Our delegate, which wants to know mainly about keyboard events.
760 // It will remain non-NULL until DetachDelegate() is called. 766 // It will remain non-NULL until DetachDelegate() is called.
761 RenderWidgetHostDelegate* delegate_; 767 RenderWidgetHostDelegate* delegate_;
762 768
763 // Created during construction but initialized during Init*(). Therefore, it 769 // Created during construction but initialized during Init*(). Therefore, it
764 // is guaranteed never to be NULL, but its channel may be NULL if the 770 // is guaranteed never to be NULL, but its channel may be NULL if the
765 // renderer crashed, so you must always check that. 771 // renderer crashed, so you must always check that.
766 RenderProcessHost* process_; 772 RenderProcessHost* process_;
767 773
768 // The ID of the corresponding object in the Renderer Instance. 774 // The ID of the corresponding object in the Renderer Instance.
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after
929 int64 last_input_number_; 935 int64 last_input_number_;
930 936
931 BrowserRenderingStats rendering_stats_; 937 BrowserRenderingStats rendering_stats_;
932 938
933 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); 939 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl);
934 }; 940 };
935 941
936 } // namespace content 942 } // namespace content
937 943
938 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ 944 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698