| OLD | NEW |
| (Empty) |
| 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. | |
| 4 | |
| 5 #ifndef CONTENT_RENDERER_RENDER_WIDGET_FULLSCREEN_H_ | |
| 6 #define CONTENT_RENDERER_RENDER_WIDGET_FULLSCREEN_H_ | |
| 7 | |
| 8 #include "content/renderer/render_widget.h" | |
| 9 | |
| 10 #include <stdint.h> | |
| 11 | |
| 12 #include "third_party/WebKit/public/web/WebWidget.h" | |
| 13 | |
| 14 namespace content { | |
| 15 class CompositorDependencies; | |
| 16 | |
| 17 // TODO(boliu): Override non-supported methods with no-op? eg setWindowRect(). | |
| 18 class RenderWidgetFullscreen : public RenderWidget { | |
| 19 public: | |
| 20 void show(blink::WebNavigationPolicy) override; | |
| 21 | |
| 22 protected: | |
| 23 static int32_t CreateFullscreenWidgetRoutingId(int32_t opener_id); | |
| 24 | |
| 25 RenderWidgetFullscreen(int32_t widget_routing_id, | |
| 26 CompositorDependencies* compositor_deps, | |
| 27 const ScreenInfo& screen_info); | |
| 28 ~RenderWidgetFullscreen() override; | |
| 29 | |
| 30 virtual blink::WebWidget* CreateWebWidget(); | |
| 31 | |
| 32 bool Init(int32_t opener_id); | |
| 33 }; | |
| 34 | |
| 35 } // namespace content | |
| 36 | |
| 37 #endif // CONTENT_RENDERER_RENDER_WIDGET_FULLSCREEN_H_ | |
| OLD | NEW |