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 <stdint.h> | 10 #include <stdint.h> |
11 | 11 |
12 #include "third_party/WebKit/public/web/WebWidget.h" | 12 #include "third_party/WebKit/public/web/WebWidget.h" |
13 | 13 |
14 namespace content { | 14 namespace content { |
15 class CompositorDependencies; | 15 class CompositorDependencies; |
16 | 16 |
17 // TODO(boliu): Override non-supported methods with no-op? eg setWindowRect(). | 17 // TODO(boliu): Override non-supported methods with no-op? eg setWindowRect(). |
18 class RenderWidgetFullscreen : public RenderWidget { | 18 class RenderWidgetFullscreen : public RenderWidget { |
19 public: | 19 public: |
20 void show(blink::WebNavigationPolicy) override; | 20 void show(blink::WebNavigationPolicy) override; |
21 | 21 |
22 protected: | 22 protected: |
23 RenderWidgetFullscreen(CompositorDependencies* compositor_deps, | 23 static int32_t CreateFullscreenWidgetRoutingId(int32_t opener_id); |
| 24 |
| 25 RenderWidgetFullscreen(int32_t widget_routing_id, |
| 26 CompositorDependencies* compositor_deps, |
24 const ScreenInfo& screen_info); | 27 const ScreenInfo& screen_info); |
25 ~RenderWidgetFullscreen() override; | 28 ~RenderWidgetFullscreen() override; |
26 | 29 |
27 virtual blink::WebWidget* CreateWebWidget(); | 30 virtual blink::WebWidget* CreateWebWidget(); |
28 | 31 |
29 bool Init(int32_t opener_id); | 32 bool Init(int32_t opener_id); |
30 }; | 33 }; |
31 | 34 |
32 } // namespace content | 35 } // namespace content |
33 | 36 |
34 #endif // CONTENT_RENDERER_RENDER_WIDGET_FULLSCREEN_H_ | 37 #endif // CONTENT_RENDERER_RENDER_WIDGET_FULLSCREEN_H_ |
OLD | NEW |