| 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 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 137 #include "platform/heap/Handle.h" | 137 #include "platform/heap/Handle.h" |
| 138 #include "platform/network/ResourceLoadPriority.h" | 138 #include "platform/network/ResourceLoadPriority.h" |
| 139 #include "platform/scroll/ProgrammaticScrollAnimator.h" | 139 #include "platform/scroll/ProgrammaticScrollAnimator.h" |
| 140 #include "platform/testing/URLTestHelpers.h" | 140 #include "platform/testing/URLTestHelpers.h" |
| 141 #include "platform/tracing/TraceEvent.h" | 141 #include "platform/tracing/TraceEvent.h" |
| 142 #include "platform/weborigin/SchemeRegistry.h" | 142 #include "platform/weborigin/SchemeRegistry.h" |
| 143 #include "public/platform/Platform.h" | 143 #include "public/platform/Platform.h" |
| 144 #include "public/platform/WebConnectionType.h" | 144 #include "public/platform/WebConnectionType.h" |
| 145 #include "public/platform/WebGraphicsContext3DProvider.h" | 145 #include "public/platform/WebGraphicsContext3DProvider.h" |
| 146 #include "public/platform/WebLayer.h" | 146 #include "public/platform/WebLayer.h" |
| 147 #include "public/platform/modules/remoteplayback/WebRemotePlaybackAvailability.h
" |
| 147 #include "wtf/InstanceCounter.h" | 148 #include "wtf/InstanceCounter.h" |
| 148 #include "wtf/PtrUtil.h" | 149 #include "wtf/PtrUtil.h" |
| 149 #include "wtf/dtoa.h" | 150 #include "wtf/dtoa.h" |
| 150 #include "wtf/text/StringBuffer.h" | 151 #include "wtf/text/StringBuffer.h" |
| 151 #include <deque> | 152 #include <deque> |
| 152 #include <memory> | 153 #include <memory> |
| 153 #include <v8.h> | 154 #include <v8.h> |
| 154 | 155 |
| 155 namespace blink { | 156 namespace blink { |
| 156 | 157 |
| (...skipping 2030 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2187 | 2188 |
| 2188 String Internals::effectivePreload(HTMLMediaElement* mediaElement) { | 2189 String Internals::effectivePreload(HTMLMediaElement* mediaElement) { |
| 2189 ASSERT(mediaElement); | 2190 ASSERT(mediaElement); |
| 2190 return mediaElement->effectivePreload(); | 2191 return mediaElement->effectivePreload(); |
| 2191 } | 2192 } |
| 2192 | 2193 |
| 2193 void Internals::mediaPlayerRemoteRouteAvailabilityChanged( | 2194 void Internals::mediaPlayerRemoteRouteAvailabilityChanged( |
| 2194 HTMLMediaElement* mediaElement, | 2195 HTMLMediaElement* mediaElement, |
| 2195 bool available) { | 2196 bool available) { |
| 2196 ASSERT(mediaElement); | 2197 ASSERT(mediaElement); |
| 2197 mediaElement->remoteRouteAvailabilityChanged(available); | 2198 mediaElement->remoteRouteAvailabilityChanged( |
| 2199 available ? WebRemotePlaybackAvailability::DeviceAvailable |
| 2200 : WebRemotePlaybackAvailability::SourceNotSupported); |
| 2198 } | 2201 } |
| 2199 | 2202 |
| 2200 void Internals::mediaPlayerPlayingRemotelyChanged( | 2203 void Internals::mediaPlayerPlayingRemotelyChanged( |
| 2201 HTMLMediaElement* mediaElement, | 2204 HTMLMediaElement* mediaElement, |
| 2202 bool remote) { | 2205 bool remote) { |
| 2203 ASSERT(mediaElement); | 2206 ASSERT(mediaElement); |
| 2204 if (remote) | 2207 if (remote) |
| 2205 mediaElement->connectedToRemoteDevice(); | 2208 mediaElement->connectedToRemoteDevice(); |
| 2206 else | 2209 else |
| 2207 mediaElement->disconnectedFromRemoteDevice(); | 2210 mediaElement->disconnectedFromRemoteDevice(); |
| (...skipping 807 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3015 return ClientRect::create(); | 3018 return ClientRect::create(); |
| 3016 | 3019 |
| 3017 return ClientRect::create(FloatRect(node->layoutObject()->visualRect())); | 3020 return ClientRect::create(FloatRect(node->layoutObject()->visualRect())); |
| 3018 } | 3021 } |
| 3019 | 3022 |
| 3020 void Internals::crash() { | 3023 void Internals::crash() { |
| 3021 CHECK(false) << "Intentional crash"; | 3024 CHECK(false) << "Intentional crash"; |
| 3022 } | 3025 } |
| 3023 | 3026 |
| 3024 } // namespace blink | 3027 } // namespace blink |
| OLD | NEW |