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 1843 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1854 | 1854 |
1855 void Internals::mediaPlayerPlayingRemotelyChanged(HTMLMediaElement* mediaElement
, bool remote) | 1855 void Internals::mediaPlayerPlayingRemotelyChanged(HTMLMediaElement* mediaElement
, bool remote) |
1856 { | 1856 { |
1857 ASSERT(mediaElement); | 1857 ASSERT(mediaElement); |
1858 if (remote) | 1858 if (remote) |
1859 mediaElement->connectedToRemoteDevice(); | 1859 mediaElement->connectedToRemoteDevice(); |
1860 else | 1860 else |
1861 mediaElement->disconnectedFromRemoteDevice(); | 1861 mediaElement->disconnectedFromRemoteDevice(); |
1862 } | 1862 } |
1863 | 1863 |
| 1864 void Internals::setAllowHiddenAudioElements(HTMLMediaElement* mediaElement, bool
allow) |
| 1865 { |
| 1866 ASSERT(mediaElement); |
| 1867 mediaElement->setAllowHiddenAudioElements(allow); |
| 1868 } |
| 1869 |
1864 void Internals::registerURLSchemeAsBypassingContentSecurityPolicy(const String&
scheme) | 1870 void Internals::registerURLSchemeAsBypassingContentSecurityPolicy(const String&
scheme) |
1865 { | 1871 { |
1866 SchemeRegistry::registerURLSchemeAsBypassingContentSecurityPolicy(scheme); | 1872 SchemeRegistry::registerURLSchemeAsBypassingContentSecurityPolicy(scheme); |
1867 } | 1873 } |
1868 | 1874 |
1869 void Internals::registerURLSchemeAsBypassingContentSecurityPolicy(const String&
scheme, const Vector<String>& policyAreas) | 1875 void Internals::registerURLSchemeAsBypassingContentSecurityPolicy(const String&
scheme, const Vector<String>& policyAreas) |
1870 { | 1876 { |
1871 uint32_t policyAreasEnum = SchemeRegistry::PolicyAreaNone; | 1877 uint32_t policyAreasEnum = SchemeRegistry::PolicyAreaNone; |
1872 for (const auto& policyArea : policyAreas) { | 1878 for (const auto& policyArea : policyAreas) { |
1873 if (policyArea == "img") | 1879 if (policyArea == "img") |
(...skipping 582 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2456 return ClientRectList::create(rects); | 2462 return ClientRectList::create(rects); |
2457 } | 2463 } |
2458 | 2464 |
2459 void Internals::setCapsLockState(bool enabled) | 2465 void Internals::setCapsLockState(bool enabled) |
2460 { | 2466 { |
2461 PlatformKeyboardEvent::setCurrentCapsLockState(enabled ? | 2467 PlatformKeyboardEvent::setCurrentCapsLockState(enabled ? |
2462 PlatformKeyboardEvent::OverrideCapsLockState::On : PlatformKeyboardEvent
::OverrideCapsLockState::Off); | 2468 PlatformKeyboardEvent::OverrideCapsLockState::On : PlatformKeyboardEvent
::OverrideCapsLockState::Off); |
2463 } | 2469 } |
2464 | 2470 |
2465 } // namespace blink | 2471 } // namespace blink |
OLD | NEW |