| 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 | 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2012 Apple Inc. All |
| 7 * rights reserved. | 7 * rights reserved. |
| 8 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. | 8 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. |
| 9 * (http://www.torchmobile.com/) | 9 * (http://www.torchmobile.com/) |
| 10 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) | 10 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 56 virtual ~Fullscreen(); | 56 virtual ~Fullscreen(); |
| 57 static const char* supplementName(); | 57 static const char* supplementName(); |
| 58 static Fullscreen& from(Document&); | 58 static Fullscreen& from(Document&); |
| 59 static Fullscreen* fromIfExists(Document&); | 59 static Fullscreen* fromIfExists(Document&); |
| 60 static Element* fullscreenElementFrom(Document&); | 60 static Element* fullscreenElementFrom(Document&); |
| 61 static Element* fullscreenElementForBindingFrom(TreeScope&); | 61 static Element* fullscreenElementForBindingFrom(TreeScope&); |
| 62 static Element* currentFullScreenElementFrom(Document&); | 62 static Element* currentFullScreenElementFrom(Document&); |
| 63 static Element* currentFullScreenElementForBindingFrom(Document&); | 63 static Element* currentFullScreenElementForBindingFrom(Document&); |
| 64 static bool isCurrentFullScreenElement(const Element&); | 64 static bool isCurrentFullScreenElement(const Element&); |
| 65 | 65 |
| 66 enum RequestType { | 66 enum class RequestType { |
| 67 // Element.requestFullscreen() | 67 // Element.requestFullscreen() |
| 68 UnprefixedRequest, | 68 Unprefixed, |
| 69 // Element.webkitRequestFullscreen()/webkitRequestFullScreen() and | 69 // Element.webkitRequestFullscreen()/webkitRequestFullScreen() and |
| 70 // HTMLVideoElement.webkitEnterFullscreen()/webkitEnterFullScreen() | 70 // HTMLVideoElement.webkitEnterFullscreen()/webkitEnterFullScreen() |
| 71 PrefixedRequest, | 71 Prefixed, |
| 72 }; | 72 }; |
| 73 | 73 |
| 74 static void requestFullscreen(Element&); |
| 75 |
| 74 // |forCrossProcessDescendant| is used in OOPIF scenarios and is set to | 76 // |forCrossProcessDescendant| is used in OOPIF scenarios and is set to |
| 75 // true when fullscreen is requested for an out-of-process descendant | 77 // true when fullscreen is requested for an out-of-process descendant |
| 76 // element. | 78 // element. |
| 77 static void requestFullscreen(Element&, | 79 static void requestFullscreen(Element&, |
| 78 RequestType, | 80 RequestType, |
| 79 bool forCrossProcessDescendant = false); | 81 bool forCrossProcessDescendant = false); |
| 80 | 82 |
| 81 static void fullyExitFullscreen(Document&); | 83 static void fullyExitFullscreen(Document&); |
| 82 static void exitFullscreen(Document&); | 84 static void exitFullscreen(Document&); |
| 83 | 85 |
| (...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 168 | 170 |
| 169 inline bool Fullscreen::isCurrentFullScreenElement(const Element& element) { | 171 inline bool Fullscreen::isCurrentFullScreenElement(const Element& element) { |
| 170 if (Fullscreen* found = fromIfExists(element.document())) | 172 if (Fullscreen* found = fromIfExists(element.document())) |
| 171 return found->currentFullScreenElement() == &element; | 173 return found->currentFullScreenElement() == &element; |
| 172 return false; | 174 return false; |
| 173 } | 175 } |
| 174 | 176 |
| 175 } // namespace blink | 177 } // namespace blink |
| 176 | 178 |
| 177 #endif // Fullscreen_h | 179 #endif // Fullscreen_h |
| OLD | NEW |