| 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_H_ | 5 #ifndef CONTENT_RENDERER_RENDER_WIDGET_FULLSCREEN_H_ |
| 6 #define CONTENT_RENDERER_RENDER_WIDGET_FULLSCREEN_H_ | 6 #define CONTENT_RENDERER_RENDER_WIDGET_FULLSCREEN_H_ |
| 7 | 7 |
| 8 #include "content/renderer/render_widget.h" | 8 #include "content/renderer/render_widget.h" |
| 9 | 9 |
| 10 #include "third_party/WebKit/public/web/WebWidget.h" | 10 #include "third_party/WebKit/public/web/WebWidget.h" |
| 11 | 11 |
| 12 namespace content { | 12 namespace content { |
| 13 class CompositorDependencies; |
| 13 | 14 |
| 14 // TODO(boliu): Override non-supported methods with no-op? eg setWindowRect(). | 15 // TODO(boliu): Override non-supported methods with no-op? eg setWindowRect(). |
| 15 class RenderWidgetFullscreen : public RenderWidget { | 16 class RenderWidgetFullscreen : public RenderWidget { |
| 16 public: | 17 public: |
| 17 virtual void show(blink::WebNavigationPolicy); | 18 virtual void show(blink::WebNavigationPolicy); |
| 18 | 19 |
| 19 protected: | 20 protected: |
| 20 RenderWidgetFullscreen(const blink::WebScreenInfo& screen_info); | 21 RenderWidgetFullscreen(const blink::WebScreenInfo& screen_info); |
| 21 ~RenderWidgetFullscreen() override; | 22 ~RenderWidgetFullscreen() override; |
| 22 | 23 |
| 23 virtual blink::WebWidget* CreateWebWidget(); | 24 virtual blink::WebWidget* CreateWebWidget(); |
| 24 | 25 |
| 25 bool Init(int32 opener_id); | 26 bool Init(int32 opener_id, CompositorDependencies* compositor_deps); |
| 26 }; | 27 }; |
| 27 | 28 |
| 28 } // namespace content | 29 } // namespace content |
| 29 | 30 |
| 30 #endif // CONTENT_RENDERER_RENDER_WIDGET_FULLSCREEN_H_ | 31 #endif // CONTENT_RENDERER_RENDER_WIDGET_FULLSCREEN_H_ |
| OLD | NEW |