OLD | NEW |
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 746 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
757 virtual void OnGestureEventAck(const WebKit::WebGestureEvent& event, | 757 virtual void OnGestureEventAck(const WebKit::WebGestureEvent& event, |
758 InputEventAckState ack_result) OVERRIDE; | 758 InputEventAckState ack_result) OVERRIDE; |
759 virtual void OnUnexpectedEventAck(UnexpectedEventAckType type) OVERRIDE; | 759 virtual void OnUnexpectedEventAck(UnexpectedEventAckType type) OVERRIDE; |
760 | 760 |
761 void SimulateTouchGestureWithMouse(const WebKit::WebMouseEvent& mouse_event); | 761 void SimulateTouchGestureWithMouse(const WebKit::WebMouseEvent& mouse_event); |
762 | 762 |
763 // 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 |
764 // which may get in recursive loops). | 764 // which may get in recursive loops). |
765 void DelayedAutoResized(); | 765 void DelayedAutoResized(); |
766 | 766 |
767 // Creates the proper InputRouter, either Buffered or Immediate. | |
768 scoped_ptr<InputRouter> CreateInputRouter(); | |
769 | |
770 // Our delegate, which wants to know mainly about keyboard events. | 767 // Our delegate, which wants to know mainly about keyboard events. |
771 // It will remain non-NULL until DetachDelegate() is called. | 768 // It will remain non-NULL until DetachDelegate() is called. |
772 RenderWidgetHostDelegate* delegate_; | 769 RenderWidgetHostDelegate* delegate_; |
773 | 770 |
774 // Created during construction but initialized during Init*(). Therefore, it | 771 // Created during construction but initialized during Init*(). Therefore, it |
775 // is guaranteed never to be NULL, but its channel may be NULL if the | 772 // is guaranteed never to be NULL, but its channel may be NULL if the |
776 // renderer crashed, so you must always check that. | 773 // renderer crashed, so you must always check that. |
777 RenderProcessHost* process_; | 774 RenderProcessHost* process_; |
778 | 775 |
779 // The ID of the corresponding object in the Renderer Instance. | 776 // The ID of the corresponding object in the Renderer Instance. |
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
940 int64 last_input_number_; | 937 int64 last_input_number_; |
941 | 938 |
942 BrowserRenderingStats rendering_stats_; | 939 BrowserRenderingStats rendering_stats_; |
943 | 940 |
944 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); | 941 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); |
945 }; | 942 }; |
946 | 943 |
947 } // namespace content | 944 } // namespace content |
948 | 945 |
949 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ | 946 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ |
OLD | NEW |