| 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_RENDERER_RENDER_WIDGET_H_ | 5 #ifndef CONTENT_RENDERER_RENDER_WIDGET_H_ |
| 6 #define CONTENT_RENDERER_RENDER_WIDGET_H_ | 6 #define CONTENT_RENDERER_RENDER_WIDGET_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| (...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 177 void RegisterVideoHoleFrame(RenderFrameImpl* frame); | 177 void RegisterVideoHoleFrame(RenderFrameImpl* frame); |
| 178 void UnregisterVideoHoleFrame(RenderFrameImpl* frame); | 178 void UnregisterVideoHoleFrame(RenderFrameImpl* frame); |
| 179 #endif // defined(VIDEO_HOLE) | 179 #endif // defined(VIDEO_HOLE) |
| 180 | 180 |
| 181 // IPC::Listener | 181 // IPC::Listener |
| 182 bool OnMessageReceived(const IPC::Message& msg) override; | 182 bool OnMessageReceived(const IPC::Message& msg) override; |
| 183 | 183 |
| 184 // IPC::Sender | 184 // IPC::Sender |
| 185 bool Send(IPC::Message* msg) override; | 185 bool Send(IPC::Message* msg) override; |
| 186 | 186 |
| 187 // Requests a BeginMainFrame callback from the compositor. |
| 188 void SetNeedsMainFrame(); |
| 189 |
| 187 // RenderWidgetCompositorDelegate | 190 // RenderWidgetCompositorDelegate |
| 188 void ApplyViewportDeltas(const gfx::Vector2dF& inner_delta, | 191 void ApplyViewportDeltas(const gfx::Vector2dF& inner_delta, |
| 189 const gfx::Vector2dF& outer_delta, | 192 const gfx::Vector2dF& outer_delta, |
| 190 const gfx::Vector2dF& elastic_overscroll_delta, | 193 const gfx::Vector2dF& elastic_overscroll_delta, |
| 191 float page_scale, | 194 float page_scale, |
| 192 float top_controls_delta) override; | 195 float top_controls_delta) override; |
| 193 void BeginMainFrame(double frame_time_sec) override; | 196 void BeginMainFrame(double frame_time_sec) override; |
| 194 std::unique_ptr<cc::OutputSurface> CreateOutputSurface( | 197 std::unique_ptr<cc::OutputSurface> CreateOutputSurface( |
| 195 bool fallback) override; | 198 bool fallback) override; |
| 196 std::unique_ptr<cc::BeginFrameSource> CreateExternalBeginFrameSource() | 199 std::unique_ptr<cc::BeginFrameSource> CreateExternalBeginFrameSource() |
| (...skipping 597 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 794 // This reference is set by the RenderFrame and is used to query the IME- | 797 // This reference is set by the RenderFrame and is used to query the IME- |
| 795 // related state from the plugin to later send to the browser. | 798 // related state from the plugin to later send to the browser. |
| 796 PepperPluginInstanceImpl* focused_pepper_plugin_; | 799 PepperPluginInstanceImpl* focused_pepper_plugin_; |
| 797 | 800 |
| 798 DISALLOW_COPY_AND_ASSIGN(RenderWidget); | 801 DISALLOW_COPY_AND_ASSIGN(RenderWidget); |
| 799 }; | 802 }; |
| 800 | 803 |
| 801 } // namespace content | 804 } // namespace content |
| 802 | 805 |
| 803 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ | 806 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ |
| OLD | NEW |