| 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_FULLSCREEN_PEPPER_H_ | 5 #ifndef CONTENT_RENDERER_RENDER_WIDGET_FULLSCREEN_PEPPER_H_ |
| 6 #define CONTENT_RENDERER_RENDER_WIDGET_FULLSCREEN_PEPPER_H_ | 6 #define CONTENT_RENDERER_RENDER_WIDGET_FULLSCREEN_PEPPER_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <memory> | 10 #include <memory> |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 57 | 57 |
| 58 protected: | 58 protected: |
| 59 RenderWidgetFullscreenPepper(CompositorDependencies* compositor_deps, | 59 RenderWidgetFullscreenPepper(CompositorDependencies* compositor_deps, |
| 60 PepperPluginInstanceImpl* plugin, | 60 PepperPluginInstanceImpl* plugin, |
| 61 const GURL& active_url, | 61 const GURL& active_url, |
| 62 const ScreenInfo& screen_info); | 62 const ScreenInfo& screen_info); |
| 63 ~RenderWidgetFullscreenPepper() override; | 63 ~RenderWidgetFullscreenPepper() override; |
| 64 | 64 |
| 65 // RenderWidget API. | 65 // RenderWidget API. |
| 66 void DidInitiatePaint() override; | 66 void DidInitiatePaint() override; |
| 67 void DidFlushPaint() override; | |
| 68 void Close() override; | 67 void Close() override; |
| 69 void OnResize(const ResizeParams& params) override; | 68 void OnResize(const ResizeParams& params) override; |
| 70 | 69 |
| 71 // RenderWidgetFullscreen API. | 70 // RenderWidgetFullscreen API. |
| 72 blink::WebWidget* CreateWebWidget() override; | 71 blink::WebWidget* CreateWebWidget() override; |
| 73 | 72 |
| 74 // RenderWidget overrides. | 73 // RenderWidget overrides. |
| 75 GURL GetURLForGraphicsContext3D() override; | 74 GURL GetURLForGraphicsContext3D() override; |
| 76 void OnDeviceScaleFactorChanged() override; | 75 void OnDeviceScaleFactorChanged() override; |
| 77 | 76 |
| 78 private: | 77 private: |
| 79 // URL that is responsible for this widget, passed to ggl::CreateViewContext. | 78 // URL that is responsible for this widget, passed to ggl::CreateViewContext. |
| 80 GURL active_url_; | 79 GURL active_url_; |
| 81 | 80 |
| 82 // The plugin instance this widget wraps. | 81 // The plugin instance this widget wraps. |
| 83 PepperPluginInstanceImpl* plugin_; | 82 PepperPluginInstanceImpl* plugin_; |
| 84 | 83 |
| 85 blink::WebLayer* layer_; | 84 blink::WebLayer* layer_; |
| 86 | 85 |
| 87 std::unique_ptr<MouseLockDispatcher> mouse_lock_dispatcher_; | 86 std::unique_ptr<MouseLockDispatcher> mouse_lock_dispatcher_; |
| 88 | 87 |
| 89 DISALLOW_COPY_AND_ASSIGN(RenderWidgetFullscreenPepper); | 88 DISALLOW_COPY_AND_ASSIGN(RenderWidgetFullscreenPepper); |
| 90 }; | 89 }; |
| 91 | 90 |
| 92 } // namespace content | 91 } // namespace content |
| 93 | 92 |
| 94 #endif // CONTENT_RENDERER_RENDER_WIDGET_FULLSCREEN_PEPPER_H_ | 93 #endif // CONTENT_RENDERER_RENDER_WIDGET_FULLSCREEN_PEPPER_H_ |
| OLD | NEW |