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

Side by Side Diff: third_party/WebKit/Source/core/html/HTMLMediaElement.cpp

Issue 2199783002: Clarify fullscreenElement vs. currentFullScreenElement distinction (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 months 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) 2007, 2008, 2009, 2010, 2011, 2012, 2013 Apple Inc. All rights reserved. 2 * Copyright (C) 2007, 2008, 2009, 2010, 2011, 2012, 2013 Apple Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 3241 matching lines...) Expand 10 before | Expand all | Expand 10 after
3252 3252
3253 // Wait for any pending events to be fired. 3253 // Wait for any pending events to be fired.
3254 if (m_asyncEventQueue->hasPendingEvents()) 3254 if (m_asyncEventQueue->hasPendingEvents())
3255 return true; 3255 return true;
3256 3256
3257 return false; 3257 return false;
3258 } 3258 }
3259 3259
3260 bool HTMLMediaElement::isFullscreen() const 3260 bool HTMLMediaElement::isFullscreen() const
3261 { 3261 {
3262 return Fullscreen::isActiveFullScreenElement(*this); 3262 return Fullscreen::isCurrentFullScreenElement(*this);
3263 } 3263 }
3264 3264
3265 void HTMLMediaElement::enterFullscreen() 3265 void HTMLMediaElement::enterFullscreen()
3266 { 3266 {
3267 BLINK_MEDIA_LOG << "enterFullscreen(" << (void*)this << ")"; 3267 BLINK_MEDIA_LOG << "enterFullscreen(" << (void*)this << ")";
3268 3268
3269 Fullscreen::from(document()).requestFullscreen(*this, Fullscreen::PrefixedRe quest); 3269 Fullscreen::from(document()).requestFullscreen(*this, Fullscreen::PrefixedRe quest);
3270 } 3270 }
3271 3271
3272 void HTMLMediaElement::exitFullscreen() 3272 void HTMLMediaElement::exitFullscreen()
(...skipping 747 matching lines...) Expand 10 before | Expand all | Expand 10 after
4020 4020
4021 IntRect HTMLMediaElement::AutoplayHelperClientImpl::absoluteBoundingBoxRect() co nst 4021 IntRect HTMLMediaElement::AutoplayHelperClientImpl::absoluteBoundingBoxRect() co nst
4022 { 4022 {
4023 IntRect result; 4023 IntRect result;
4024 if (LayoutObject* object = m_element->layoutObject()) 4024 if (LayoutObject* object = m_element->layoutObject())
4025 result = object->absoluteBoundingBoxRect(); 4025 result = object->absoluteBoundingBoxRect();
4026 return result; 4026 return result;
4027 } 4027 }
4028 4028
4029 } // namespace blink 4029 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/dom/LayoutTreeBuilder.cpp ('k') | third_party/WebKit/Source/core/layout/LayoutInline.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698