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 15 matching lines...) Expand all Loading... |
26 #include "cc/base/rolling_time_delta_history.h" | 26 #include "cc/base/rolling_time_delta_history.h" |
27 #include "cc/resources/shared_bitmap.h" | 27 #include "cc/resources/shared_bitmap.h" |
28 #include "content/browser/renderer_host/event_with_latency_info.h" | 28 #include "content/browser/renderer_host/event_with_latency_info.h" |
29 #include "content/browser/renderer_host/input/input_ack_handler.h" | 29 #include "content/browser/renderer_host/input/input_ack_handler.h" |
30 #include "content/browser/renderer_host/input/input_router_client.h" | 30 #include "content/browser/renderer_host/input/input_router_client.h" |
31 #include "content/browser/renderer_host/input/synthetic_gesture.h" | 31 #include "content/browser/renderer_host/input/synthetic_gesture.h" |
32 #include "content/browser/renderer_host/input/touch_emulator_client.h" | 32 #include "content/browser/renderer_host/input/touch_emulator_client.h" |
33 #include "content/common/input/input_event_ack_state.h" | 33 #include "content/common/input/input_event_ack_state.h" |
34 #include "content/common/input/synthetic_gesture_packet.h" | 34 #include "content/common/input/synthetic_gesture_packet.h" |
35 #include "content/common/view_message_enums.h" | 35 #include "content/common/view_message_enums.h" |
| 36 #include "content/public/browser/readback_types.h" |
36 #include "content/public/browser/render_widget_host.h" | 37 #include "content/public/browser/render_widget_host.h" |
37 #include "content/public/common/page_zoom.h" | 38 #include "content/public/common/page_zoom.h" |
38 #include "ipc/ipc_listener.h" | 39 #include "ipc/ipc_listener.h" |
39 #include "ui/base/ime/text_input_mode.h" | 40 #include "ui/base/ime/text_input_mode.h" |
40 #include "ui/base/ime/text_input_type.h" | 41 #include "ui/base/ime/text_input_type.h" |
41 #include "ui/events/latency_info.h" | 42 #include "ui/events/latency_info.h" |
42 #include "ui/gfx/native_widget_types.h" | 43 #include "ui/gfx/native_widget_types.h" |
43 | 44 |
44 struct AcceleratedSurfaceMsg_BufferPresented_Params; | 45 struct AcceleratedSurfaceMsg_BufferPresented_Params; |
45 struct ViewHostMsg_BeginSmoothScroll_Params; | 46 struct ViewHostMsg_BeginSmoothScroll_Params; |
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
124 void set_hung_renderer_delay_ms(const base::TimeDelta& timeout) { | 125 void set_hung_renderer_delay_ms(const base::TimeDelta& timeout) { |
125 hung_renderer_delay_ms_ = timeout.InMilliseconds(); | 126 hung_renderer_delay_ms_ = timeout.InMilliseconds(); |
126 } | 127 } |
127 | 128 |
128 // RenderWidgetHost implementation. | 129 // RenderWidgetHost implementation. |
129 void UpdateTextDirection(blink::WebTextDirection direction) override; | 130 void UpdateTextDirection(blink::WebTextDirection direction) override; |
130 void NotifyTextDirection() override; | 131 void NotifyTextDirection() override; |
131 void Focus() override; | 132 void Focus() override; |
132 void Blur() override; | 133 void Blur() override; |
133 void SetActive(bool active) override; | 134 void SetActive(bool active) override; |
134 void CopyFromBackingStore( | 135 void CopyFromBackingStore(const gfx::Rect& src_rect, |
135 const gfx::Rect& src_rect, | 136 const gfx::Size& accelerated_dst_size, |
136 const gfx::Size& accelerated_dst_size, | 137 ReadbackRequestCallback& callback, |
137 const base::Callback<void(bool, const SkBitmap&)>& callback, | 138 const SkColorType color_type) override; |
138 const SkColorType color_type) override; | |
139 bool CanCopyFromBackingStore() override; | 139 bool CanCopyFromBackingStore() override; |
140 #if defined(OS_ANDROID) | 140 #if defined(OS_ANDROID) |
141 virtual void LockBackingStore() override; | 141 virtual void LockBackingStore() override; |
142 virtual void UnlockBackingStore() override; | 142 virtual void UnlockBackingStore() override; |
143 #endif | 143 #endif |
144 void ForwardMouseEvent(const blink::WebMouseEvent& mouse_event) override; | 144 void ForwardMouseEvent(const blink::WebMouseEvent& mouse_event) override; |
145 void ForwardWheelEvent(const blink::WebMouseWheelEvent& wheel_event) override; | 145 void ForwardWheelEvent(const blink::WebMouseWheelEvent& wheel_event) override; |
146 void ForwardKeyboardEvent(const NativeWebKeyboardEvent& key_event) override; | 146 void ForwardKeyboardEvent(const NativeWebKeyboardEvent& key_event) override; |
147 RenderProcessHost* GetProcess() const override; | 147 RenderProcessHost* GetProcess() const override; |
148 int GetRoutingID() const override; | 148 int GetRoutingID() const override; |
(...skipping 697 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
846 cc::RollingTimeDeltaHistory browser_composite_latency_history_; | 846 cc::RollingTimeDeltaHistory browser_composite_latency_history_; |
847 | 847 |
848 base::WeakPtrFactory<RenderWidgetHostImpl> weak_factory_; | 848 base::WeakPtrFactory<RenderWidgetHostImpl> weak_factory_; |
849 | 849 |
850 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); | 850 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); |
851 }; | 851 }; |
852 | 852 |
853 } // namespace content | 853 } // namespace content |
854 | 854 |
855 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ | 855 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ |
OLD | NEW |