[email protected] | 69d5c51 | 2012-04-28 06:36:15 | [diff] [blame] | 1 | // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
[email protected] | 48495594 | 2010-08-19 16:13:18 | [diff] [blame] | 2 | // Use of this source code is governed by a BSD-style license that can be |
3 | // found in the LICENSE file. | ||||
4 | |||||
[email protected] | 2cff005 | 2011-03-18 16:51:44 | [diff] [blame] | 5 | #ifndef CONTENT_RENDERER_RENDER_WIDGET_FULLSCREEN_H_ |
6 | #define CONTENT_RENDERER_RENDER_WIDGET_FULLSCREEN_H_ | ||||
[email protected] | 48495594 | 2010-08-19 16:13:18 | [diff] [blame] | 7 | |
[email protected] | 2cff005 | 2011-03-18 16:51:44 | [diff] [blame] | 8 | #include "content/renderer/render_widget.h" |
[email protected] | 48495594 | 2010-08-19 16:13:18 | [diff] [blame] | 9 | |
[email protected] | 2255a933 | 2013-06-17 05:12:31 | [diff] [blame] | 10 | #include "third_party/WebKit/public/web/WebWidget.h" |
[email protected] | 48495594 | 2010-08-19 16:13:18 | [diff] [blame] | 11 | |
[email protected] | e9ff79c | 2012-10-19 21:31:26 | [diff] [blame] | 12 | namespace content { |
13 | |||||
[email protected] | 48495594 | 2010-08-19 16:13:18 | [diff] [blame] | 14 | // TODO(boliu): Override non-supported methods with no-op? eg setWindowRect(). |
15 | class RenderWidgetFullscreen : public RenderWidget { | ||||
16 | public: | ||||
[email protected] | 180ef24 | 2013-11-07 06:50:46 | [diff] [blame] | 17 | virtual void show(blink::WebNavigationPolicy); |
[email protected] | 48495594 | 2010-08-19 16:13:18 | [diff] [blame] | 18 | |
19 | protected: | ||||
[email protected] | 180ef24 | 2013-11-07 06:50:46 | [diff] [blame] | 20 | RenderWidgetFullscreen(const blink::WebScreenInfo& screen_info); |
dcheng | 6d18e40 | 2014-10-21 12:32:52 | [diff] [blame] | 21 | ~RenderWidgetFullscreen() override; |
[email protected] | 69d5c51 | 2012-04-28 06:36:15 | [diff] [blame] | 22 | |
[email protected] | 180ef24 | 2013-11-07 06:50:46 | [diff] [blame] | 23 | virtual blink::WebWidget* CreateWebWidget(); |
[email protected] | 48495594 | 2010-08-19 16:13:18 | [diff] [blame] | 24 | |
[email protected] | a635f94 | 2012-12-07 10:34:29 | [diff] [blame] | 25 | bool Init(int32 opener_id); |
[email protected] | 48495594 | 2010-08-19 16:13:18 | [diff] [blame] | 26 | }; |
27 | |||||
[email protected] | e9ff79c | 2012-10-19 21:31:26 | [diff] [blame] | 28 | } // namespace content |
29 | |||||
[email protected] | 2cff005 | 2011-03-18 16:51:44 | [diff] [blame] | 30 | #endif // CONTENT_RENDERER_RENDER_WIDGET_FULLSCREEN_H_ |