OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) |
3 * (C) 1999 Antti Koivisto (koivisto@kde.org) | 3 * (C) 1999 Antti Koivisto (koivisto@kde.org) |
4 * (C) 2001 Dirk Mueller (mueller@kde.org) | 4 * (C) 2001 Dirk Mueller (mueller@kde.org) |
5 * (C) 2006 Alexey Proskuryakov (ap@webkit.org) | 5 * (C) 2006 Alexey Proskuryakov (ap@webkit.org) |
6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2012 Apple Inc. All r
ights reserved. | 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2012 Apple Inc. All r
ights reserved. |
7 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t
orchmobile.com/) | 7 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t
orchmobile.com/) |
8 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) | 8 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) |
9 * Copyright (C) 2013 Google Inc. All rights reserved. | 9 * Copyright (C) 2013 Google Inc. All rights reserved. |
10 * | 10 * |
(...skipping 25 matching lines...) Expand all Loading... |
36 #include "platform/geometry/LayoutRect.h" | 36 #include "platform/geometry/LayoutRect.h" |
37 #include "wtf/Deque.h" | 37 #include "wtf/Deque.h" |
38 #include "wtf/RefPtr.h" | 38 #include "wtf/RefPtr.h" |
39 #include "wtf/Vector.h" | 39 #include "wtf/Vector.h" |
40 | 40 |
41 namespace blink { | 41 namespace blink { |
42 | 42 |
43 class RenderFullScreen; | 43 class RenderFullScreen; |
44 class RenderStyle; | 44 class RenderStyle; |
45 | 45 |
46 class Fullscreen FINAL | 46 class Fullscreen final |
47 : public NoBaseWillBeGarbageCollectedFinalized<Fullscreen> | 47 : public NoBaseWillBeGarbageCollectedFinalized<Fullscreen> |
48 , public DocumentSupplement | 48 , public DocumentSupplement |
49 , public DocumentLifecycleObserver { | 49 , public DocumentLifecycleObserver { |
50 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(Fullscreen); | 50 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(Fullscreen); |
51 public: | 51 public: |
52 virtual ~Fullscreen(); | 52 virtual ~Fullscreen(); |
53 static const char* supplementName(); | 53 static const char* supplementName(); |
54 static Fullscreen& from(Document&); | 54 static Fullscreen& from(Document&); |
55 static Fullscreen* fromIfExists(Document&); | 55 static Fullscreen* fromIfExists(Document&); |
56 static Element* fullscreenElementFrom(Document&); | 56 static Element* fullscreenElementFrom(Document&); |
(...skipping 22 matching lines...) Expand all Loading... |
79 void setFullScreenRenderer(RenderFullScreen*); | 79 void setFullScreenRenderer(RenderFullScreen*); |
80 RenderFullScreen* fullScreenRenderer() const { return m_fullScreenRenderer;
} | 80 RenderFullScreen* fullScreenRenderer() const { return m_fullScreenRenderer;
} |
81 void fullScreenRendererDestroyed(); | 81 void fullScreenRendererDestroyed(); |
82 | 82 |
83 void elementRemoved(Element&); | 83 void elementRemoved(Element&); |
84 | 84 |
85 // Mozilla API | 85 // Mozilla API |
86 bool webkitFullScreenKeyboardInputAllowed() const { return m_fullScreenEleme
nt.get() && m_areKeysEnabledInFullScreen; } | 86 bool webkitFullScreenKeyboardInputAllowed() const { return m_fullScreenEleme
nt.get() && m_areKeysEnabledInFullScreen; } |
87 Element* webkitCurrentFullScreenElement() const { return m_fullScreenElement
.get(); } | 87 Element* webkitCurrentFullScreenElement() const { return m_fullScreenElement
.get(); } |
88 | 88 |
89 virtual void documentWasDetached() OVERRIDE; | 89 virtual void documentWasDetached() override; |
90 #if !ENABLE(OILPAN) | 90 #if !ENABLE(OILPAN) |
91 virtual void documentWasDisposed() OVERRIDE; | 91 virtual void documentWasDisposed() override; |
92 #endif | 92 #endif |
93 | 93 |
94 virtual void trace(Visitor*) OVERRIDE; | 94 virtual void trace(Visitor*) override; |
95 | 95 |
96 private: | 96 private: |
97 static Fullscreen* fromIfExistsSlow(Document&); | 97 static Fullscreen* fromIfExistsSlow(Document&); |
98 | 98 |
99 explicit Fullscreen(Document&); | 99 explicit Fullscreen(Document&); |
100 | 100 |
101 Document* document(); | 101 Document* document(); |
102 | 102 |
103 void clearFullscreenElementStack(); | 103 void clearFullscreenElementStack(); |
104 void popFullscreenElementStack(); | 104 void popFullscreenElementStack(); |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
138 // Needed by the HeapVector<> element stack. | 138 // Needed by the HeapVector<> element stack. |
139 namespace WTF { | 139 namespace WTF { |
140 | 140 |
141 template<>struct IsPod<blink::Fullscreen::RequestType> { | 141 template<>struct IsPod<blink::Fullscreen::RequestType> { |
142 static const bool value = true; | 142 static const bool value = true; |
143 }; | 143 }; |
144 | 144 |
145 } // namespace WTF | 145 } // namespace WTF |
146 | 146 |
147 #endif // Fullscreen_h | 147 #endif // Fullscreen_h |
OLD | NEW |