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

Side by Side Diff: Source/core/testing/Internals.cpp

Issue 650893002: [Cast] Disable autohide of media controls for remote playback (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Added LayoutTest Created 6 years, 2 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) 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2012 Google Inc. All rights reserved.
3 * Copyright (C) 2013 Apple Inc. All rights reserved. 3 * Copyright (C) 2013 Apple Inc. All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 8 *
9 * 1. Redistributions of source code must retain the above copyright 9 * 1. Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 1750 matching lines...) Expand 10 before | Expand all | Expand 10 after
1761 double Internals::effectiveMediaVolume(HTMLMediaElement* mediaElement) 1761 double Internals::effectiveMediaVolume(HTMLMediaElement* mediaElement)
1762 { 1762 {
1763 return mediaElement->effectiveMediaVolume(); 1763 return mediaElement->effectiveMediaVolume();
1764 } 1764 }
1765 1765
1766 void Internals::mediaPlayerRemoteRouteAvailabilityChanged(HTMLMediaElement* medi aElement, bool available) 1766 void Internals::mediaPlayerRemoteRouteAvailabilityChanged(HTMLMediaElement* medi aElement, bool available)
1767 { 1767 {
1768 mediaElement->remoteRouteAvailabilityChanged(available); 1768 mediaElement->remoteRouteAvailabilityChanged(available);
1769 } 1769 }
1770 1770
1771 void Internals::mediaPlayerPlayingRemotelyChanged(HTMLMediaElement* mediaElement , bool remote)
1772 {
1773 if (remote)
1774 mediaElement->connectedToRemoteDevice();
1775 else
1776 mediaElement->disconnectedFromRemoteDevice();
1777 }
1778
1771 void Internals::registerURLSchemeAsBypassingContentSecurityPolicy(const String& scheme) 1779 void Internals::registerURLSchemeAsBypassingContentSecurityPolicy(const String& scheme)
1772 { 1780 {
1773 SchemeRegistry::registerURLSchemeAsBypassingContentSecurityPolicy(scheme); 1781 SchemeRegistry::registerURLSchemeAsBypassingContentSecurityPolicy(scheme);
1774 } 1782 }
1775 1783
1776 void Internals::removeURLSchemeRegisteredAsBypassingContentSecurityPolicy(const String& scheme) 1784 void Internals::removeURLSchemeRegisteredAsBypassingContentSecurityPolicy(const String& scheme)
1777 { 1785 {
1778 SchemeRegistry::removeURLSchemeRegisteredAsBypassingContentSecurityPolicy(sc heme); 1786 SchemeRegistry::removeURLSchemeRegisteredAsBypassingContentSecurityPolicy(sc heme);
1779 } 1787 }
1780 1788
(...skipping 494 matching lines...) Expand 10 before | Expand all | Expand 10 after
2275 } 2283 }
2276 toHTMLPlugInElement(element)->setPlaceholder(DictionaryPluginPlaceholder::cr eate(element->document(), options)); 2284 toHTMLPlugInElement(element)->setPlaceholder(DictionaryPluginPlaceholder::cr eate(element->document(), options));
2277 } 2285 }
2278 2286
2279 Iterator* Internals::iterator(ScriptState* scriptState, ExceptionState& exceptio nState) 2287 Iterator* Internals::iterator(ScriptState* scriptState, ExceptionState& exceptio nState)
2280 { 2288 {
2281 return new InternalsIterator; 2289 return new InternalsIterator;
2282 } 2290 }
2283 2291
2284 } // namespace blink 2292 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698