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 2197 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2208 void Internals::mediaPlayerPlayingRemotelyChanged( | 2208 void Internals::mediaPlayerPlayingRemotelyChanged( |
2209 HTMLMediaElement* mediaElement, | 2209 HTMLMediaElement* mediaElement, |
2210 bool remote) { | 2210 bool remote) { |
2211 ASSERT(mediaElement); | 2211 ASSERT(mediaElement); |
2212 if (remote) | 2212 if (remote) |
2213 mediaElement->connectedToRemoteDevice(); | 2213 mediaElement->connectedToRemoteDevice(); |
2214 else | 2214 else |
2215 mediaElement->disconnectedFromRemoteDevice(); | 2215 mediaElement->disconnectedFromRemoteDevice(); |
2216 } | 2216 } |
2217 | 2217 |
2218 void Internals::setAllowHiddenVolumeControls(HTMLMediaElement* mediaElement, | |
2219 bool allow) { | |
2220 ASSERT(mediaElement); | |
2221 mediaElement->setAllowHiddenVolumeControls(allow); | |
2222 } | |
2223 | |
2224 void Internals::registerURLSchemeAsBypassingContentSecurityPolicy( | 2218 void Internals::registerURLSchemeAsBypassingContentSecurityPolicy( |
2225 const String& scheme) { | 2219 const String& scheme) { |
2226 SchemeRegistry::registerURLSchemeAsBypassingContentSecurityPolicy(scheme); | 2220 SchemeRegistry::registerURLSchemeAsBypassingContentSecurityPolicy(scheme); |
2227 } | 2221 } |
2228 | 2222 |
2229 void Internals::registerURLSchemeAsBypassingContentSecurityPolicy( | 2223 void Internals::registerURLSchemeAsBypassingContentSecurityPolicy( |
2230 const String& scheme, | 2224 const String& scheme, |
2231 const Vector<String>& policyAreas) { | 2225 const Vector<String>& policyAreas) { |
2232 uint32_t policyAreasEnum = SchemeRegistry::PolicyAreaNone; | 2226 uint32_t policyAreasEnum = SchemeRegistry::PolicyAreaNone; |
2233 for (const auto& policyArea : policyAreas) { | 2227 for (const auto& policyArea : policyAreas) { |
(...skipping 793 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3027 return ClientRect::create(); | 3021 return ClientRect::create(); |
3028 | 3022 |
3029 return ClientRect::create(FloatRect(node->layoutObject()->visualRect())); | 3023 return ClientRect::create(FloatRect(node->layoutObject()->visualRect())); |
3030 } | 3024 } |
3031 | 3025 |
3032 void Internals::crash() { | 3026 void Internals::crash() { |
3033 CHECK(false) << "Intentional crash"; | 3027 CHECK(false) << "Intentional crash"; |
3034 } | 3028 } |
3035 | 3029 |
3036 } // namespace blink | 3030 } // namespace blink |
OLD | NEW |