| 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 2918 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2929 | 2929 |
| 2930 void HTMLMediaElement::disconnectedFromRemoteDevice() | 2930 void HTMLMediaElement::disconnectedFromRemoteDevice() |
| 2931 { | 2931 { |
| 2932 m_playingRemotely = false; | 2932 m_playingRemotely = false; |
| 2933 if (mediaControls()) | 2933 if (mediaControls()) |
| 2934 mediaControls()->stoppedCasting(); | 2934 mediaControls()->stoppedCasting(); |
| 2935 if (remotePlaybackClient()) | 2935 if (remotePlaybackClient()) |
| 2936 remotePlaybackClient()->stateChanged(WebRemotePlaybackState::Disconnecte
d); | 2936 remotePlaybackClient()->stateChanged(WebRemotePlaybackState::Disconnecte
d); |
| 2937 } | 2937 } |
| 2938 | 2938 |
| 2939 void HTMLMediaElement::cancelledRemotePlaybackRequest() |
| 2940 { |
| 2941 if (remotePlaybackClient()) |
| 2942 remotePlaybackClient()->connectCancelled(); |
| 2943 } |
| 2944 |
| 2939 // MediaPlayerPresentation methods | 2945 // MediaPlayerPresentation methods |
| 2940 void HTMLMediaElement::repaint() | 2946 void HTMLMediaElement::repaint() |
| 2941 { | 2947 { |
| 2942 if (m_webLayer) | 2948 if (m_webLayer) |
| 2943 m_webLayer->invalidate(); | 2949 m_webLayer->invalidate(); |
| 2944 | 2950 |
| 2945 updateDisplayState(); | 2951 updateDisplayState(); |
| 2946 if (layoutObject()) | 2952 if (layoutObject()) |
| 2947 layoutObject()->setShouldDoFullPaintInvalidation(); | 2953 layoutObject()->setShouldDoFullPaintInvalidation(); |
| 2948 } | 2954 } |
| (...skipping 917 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3866 } | 3872 } |
| 3867 | 3873 |
| 3868 #if !ENABLE(OILPAN) | 3874 #if !ENABLE(OILPAN) |
| 3869 WeakPtr<HTMLMediaElement> HTMLMediaElement::createWeakPtr() | 3875 WeakPtr<HTMLMediaElement> HTMLMediaElement::createWeakPtr() |
| 3870 { | 3876 { |
| 3871 return m_weakPtrFactory.createWeakPtr(); | 3877 return m_weakPtrFactory.createWeakPtr(); |
| 3872 } | 3878 } |
| 3873 #endif | 3879 #endif |
| 3874 | 3880 |
| 3875 } // namespace blink | 3881 } // namespace blink |
| OLD | NEW |