| 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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 51 public: | 51 public: |
| 52 virtual ~FullscreenElementStack(); | 52 virtual ~FullscreenElementStack(); |
| 53 static const char* supplementName(); | 53 static const char* supplementName(); |
| 54 static FullscreenElementStack& from(Document&); | 54 static FullscreenElementStack& from(Document&); |
| 55 static FullscreenElementStack* fromIfExists(Document&); | 55 static FullscreenElementStack* fromIfExists(Document&); |
| 56 static Element* fullscreenElementFrom(Document&); | 56 static Element* fullscreenElementFrom(Document&); |
| 57 static Element* currentFullScreenElementFrom(Document&); | 57 static Element* currentFullScreenElementFrom(Document&); |
| 58 static bool isFullScreen(Document&); | 58 static bool isFullScreen(Document&); |
| 59 static bool isActiveFullScreenElement(const Element&); | 59 static bool isActiveFullScreenElement(const Element&); |
| 60 | 60 |
| 61 enum FullScreenCheckType { | 61 enum RequestType { |
| 62 EnforceIFrameAllowFullScreenRequirement, | 62 PrefixedRequest, // Element.webkitRequestFullscreen() |
| 63 ExemptIFrameAllowFullScreenRequirement, | 63 PrefixedMozillaRequest, // Element.webkitRequestFullScreen() |
| 64 PrefixedMozillaAllowKeyboardInputRequest, // Element.webkitRequestFullSc
reen(Element.ALLOW_KEYBOARD_INPUT) |
| 65 PrefixedVideoRequest, // HTMLVideoElement.webkitEnterFullscreen() and we
bkitEnterFullScreen() |
| 64 }; | 66 }; |
| 65 | 67 |
| 66 void requestFullScreenForElement(Element&, unsigned short flags, FullScreenC
heckType); | 68 void requestFullScreenForElement(Element&, RequestType); |
| 67 void webkitCancelFullScreen(); | 69 void webkitCancelFullScreen(); |
| 68 | 70 |
| 69 void webkitWillEnterFullScreenForElement(Element*); | 71 void webkitWillEnterFullScreenForElement(Element*); |
| 70 void webkitDidEnterFullScreenForElement(Element*); | 72 void webkitDidEnterFullScreenForElement(Element*); |
| 71 void webkitWillExitFullScreenForElement(Element*); | 73 void webkitWillExitFullScreenForElement(Element*); |
| 72 void webkitDidExitFullScreenForElement(Element*); | 74 void webkitDidExitFullScreenForElement(Element*); |
| 73 | 75 |
| 74 void setFullScreenRenderer(RenderFullScreen*); | 76 void setFullScreenRenderer(RenderFullScreen*); |
| 75 RenderFullScreen* fullScreenRenderer() const { return m_fullScreenRenderer;
} | 77 RenderFullScreen* fullScreenRenderer() const { return m_fullScreenRenderer;
} |
| 76 void fullScreenRendererDestroyed(); | 78 void fullScreenRendererDestroyed(); |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 129 inline FullscreenElementStack* FullscreenElementStack::fromIfExists(Document& do
cument) | 131 inline FullscreenElementStack* FullscreenElementStack::fromIfExists(Document& do
cument) |
| 130 { | 132 { |
| 131 if (!document.hasFullscreenElementStack()) | 133 if (!document.hasFullscreenElementStack()) |
| 132 return 0; | 134 return 0; |
| 133 return fromIfExistsSlow(document); | 135 return fromIfExistsSlow(document); |
| 134 } | 136 } |
| 135 | 137 |
| 136 } // namespace WebCore | 138 } // namespace WebCore |
| 137 | 139 |
| 138 #endif // FullscreenElementStack_h | 140 #endif // FullscreenElementStack_h |
| OLD | NEW |