| 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
|
|
|