Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(532)

Unified Diff: third_party/WebKit/Source/core/layout/api/LayoutFullScreenItem.h

Issue 2168373002: Revert of Reland "Implement FullScreen using top layer." (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: resolve WebFrameTest.cpp conflict and appease presubmit Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/layout/api/LayoutFullScreenItem.h
diff --git a/third_party/WebKit/Source/core/layout/api/LayoutFullScreenItem.h b/third_party/WebKit/Source/core/layout/api/LayoutFullScreenItem.h
new file mode 100644
index 0000000000000000000000000000000000000000..78c07da37809c479204f040c7159c1f99e4f90fe
--- /dev/null
+++ b/third_party/WebKit/Source/core/layout/api/LayoutFullScreenItem.h
@@ -0,0 +1,43 @@
+
+// Copyright 2016 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 LayoutFullScreenItem_h
+#define LayoutFullScreenItem_h
+
+#include "core/layout/LayoutBlock.h"
+#include "core/layout/api/LayoutBlockItem.h"
+
+namespace blink {
+
+class LayoutFullScreenItem : public LayoutBlockItem {
+public:
+ explicit LayoutFullScreenItem(LayoutBlock* layoutBlock)
+ : LayoutBlockItem(layoutBlock)
+ {
+ }
+
+ explicit LayoutFullScreenItem(const LayoutBlockItem& item)
+ : LayoutBlockItem(item)
+ {
+ SECURITY_DCHECK(!item || item.isLayoutFullScreen());
+ }
+
+ explicit LayoutFullScreenItem(std::nullptr_t) : LayoutBlockItem(nullptr) { }
+
+ LayoutFullScreenItem() { }
+
+ void unwrapLayoutObject()
+ {
+ return toFullScreen()->unwrapLayoutObject();
+ }
+
+private:
+ LayoutFullScreen* toFullScreen() { return toLayoutFullScreen(layoutObject()); }
+ const LayoutFullScreen* toFullScreen() const { return toLayoutFullScreen(layoutObject()); }
+};
+
+} // namespace blink
+
+#endif // LayoutFullScreenItem_h
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutVideo.cpp ('k') | third_party/WebKit/Source/core/layout/api/LayoutItem.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698