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/Source/WebKit/chromium/public/WebWidget.h" | 10 #include "third_party/WebKit/Source/WebKit/chromium/public/WebWidget.h" |
11 | 11 |
| 12 namespace content { |
| 13 |
12 // TODO(boliu): Override non-supported methods with no-op? eg setWindowRect(). | 14 // TODO(boliu): Override non-supported methods with no-op? eg setWindowRect(). |
13 class RenderWidgetFullscreen : public RenderWidget { | 15 class RenderWidgetFullscreen : public RenderWidget { |
14 public: | 16 public: |
15 // Creates a new RenderWidget. The opener_id is the routing ID of the | 17 // Creates a new RenderWidget. The opener_id is the routing ID of the |
16 // RenderView that this widget lives inside. | 18 // RenderView that this widget lives inside. |
17 static RenderWidgetFullscreen* Create(int32 opener_id); | 19 static RenderWidgetFullscreen* Create(int32 opener_id); |
18 | 20 |
19 virtual void show(WebKit::WebNavigationPolicy); | 21 virtual void show(WebKit::WebNavigationPolicy); |
20 | 22 |
21 protected: | 23 protected: |
22 RenderWidgetFullscreen(const WebKit::WebScreenInfo& screen_info); | 24 RenderWidgetFullscreen(const WebKit::WebScreenInfo& screen_info); |
23 virtual ~RenderWidgetFullscreen(); | 25 virtual ~RenderWidgetFullscreen(); |
24 | 26 |
25 virtual WebKit::WebWidget* CreateWebWidget(); | 27 virtual WebKit::WebWidget* CreateWebWidget(); |
26 | 28 |
27 void Init(int32 opener_id); | 29 void Init(int32 opener_id); |
28 }; | 30 }; |
29 | 31 |
| 32 } // namespace content |
| 33 |
30 #endif // CONTENT_RENDERER_RENDER_WIDGET_FULLSCREEN_H_ | 34 #endif // CONTENT_RENDERER_RENDER_WIDGET_FULLSCREEN_H_ |
OLD | NEW |