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

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

Issue 2107233002: Reland "Implement FullScreen using top layer." (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: new untested DCHECK 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 unified diff | Download patch
OLDNEW
(Empty)
1
2 // Copyright 2016 The Chromium Authors. All rights reserved.
3 // Use of this source code is governed by a BSD-style license that can be
4 // found in the LICENSE file.
5
6 #ifndef LayoutFullScreenItem_h
7 #define LayoutFullScreenItem_h
8
9 #include "core/layout/LayoutBlock.h"
10 #include "core/layout/api/LayoutBlockItem.h"
11
12 namespace blink {
13
14 class LayoutFullScreenItem : public LayoutBlockItem {
15 public:
16 explicit LayoutFullScreenItem(LayoutBlock* layoutBlock)
17 : LayoutBlockItem(layoutBlock)
18 {
19 }
20
21 explicit LayoutFullScreenItem(const LayoutBlockItem& item)
22 : LayoutBlockItem(item)
23 {
24 ASSERT_WITH_SECURITY_IMPLICATION(!item || item.isLayoutFullScreen());
25 }
26
27 explicit LayoutFullScreenItem(std::nullptr_t) : LayoutBlockItem(nullptr) { }
28
29 LayoutFullScreenItem() { }
30
31 void unwrapLayoutObject()
32 {
33 return toFullScreen()->unwrapLayoutObject();
34 }
35
36 private:
37 LayoutFullScreen* toFullScreen() { return toLayoutFullScreen(layoutObject()) ; }
38 const LayoutFullScreen* toFullScreen() const { return toLayoutFullScreen(lay outObject()); }
39 };
40
41 } // namespace blink
42
43 #endif // LayoutFullScreenItem_h
OLDNEW
« 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