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

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: 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 3612 matching lines...) Expand 10 before | Expand all | Expand 10 after
3623 void HTMLMediaElement::mediaPlayerMediaSourceOpened(blink::WebMediaSource* webMe diaSource) 3623 void HTMLMediaElement::mediaPlayerMediaSourceOpened(blink::WebMediaSource* webMe diaSource)
3624 { 3624 {
3625 m_mediaSource->setWebMediaSourceAndOpen(adoptPtr(webMediaSource)); 3625 m_mediaSource->setWebMediaSourceAndOpen(adoptPtr(webMediaSource));
3626 } 3626 }
3627 3627
3628 bool HTMLMediaElement::isInteractiveContent() const 3628 bool HTMLMediaElement::isInteractiveContent() const
3629 { 3629 {
3630 return fastHasAttribute(controlsAttr); 3630 return fastHasAttribute(controlsAttr);
3631 } 3631 }
3632 3632
3633 void HTMLMediaElement::defaultEventHandler(Event* event)
3634 {
3635 if (event->type() == EventTypeNames::focusin) {
3636 if (hasMediaControls())
3637 mediaControls()->mediaElementFocused();
3638 }
3639 HTMLElement::defaultEventHandler(event);
3640 }
3641
3633 void HTMLMediaElement::trace(Visitor* visitor) 3642 void HTMLMediaElement::trace(Visitor* visitor)
3634 { 3643 {
3635 visitor->trace(m_error); 3644 visitor->trace(m_error);
3636 visitor->trace(m_currentSourceNode); 3645 visitor->trace(m_currentSourceNode);
3637 visitor->trace(m_nextChildNodeToConsider); 3646 visitor->trace(m_nextChildNodeToConsider);
3638 visitor->trace(m_textTracks); 3647 visitor->trace(m_textTracks);
3639 visitor->trace(m_textTracksWhenResourceSelectionBegan); 3648 visitor->trace(m_textTracksWhenResourceSelectionBegan);
3640 WillBeHeapSupplementable<HTMLMediaElement>::trace(visitor); 3649 WillBeHeapSupplementable<HTMLMediaElement>::trace(visitor);
3641 HTMLElement::trace(visitor); 3650 HTMLElement::trace(visitor);
3642 } 3651 }
3643 3652
3644 } 3653 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698