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 <list> | 8 #include <list> |
9 #include <map> | 9 #include <map> |
10 #include <string> | 10 #include <string> |
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
152 void RestartHangMonitorTimeout() override; | 152 void RestartHangMonitorTimeout() override; |
153 void SetIgnoreInputEvents(bool ignore_input_events) override; | 153 void SetIgnoreInputEvents(bool ignore_input_events) override; |
154 void WasResized() override; | 154 void WasResized() override; |
155 void AddKeyPressEventCallback(const KeyPressEventCallback& callback) override; | 155 void AddKeyPressEventCallback(const KeyPressEventCallback& callback) override; |
156 void RemoveKeyPressEventCallback( | 156 void RemoveKeyPressEventCallback( |
157 const KeyPressEventCallback& callback) override; | 157 const KeyPressEventCallback& callback) override; |
158 void AddMouseEventCallback(const MouseEventCallback& callback) override; | 158 void AddMouseEventCallback(const MouseEventCallback& callback) override; |
159 void RemoveMouseEventCallback(const MouseEventCallback& callback) override; | 159 void RemoveMouseEventCallback(const MouseEventCallback& callback) override; |
160 void GetWebScreenInfo(blink::WebScreenInfo* result) override; | 160 void GetWebScreenInfo(blink::WebScreenInfo* result) override; |
161 bool GetScreenColorProfile(std::vector<char>* color_profile) override; | 161 bool GetScreenColorProfile(std::vector<char>* color_profile) override; |
162 void HandleCompositorProto(const std::vector<char>& proto) override; | |
162 | 163 |
163 // Notification that the screen info has changed. | 164 // Notification that the screen info has changed. |
164 void NotifyScreenInfoChanged(); | 165 void NotifyScreenInfoChanged(); |
165 | 166 |
166 // Forces redraw in the renderer and when the update reaches the browser | 167 // Forces redraw in the renderer and when the update reaches the browser |
167 // grabs snapshot from the compositor. Returns PNG-encoded snapshot. | 168 // grabs snapshot from the compositor. Returns PNG-encoded snapshot. |
168 using GetSnapshotFromBrowserCallback = | 169 using GetSnapshotFromBrowserCallback = |
169 base::Callback<void(const unsigned char*, size_t)>; | 170 base::Callback<void(const unsigned char*, size_t)>; |
170 void GetSnapshotFromBrowser(const GetSnapshotFromBrowserCallback& callback); | 171 void GetSnapshotFromBrowser(const GetSnapshotFromBrowserCallback& callback); |
171 | 172 |
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
271 // Starts the rendering timeout, which will clear displayed graphics if | 272 // Starts the rendering timeout, which will clear displayed graphics if |
272 // a new compositor frame is not received before it expires. | 273 // a new compositor frame is not received before it expires. |
273 void StartNewContentRenderingTimeout(); | 274 void StartNewContentRenderingTimeout(); |
274 | 275 |
275 // Notification that a new compositor frame has been generated following | 276 // Notification that a new compositor frame has been generated following |
276 // a page load. This stops |new_content_rendering_timeout_|, or prevents | 277 // a page load. This stops |new_content_rendering_timeout_|, or prevents |
277 // the timer from running if the load commit message hasn't been received | 278 // the timer from running if the load commit message hasn't been received |
278 // yet. | 279 // yet. |
279 void OnFirstPaintAfterLoad(); | 280 void OnFirstPaintAfterLoad(); |
280 | 281 |
282 void OnHandleCompositorProto(const std::vector<char>& proto); | |
no sievers
2015/11/14 00:13:43
nit: can it be private?
David Trainor- moved to gerrit
2015/11/16 04:33:58
Done.
| |
283 | |
281 // Forwards the given message to the renderer. These are called by the view | 284 // Forwards the given message to the renderer. These are called by the view |
282 // when it has received a message. | 285 // when it has received a message. |
283 void ForwardGestureEventWithLatencyInfo( | 286 void ForwardGestureEventWithLatencyInfo( |
284 const blink::WebGestureEvent& gesture_event, | 287 const blink::WebGestureEvent& gesture_event, |
285 const ui::LatencyInfo& ui_latency); | 288 const ui::LatencyInfo& ui_latency); |
286 void ForwardTouchEventWithLatencyInfo( | 289 void ForwardTouchEventWithLatencyInfo( |
287 const blink::WebTouchEvent& touch_event, | 290 const blink::WebTouchEvent& touch_event, |
288 const ui::LatencyInfo& ui_latency); | 291 const ui::LatencyInfo& ui_latency); |
289 void ForwardMouseEventWithLatencyInfo( | 292 void ForwardMouseEventWithLatencyInfo( |
290 const blink::WebMouseEvent& mouse_event, | 293 const blink::WebMouseEvent& mouse_event, |
(...skipping 530 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
821 scoped_ptr<base::ElapsedTimer> mouse_wheel_coalesce_timer_; | 824 scoped_ptr<base::ElapsedTimer> mouse_wheel_coalesce_timer_; |
822 | 825 |
823 base::WeakPtrFactory<RenderWidgetHostImpl> weak_factory_; | 826 base::WeakPtrFactory<RenderWidgetHostImpl> weak_factory_; |
824 | 827 |
825 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); | 828 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); |
826 }; | 829 }; |
827 | 830 |
828 } // namespace content | 831 } // namespace content |
829 | 832 |
830 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ | 833 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ |
OLD | NEW |