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

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

Issue 1829923003: [Android,RemotePlayback] Resolve HTMLMediaElement.remote.connect() with false when device is not se… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@remote-playback-connect
Patch Set: Rebased Created 4 years, 8 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
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 2918 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698