Chromium Code Reviews| 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 2907 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 2918 mediaControls()->refreshCastButtonVisibility(); | 2918 mediaControls()->refreshCastButtonVisibility(); |
| 2919 if (remotePlaybackClient()) | 2919 if (remotePlaybackClient()) |
| 2920 remotePlaybackClient()->availabilityChanged(routesAvailable); | 2920 remotePlaybackClient()->availabilityChanged(routesAvailable); |
| 2921 } | 2921 } |
| 2922 | 2922 |
| 2923 void HTMLMediaElement::connectedToRemoteDevice() | 2923 void HTMLMediaElement::connectedToRemoteDevice() |
| 2924 { | 2924 { |
| 2925 m_playingRemotely = true; | 2925 m_playingRemotely = true; |
| 2926 if (mediaControls()) | 2926 if (mediaControls()) |
| 2927 mediaControls()->startedCasting(); | 2927 mediaControls()->startedCasting(); |
| 2928 if (remotePlaybackClient()) | 2928 if (remotePlaybackClient()) { |
| 2929 remotePlaybackClient()->connectionResultReceived(true); | |
|
philipj_slow
2016/03/23 16:09:31
This is never called with false, can't the stateCh
whywhat
2016/03/23 18:33:45
Done. I'll need it later when I plumb the dialog c
| |
| 2929 remotePlaybackClient()->stateChanged(WebRemotePlaybackState::Connected); | 2930 remotePlaybackClient()->stateChanged(WebRemotePlaybackState::Connected); |
| 2931 } | |
| 2930 } | 2932 } |
| 2931 | 2933 |
| 2932 void HTMLMediaElement::disconnectedFromRemoteDevice() | 2934 void HTMLMediaElement::disconnectedFromRemoteDevice() |
| 2933 { | 2935 { |
| 2934 m_playingRemotely = false; | 2936 m_playingRemotely = false; |
| 2935 if (mediaControls()) | 2937 if (mediaControls()) |
| 2936 mediaControls()->stoppedCasting(); | 2938 mediaControls()->stoppedCasting(); |
| 2937 if (remotePlaybackClient()) | 2939 if (remotePlaybackClient()) |
| 2938 remotePlaybackClient()->stateChanged(WebRemotePlaybackState::Disconnecte d); | 2940 remotePlaybackClient()->stateChanged(WebRemotePlaybackState::Disconnecte d); |
| 2939 } | 2941 } |
| (...skipping 885 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 3825 { | 3827 { |
| 3826 visitor->trace(m_client); | 3828 visitor->trace(m_client); |
| 3827 } | 3829 } |
| 3828 | 3830 |
| 3829 DEFINE_TRACE(HTMLMediaElement::AudioSourceProviderImpl) | 3831 DEFINE_TRACE(HTMLMediaElement::AudioSourceProviderImpl) |
| 3830 { | 3832 { |
| 3831 visitor->trace(m_client); | 3833 visitor->trace(m_client); |
| 3832 } | 3834 } |
| 3833 | 3835 |
| 3834 } // namespace blink | 3836 } // namespace blink |
| OLD | NEW |