OLD | NEW |
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 3573 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3584 | 3584 |
3585 RefPtr<MediaControls> mediaControls = MediaControls::create(document()); | 3585 RefPtr<MediaControls> mediaControls = MediaControls::create(document()); |
3586 if (!mediaControls) | 3586 if (!mediaControls) |
3587 return false; | 3587 return false; |
3588 | 3588 |
3589 mediaControls->setMediaController(m_mediaController ? m_mediaController.get(
) : static_cast<MediaControllerInterface*>(this)); | 3589 mediaControls->setMediaController(m_mediaController ? m_mediaController.get(
) : static_cast<MediaControllerInterface*>(this)); |
3590 mediaControls->reset(); | 3590 mediaControls->reset(); |
3591 if (isFullscreen()) | 3591 if (isFullscreen()) |
3592 mediaControls->enteredFullscreen(); | 3592 mediaControls->enteredFullscreen(); |
3593 | 3593 |
3594 ensureUserAgentShadowRoot()->appendChild(mediaControls); | 3594 ensureUserAgentShadowRoot().appendChild(mediaControls); |
3595 | 3595 |
3596 if (!controls() || !inDocument()) | 3596 if (!controls() || !inDocument()) |
3597 mediaControls->hide(); | 3597 mediaControls->hide(); |
3598 | 3598 |
3599 return true; | 3599 return true; |
3600 } | 3600 } |
3601 | 3601 |
3602 void HTMLMediaElement::configureMediaControls() | 3602 void HTMLMediaElement::configureMediaControls() |
3603 { | 3603 { |
3604 if (!controls() || !inDocument()) { | 3604 if (!controls() || !inDocument()) { |
(...skipping 263 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3868 { | 3868 { |
3869 scheduleLayerUpdate(); | 3869 scheduleLayerUpdate(); |
3870 } | 3870 } |
3871 | 3871 |
3872 bool HTMLMediaElement::isInteractiveContent() const | 3872 bool HTMLMediaElement::isInteractiveContent() const |
3873 { | 3873 { |
3874 return fastHasAttribute(controlsAttr); | 3874 return fastHasAttribute(controlsAttr); |
3875 } | 3875 } |
3876 | 3876 |
3877 } | 3877 } |
OLD | NEW |