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 "base/macros.h" | 10 #include "base/macros.h" |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
64 void DidInitiatePaint() override; | 64 void DidInitiatePaint() override; |
65 void DidFlushPaint() override; | 65 void DidFlushPaint() override; |
66 void Close() override; | 66 void Close() override; |
67 void OnResize(const ResizeParams& params) override; | 67 void OnResize(const ResizeParams& params) override; |
68 | 68 |
69 // RenderWidgetFullscreen API. | 69 // RenderWidgetFullscreen API. |
70 blink::WebWidget* CreateWebWidget() override; | 70 blink::WebWidget* CreateWebWidget() override; |
71 | 71 |
72 // RenderWidget overrides. | 72 // RenderWidget overrides. |
73 GURL GetURLForGraphicsContext3D() override; | 73 GURL GetURLForGraphicsContext3D() override; |
74 void SetDeviceScaleFactor(float device_scale_factor) override; | 74 void OnDeviceScaleFactorChanged() override; |
75 | 75 |
76 private: | 76 private: |
77 // URL that is responsible for this widget, passed to ggl::CreateViewContext. | 77 // URL that is responsible for this widget, passed to ggl::CreateViewContext. |
78 GURL active_url_; | 78 GURL active_url_; |
79 | 79 |
80 // The plugin instance this widget wraps. | 80 // The plugin instance this widget wraps. |
81 PepperPluginInstanceImpl* plugin_; | 81 PepperPluginInstanceImpl* plugin_; |
82 | 82 |
83 blink::WebLayer* layer_; | 83 blink::WebLayer* layer_; |
84 | 84 |
85 scoped_ptr<MouseLockDispatcher> mouse_lock_dispatcher_; | 85 scoped_ptr<MouseLockDispatcher> mouse_lock_dispatcher_; |
86 | 86 |
87 DISALLOW_COPY_AND_ASSIGN(RenderWidgetFullscreenPepper); | 87 DISALLOW_COPY_AND_ASSIGN(RenderWidgetFullscreenPepper); |
88 }; | 88 }; |
89 | 89 |
90 } // namespace content | 90 } // namespace content |
91 | 91 |
92 #endif // CONTENT_RENDERER_RENDER_WIDGET_FULLSCREEN_PEPPER_H_ | 92 #endif // CONTENT_RENDERER_RENDER_WIDGET_FULLSCREEN_PEPPER_H_ |
OLD | NEW |