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

Side by Side Diff: third_party/WebKit/Source/core/dom/Fullscreen.h

Issue 2340263003: Move Document.fullscreenElement to DocumentOrShadowRoot (Closed)
Patch Set: Style nit Created 4 years, 1 month 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
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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 public Supplement<Document>, 51 public Supplement<Document>,
52 public ContextLifecycleObserver { 52 public ContextLifecycleObserver {
53 USING_GARBAGE_COLLECTED_MIXIN(Fullscreen); 53 USING_GARBAGE_COLLECTED_MIXIN(Fullscreen);
54 54
55 public: 55 public:
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* currentFullScreenElementFrom(Document&); 62 static Element* currentFullScreenElementFrom(Document&);
63 static Element* currentFullScreenElementForBindingFrom(Document&);
62 static bool isCurrentFullScreenElement(const Element&); 64 static bool isCurrentFullScreenElement(const Element&);
63 65
64 enum RequestType { 66 enum RequestType {
65 // Element.requestFullscreen() 67 // Element.requestFullscreen()
66 UnprefixedRequest, 68 UnprefixedRequest,
67 // Element.webkitRequestFullscreen()/webkitRequestFullScreen() and 69 // Element.webkitRequestFullscreen()/webkitRequestFullScreen() and
68 // HTMLVideoElement.webkitEnterFullscreen()/webkitEnterFullScreen() 70 // HTMLVideoElement.webkitEnterFullscreen()/webkitEnterFullScreen()
69 PrefixedRequest, 71 PrefixedRequest,
70 }; 72 };
71 73
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
163 165
164 inline bool Fullscreen::isCurrentFullScreenElement(const Element& element) { 166 inline bool Fullscreen::isCurrentFullScreenElement(const Element& element) {
165 if (Fullscreen* found = fromIfExists(element.document())) 167 if (Fullscreen* found = fromIfExists(element.document()))
166 return found->currentFullScreenElement() == &element; 168 return found->currentFullScreenElement() == &element;
167 return false; 169 return false;
168 } 170 }
169 171
170 } // namespace blink 172 } // namespace blink
171 173
172 #endif // Fullscreen_h 174 #endif // Fullscreen_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/dom/DocumentOrShadowRoot.idl ('k') | third_party/WebKit/Source/core/dom/Fullscreen.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698