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

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

Issue 2202493002: NOT FOR REVIEW: Fullscreen WIP (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase 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 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef DocumentOrShadowRoot_h 5 #ifndef DocumentOrShadowRoot_h
6 #define DocumentOrShadowRoot_h 6 #define DocumentOrShadowRoot_h
7 7
8 #include "core/dom/Document.h" 8 #include "core/dom/Document.h"
9 #include "core/dom/Fullscreen.h" 9 #include "core/dom/Fullscreen.h"
10 #include "core/dom/shadow/ShadowRoot.h" 10 #include "core/dom/shadow/ShadowRoot.h"
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 return nullptr; 69 return nullptr;
70 UseCounter::count(shadowRoot.document(), 70 UseCounter::count(shadowRoot.document(),
71 UseCounter::ShadowRootPointerLockElement); 71 UseCounter::ShadowRootPointerLockElement);
72 const Element* target = shadowRoot.document().pointerLockElement(); 72 const Element* target = shadowRoot.document().pointerLockElement();
73 if (!target) 73 if (!target)
74 return nullptr; 74 return nullptr;
75 return shadowRoot.adjustedElement(*target); 75 return shadowRoot.adjustedElement(*target);
76 } 76 }
77 77
78 static Element* fullscreenElement(TreeScope& scope) { 78 static Element* fullscreenElement(TreeScope& scope) {
79 return Fullscreen::fullscreenElementForBindingFrom(scope); 79 return Fullscreen::fullscreenElementForBinding(scope);
80 } 80 }
81 }; 81 };
82 82
83 } // namespace blink 83 } // namespace blink
84 84
85 #endif // DocumentOrShadowRoot_h 85 #endif // DocumentOrShadowRoot_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/dom/DocumentFullscreen.idl ('k') | third_party/WebKit/Source/core/dom/Element.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698