| 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 23 matching lines...) Expand all Loading... |
| 34 #include "content/public/common/page_zoom.h" | 34 #include "content/public/common/page_zoom.h" |
| 35 #include "ipc/ipc_listener.h" | 35 #include "ipc/ipc_listener.h" |
| 36 #include "ui/base/ime/text_input_mode.h" | 36 #include "ui/base/ime/text_input_mode.h" |
| 37 #include "ui/base/ime/text_input_type.h" | 37 #include "ui/base/ime/text_input_type.h" |
| 38 #include "ui/events/latency_info.h" | 38 #include "ui/events/latency_info.h" |
| 39 #include "ui/gfx/native_widget_types.h" | 39 #include "ui/gfx/native_widget_types.h" |
| 40 | 40 |
| 41 class WebCursor; | 41 class WebCursor; |
| 42 struct AcceleratedSurfaceMsg_BufferPresented_Params; | 42 struct AcceleratedSurfaceMsg_BufferPresented_Params; |
| 43 struct ViewHostMsg_CompositorSurfaceBuffersSwapped_Params; | 43 struct ViewHostMsg_CompositorSurfaceBuffersSwapped_Params; |
| 44 struct ViewHostMsg_ConfigureSyntheticDelay_Params; |
| 44 struct ViewHostMsg_UpdateRect_Params; | 45 struct ViewHostMsg_UpdateRect_Params; |
| 45 struct ViewHostMsg_TextInputState_Params; | 46 struct ViewHostMsg_TextInputState_Params; |
| 46 struct ViewHostMsg_BeginSmoothScroll_Params; | 47 struct ViewHostMsg_BeginSmoothScroll_Params; |
| 47 | 48 |
| 48 namespace base { | 49 namespace base { |
| 49 class TimeTicks; | 50 class TimeTicks; |
| 50 } | 51 } |
| 51 | 52 |
| 52 namespace cc { | 53 namespace cc { |
| 53 class CompositorFrame; | 54 class CompositorFrame; |
| (...skipping 603 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 657 #endif | 658 #endif |
| 658 bool OnSwapCompositorFrame(const IPC::Message& message); | 659 bool OnSwapCompositorFrame(const IPC::Message& message); |
| 659 void OnOverscrolled(gfx::Vector2dF accumulated_overscroll, | 660 void OnOverscrolled(gfx::Vector2dF accumulated_overscroll, |
| 660 gfx::Vector2dF current_fling_velocity); | 661 gfx::Vector2dF current_fling_velocity); |
| 661 void OnUpdateRect(const ViewHostMsg_UpdateRect_Params& params); | 662 void OnUpdateRect(const ViewHostMsg_UpdateRect_Params& params); |
| 662 void OnUpdateIsDelayed(); | 663 void OnUpdateIsDelayed(); |
| 663 void OnBeginSmoothScroll( | 664 void OnBeginSmoothScroll( |
| 664 const ViewHostMsg_BeginSmoothScroll_Params& params); | 665 const ViewHostMsg_BeginSmoothScroll_Params& params); |
| 665 void OnBeginPinch( | 666 void OnBeginPinch( |
| 666 const ViewHostMsg_BeginPinch_Params& params); | 667 const ViewHostMsg_BeginPinch_Params& params); |
| 668 void OnConfigureSyntheticDelay( |
| 669 const ViewHostMsg_ConfigureSyntheticDelay_Params& params); |
| 667 virtual void OnFocus(); | 670 virtual void OnFocus(); |
| 668 virtual void OnBlur(); | 671 virtual void OnBlur(); |
| 669 void OnSetCursor(const WebCursor& cursor); | 672 void OnSetCursor(const WebCursor& cursor); |
| 670 void OnTextInputTypeChanged(ui::TextInputType type, | 673 void OnTextInputTypeChanged(ui::TextInputType type, |
| 671 ui::TextInputMode input_mode, | 674 ui::TextInputMode input_mode, |
| 672 bool can_compose_inline); | 675 bool can_compose_inline); |
| 673 #if defined(OS_MACOSX) || defined(OS_WIN) || defined(USE_AURA) | 676 #if defined(OS_MACOSX) || defined(OS_WIN) || defined(USE_AURA) |
| 674 void OnImeCompositionRangeChanged( | 677 void OnImeCompositionRangeChanged( |
| 675 const gfx::Range& range, | 678 const gfx::Range& range, |
| 676 const std::vector<gfx::Rect>& character_bounds); | 679 const std::vector<gfx::Rect>& character_bounds); |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 740 virtual void OnGestureEventAck(const GestureEventWithLatencyInfo& event, | 743 virtual void OnGestureEventAck(const GestureEventWithLatencyInfo& event, |
| 741 InputEventAckState ack_result) OVERRIDE; | 744 InputEventAckState ack_result) OVERRIDE; |
| 742 virtual void OnUnexpectedEventAck(UnexpectedEventAckType type) OVERRIDE; | 745 virtual void OnUnexpectedEventAck(UnexpectedEventAckType type) OVERRIDE; |
| 743 | 746 |
| 744 // Called when there is a new auto resize (using a post to avoid a stack | 747 // Called when there is a new auto resize (using a post to avoid a stack |
| 745 // which may get in recursive loops). | 748 // which may get in recursive loops). |
| 746 void DelayedAutoResized(); | 749 void DelayedAutoResized(); |
| 747 | 750 |
| 748 void WindowSnapshotReachedScreen(int snapshot_id); | 751 void WindowSnapshotReachedScreen(int snapshot_id); |
| 749 | 752 |
| 753 void DidConfigureSyntheticDelay(); |
| 754 |
| 750 // Our delegate, which wants to know mainly about keyboard events. | 755 // Our delegate, which wants to know mainly about keyboard events. |
| 751 // It will remain non-NULL until DetachDelegate() is called. | 756 // It will remain non-NULL until DetachDelegate() is called. |
| 752 RenderWidgetHostDelegate* delegate_; | 757 RenderWidgetHostDelegate* delegate_; |
| 753 | 758 |
| 754 // Created during construction but initialized during Init*(). Therefore, it | 759 // Created during construction but initialized during Init*(). Therefore, it |
| 755 // is guaranteed never to be NULL, but its channel may be NULL if the | 760 // is guaranteed never to be NULL, but its channel may be NULL if the |
| 756 // renderer crashed, so you must always check that. | 761 // renderer crashed, so you must always check that. |
| 757 RenderProcessHost* process_; | 762 RenderProcessHost* process_; |
| 758 | 763 |
| 759 // The ID of the corresponding object in the Renderer Instance. | 764 // The ID of the corresponding object in the Renderer Instance. |
| (...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 920 int64 last_input_number_; | 925 int64 last_input_number_; |
| 921 | 926 |
| 922 BrowserRenderingStats rendering_stats_; | 927 BrowserRenderingStats rendering_stats_; |
| 923 | 928 |
| 924 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); | 929 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); |
| 925 }; | 930 }; |
| 926 | 931 |
| 927 } // namespace content | 932 } // namespace content |
| 928 | 933 |
| 929 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ | 934 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ |
| OLD | NEW |