summaryrefslogtreecommitdiffstats
path: root/content/renderer/render_widget_fullscreen.h
blob: fa2e1a6cb3e9e078e98abb3108049346de5c4e31 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef CONTENT_RENDERER_RENDER_WIDGET_FULLSCREEN_H_
#define CONTENT_RENDERER_RENDER_WIDGET_FULLSCREEN_H_

#include "content/renderer/render_widget.h"

#include "third_party/WebKit/Source/WebKit/chromium/public/WebWidget.h"

namespace content {

// TODO(boliu): Override non-supported methods with no-op? eg setWindowRect().
class RenderWidgetFullscreen : public RenderWidget {
 public:
  // Creates a new RenderWidget.  The opener_id is the routing ID of the
  // RenderView that this widget lives inside.
  static RenderWidgetFullscreen* Create(int32 opener_id);

  virtual void show(WebKit::WebNavigationPolicy);

 protected:
  RenderWidgetFullscreen(const WebKit::WebScreenInfo& screen_info);
  virtual ~RenderWidgetFullscreen();

  virtual WebKit::WebWidget* CreateWebWidget();

  void Init(int32 opener_id);
};

}  // namespace content

#endif  // CONTENT_RENDERER_RENDER_WIDGET_FULLSCREEN_H_