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

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

Issue 297783004: Implement heuristic for showing media controls during playback w/o a mouse (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: IgnoreSelfHover -> IgnoreVideoHover; Tweak comment. Created 6 years, 7 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 | Annotate | Revision Log
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 3627 matching lines...) Expand 10 before | Expand all | Expand 10 after
3638 void HTMLMediaElement::mediaPlayerMediaSourceOpened(blink::WebMediaSource* webMe diaSource) 3638 void HTMLMediaElement::mediaPlayerMediaSourceOpened(blink::WebMediaSource* webMe diaSource)
3639 { 3639 {
3640 m_mediaSource->setWebMediaSourceAndOpen(adoptPtr(webMediaSource)); 3640 m_mediaSource->setWebMediaSourceAndOpen(adoptPtr(webMediaSource));
3641 } 3641 }
3642 3642
3643 bool HTMLMediaElement::isInteractiveContent() const 3643 bool HTMLMediaElement::isInteractiveContent() const
3644 { 3644 {
3645 return fastHasAttribute(controlsAttr); 3645 return fastHasAttribute(controlsAttr);
3646 } 3646 }
3647 3647
3648 void HTMLMediaElement::defaultEventHandler(Event* event)
3649 {
3650 if (event->type() == EventTypeNames::focusin) {
3651 if (hasMediaControls())
3652 mediaControls()->mediaElementFocused();
3653 }
3654 HTMLElement::defaultEventHandler(event);
3655 }
3656
3648 void HTMLMediaElement::trace(Visitor* visitor) 3657 void HTMLMediaElement::trace(Visitor* visitor)
3649 { 3658 {
3650 visitor->trace(m_error); 3659 visitor->trace(m_error);
3651 visitor->trace(m_currentSourceNode); 3660 visitor->trace(m_currentSourceNode);
3652 visitor->trace(m_nextChildNodeToConsider); 3661 visitor->trace(m_nextChildNodeToConsider);
3653 visitor->trace(m_textTracks); 3662 visitor->trace(m_textTracks);
3654 visitor->trace(m_textTracksWhenResourceSelectionBegan); 3663 visitor->trace(m_textTracksWhenResourceSelectionBegan);
3655 WillBeHeapSupplementable<HTMLMediaElement>::trace(visitor); 3664 WillBeHeapSupplementable<HTMLMediaElement>::trace(visitor);
3656 HTMLElement::trace(visitor); 3665 HTMLElement::trace(visitor);
3657 } 3666 }
3658 3667
3659 } 3668 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698