| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 CHROME_RENDERER_RENDER_WIDGET_FULLSCREEN_H_ | 5 #ifndef CHROME_RENDERER_RENDER_WIDGET_FULLSCREEN_H_ |
| 6 #define CHROME_RENDERER_RENDER_WIDGET_FULLSCREEN_H_ | 6 #define CHROME_RENDERER_RENDER_WIDGET_FULLSCREEN_H_ |
| 7 | 7 |
| 8 #include "chrome/renderer/render_widget.h" | 8 #include "chrome/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 // TODO(boliu): Override non-supported methods with no-op? eg setWindowRect(). | 12 // TODO(boliu): Override non-supported methods with no-op? eg setWindowRect(). |
| 13 class RenderWidgetFullscreen : public RenderWidget { | 13 class RenderWidgetFullscreen : public RenderWidget { |
| 14 public: | 14 public: |
| 15 // Creates a new RenderWidget. The opener_id is the routing ID of the | 15 // Creates a new RenderWidget. The opener_id is the routing ID of the |
| 16 // RenderView that this widget lives inside. The render_thread is any | 16 // RenderView that this widget lives inside. The render_thread is any |
| 17 // RenderThreadBase implementation, mostly commonly RenderThread::current(). | 17 // RenderThreadBase implementation, mostly commonly RenderThread::current(). |
| 18 static RenderWidgetFullscreen* Create(int32 opener_id, | 18 static RenderWidgetFullscreen* Create(int32 opener_id, |
| 19 RenderThreadBase* render_thread, | 19 RenderThreadBase* render_thread); |
| 20 WebKit::WebPopupType popup_type); | |
| 21 | 20 |
| 22 virtual void show(WebKit::WebNavigationPolicy); | 21 virtual void show(WebKit::WebNavigationPolicy); |
| 23 | 22 |
| 24 protected: | 23 protected: |
| 25 virtual WebKit::WebWidget* CreateWebWidget(); | 24 virtual WebKit::WebWidget* CreateWebWidget(); |
| 26 RenderWidgetFullscreen(RenderThreadBase* render_thread, | 25 RenderWidgetFullscreen(RenderThreadBase* render_thread); |
| 27 WebKit::WebPopupType popup_type); | |
| 28 | 26 |
| 29 void Init(int32 opener_id); | 27 void Init(int32 opener_id); |
| 30 }; | 28 }; |
| 31 | 29 |
| 32 #endif // CHROME_RENDERER_RENDER_WIDGET_FULLSCREEN_H_ | 30 #endif // CHROME_RENDERER_RENDER_WIDGET_FULLSCREEN_H_ |
| OLD | NEW |