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