Extract SIGPIPE ignoring code to a common place.
[chromium-blink-merge.git] / content / renderer / render_widget_fullscreen.h
blobfa2e1a6cb3e9e078e98abb3108049346de5c4e31
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
3 // found in the LICENSE file.
5 #ifndef CONTENT_RENDERER_RENDER_WIDGET_FULLSCREEN_H_
6 #define CONTENT_RENDERER_RENDER_WIDGET_FULLSCREEN_H_
8 #include "content/renderer/render_widget.h"
10 #include "third_party/WebKit/Source/WebKit/chromium/public/WebWidget.h"
12 namespace content {
14 // TODO(boliu): Override non-supported methods with no-op? eg setWindowRect().
15 class RenderWidgetFullscreen : public RenderWidget {
16 public:
17 // Creates a new RenderWidget. The opener_id is the routing ID of the
18 // RenderView that this widget lives inside.
19 static RenderWidgetFullscreen* Create(int32 opener_id);
21 virtual void show(WebKit::WebNavigationPolicy);
23 protected:
24 RenderWidgetFullscreen(const WebKit::WebScreenInfo& screen_info);
25 virtual ~RenderWidgetFullscreen();
27 virtual WebKit::WebWidget* CreateWebWidget();
29 void Init(int32 opener_id);
32 } // namespace content
34 #endif // CONTENT_RENDERER_RENDER_WIDGET_FULLSCREEN_H_