OLD | NEW |
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 1850 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1861 | 1861 |
1862 void Internals::mediaPlayerPlayingRemotelyChanged(HTMLMediaElement* mediaElement
, bool remote) | 1862 void Internals::mediaPlayerPlayingRemotelyChanged(HTMLMediaElement* mediaElement
, bool remote) |
1863 { | 1863 { |
1864 ASSERT(mediaElement); | 1864 ASSERT(mediaElement); |
1865 if (remote) | 1865 if (remote) |
1866 mediaElement->connectedToRemoteDevice(); | 1866 mediaElement->connectedToRemoteDevice(); |
1867 else | 1867 else |
1868 mediaElement->disconnectedFromRemoteDevice(); | 1868 mediaElement->disconnectedFromRemoteDevice(); |
1869 } | 1869 } |
1870 | 1870 |
| 1871 void Internals::setAllowHiddenVolumeControls(HTMLMediaElement* mediaElement, boo
l allow) |
| 1872 { |
| 1873 ASSERT(mediaElement); |
| 1874 mediaElement->setAllowHiddenVolumeControls(allow); |
| 1875 } |
| 1876 |
1871 void Internals::registerURLSchemeAsBypassingContentSecurityPolicy(const String&
scheme) | 1877 void Internals::registerURLSchemeAsBypassingContentSecurityPolicy(const String&
scheme) |
1872 { | 1878 { |
1873 SchemeRegistry::registerURLSchemeAsBypassingContentSecurityPolicy(scheme); | 1879 SchemeRegistry::registerURLSchemeAsBypassingContentSecurityPolicy(scheme); |
1874 } | 1880 } |
1875 | 1881 |
1876 void Internals::registerURLSchemeAsBypassingContentSecurityPolicy(const String&
scheme, const Vector<String>& policyAreas) | 1882 void Internals::registerURLSchemeAsBypassingContentSecurityPolicy(const String&
scheme, const Vector<String>& policyAreas) |
1877 { | 1883 { |
1878 uint32_t policyAreasEnum = SchemeRegistry::PolicyAreaNone; | 1884 uint32_t policyAreasEnum = SchemeRegistry::PolicyAreaNone; |
1879 for (const auto& policyArea : policyAreas) { | 1885 for (const auto& policyArea : policyAreas) { |
1880 if (policyArea == "img") | 1886 if (policyArea == "img") |
(...skipping 605 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2486 | 2492 |
2487 return animator->setScrollbarsVisibleForTesting(visible); | 2493 return animator->setScrollbarsVisibleForTesting(visible); |
2488 } | 2494 } |
2489 | 2495 |
2490 void Internals::forceRestrictIFramePermissions() | 2496 void Internals::forceRestrictIFramePermissions() |
2491 { | 2497 { |
2492 RuntimeEnabledFeatures::setRestrictIFramePermissionsEnabled(true); | 2498 RuntimeEnabledFeatures::setRestrictIFramePermissionsEnabled(true); |
2493 } | 2499 } |
2494 | 2500 |
2495 } // namespace blink | 2501 } // namespace blink |
OLD | NEW |