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 <stddef.h> | 8 #include <stddef.h> |
9 #include <stdint.h> | 9 #include <stdint.h> |
10 | 10 |
11 #include <list> | 11 #include <list> |
12 #include <map> | 12 #include <map> |
13 #include <memory> | 13 #include <memory> |
14 #include <string> | 14 #include <string> |
15 #include <utility> | 15 #include <utility> |
16 #include <vector> | 16 #include <vector> |
17 | 17 |
18 #include "base/callback.h" | 18 #include "base/callback.h" |
19 #include "base/macros.h" | 19 #include "base/macros.h" |
20 #include "base/memory/weak_ptr.h" | 20 #include "base/memory/weak_ptr.h" |
21 #include "base/observer_list.h" | 21 #include "base/observer_list.h" |
22 #include "base/process/kill.h" | 22 #include "base/process/kill.h" |
23 #include "base/strings/string16.h" | 23 #include "base/strings/string16.h" |
24 #include "base/time/time.h" | 24 #include "base/time/time.h" |
25 #include "base/timer/elapsed_timer.h" | 25 #include "base/timer/elapsed_timer.h" |
26 #include "build/build_config.h" | 26 #include "build/build_config.h" |
27 #include "cc/resources/shared_bitmap.h" | 27 #include "cc/resources/shared_bitmap.h" |
| 28 #include "cc/surfaces/frame_sink_id.h" |
28 #include "content/browser/renderer_host/event_with_latency_info.h" | 29 #include "content/browser/renderer_host/event_with_latency_info.h" |
29 #include "content/browser/renderer_host/input/input_ack_handler.h" | 30 #include "content/browser/renderer_host/input/input_ack_handler.h" |
30 #include "content/browser/renderer_host/input/input_router_client.h" | 31 #include "content/browser/renderer_host/input/input_router_client.h" |
31 #include "content/browser/renderer_host/input/render_widget_host_latency_tracker
.h" | 32 #include "content/browser/renderer_host/input/render_widget_host_latency_tracker
.h" |
32 #include "content/browser/renderer_host/input/synthetic_gesture.h" | 33 #include "content/browser/renderer_host/input/synthetic_gesture.h" |
33 #include "content/browser/renderer_host/input/touch_emulator_client.h" | 34 #include "content/browser/renderer_host/input/touch_emulator_client.h" |
34 #include "content/browser/renderer_host/render_widget_host_delegate.h" | 35 #include "content/browser/renderer_host/render_widget_host_delegate.h" |
35 #include "content/browser/renderer_host/render_widget_host_view_base.h" | 36 #include "content/browser/renderer_host/render_widget_host_view_base.h" |
36 #include "content/common/drag_event_source_info.h" | 37 #include "content/common/drag_event_source_info.h" |
37 #include "content/common/input/input_event_ack_state.h" | 38 #include "content/common/input/input_event_ack_state.h" |
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
128 base::TimeDelta new_content_rendering_delay() { | 129 base::TimeDelta new_content_rendering_delay() { |
129 return new_content_rendering_delay_; | 130 return new_content_rendering_delay_; |
130 } | 131 } |
131 | 132 |
132 void set_owner_delegate(RenderWidgetHostOwnerDelegate* owner_delegate) { | 133 void set_owner_delegate(RenderWidgetHostOwnerDelegate* owner_delegate) { |
133 owner_delegate_ = owner_delegate; | 134 owner_delegate_ = owner_delegate; |
134 } | 135 } |
135 | 136 |
136 RenderWidgetHostOwnerDelegate* owner_delegate() { return owner_delegate_; } | 137 RenderWidgetHostOwnerDelegate* owner_delegate() { return owner_delegate_; } |
137 | 138 |
| 139 cc::FrameSinkId AllocateFrameSinkId(bool is_guest_view_hack); |
| 140 |
138 // RenderWidgetHost implementation. | 141 // RenderWidgetHost implementation. |
139 void UpdateTextDirection(blink::WebTextDirection direction) override; | 142 void UpdateTextDirection(blink::WebTextDirection direction) override; |
140 void NotifyTextDirection() override; | 143 void NotifyTextDirection() override; |
141 void Focus() override; | 144 void Focus() override; |
142 void Blur() override; | 145 void Blur() override; |
143 void SetActive(bool active) override; | 146 void SetActive(bool active) override; |
144 void CopyFromBackingStore(const gfx::Rect& src_rect, | 147 void CopyFromBackingStore(const gfx::Rect& src_rect, |
145 const gfx::Size& accelerated_dst_size, | 148 const gfx::Size& accelerated_dst_size, |
146 const ReadbackRequestCallback& callback, | 149 const ReadbackRequestCallback& callback, |
147 const SkColorType preferred_color_type) override; | 150 const SkColorType preferred_color_type) override; |
(...skipping 749 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
897 #endif | 900 #endif |
898 | 901 |
899 base::WeakPtrFactory<RenderWidgetHostImpl> weak_factory_; | 902 base::WeakPtrFactory<RenderWidgetHostImpl> weak_factory_; |
900 | 903 |
901 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); | 904 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); |
902 }; | 905 }; |
903 | 906 |
904 } // namespace content | 907 } // namespace content |
905 | 908 |
906 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ | 909 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ |
OLD | NEW |