| 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 2193 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2204 return document->ignoreLayoutWithPendingStylesheets(); | 2204 return document->ignoreLayoutWithPendingStylesheets(); |
| 2205 } | 2205 } |
| 2206 | 2206 |
| 2207 void Internals::setNetworkStateNotifierTestOnly(bool testOnly) | 2207 void Internals::setNetworkStateNotifierTestOnly(bool testOnly) |
| 2208 { | 2208 { |
| 2209 networkStateNotifier().setTestUpdatesOnly(testOnly); | 2209 networkStateNotifier().setTestUpdatesOnly(testOnly); |
| 2210 } | 2210 } |
| 2211 | 2211 |
| 2212 void Internals::setNetworkConnectionInfo(const String& type, ExceptionState& exc
eptionState) | 2212 void Internals::setNetworkConnectionInfo(const String& type, ExceptionState& exc
eptionState) |
| 2213 { | 2213 { |
| 2214 blink::WebConnectionType webtype; | 2214 WebConnectionType webtype; |
| 2215 if (type == "cellular") { | 2215 if (type == "cellular") { |
| 2216 webtype = blink::ConnectionTypeCellular; | 2216 webtype = ConnectionTypeCellular; |
| 2217 } else if (type == "bluetooth") { | 2217 } else if (type == "bluetooth") { |
| 2218 webtype = blink::ConnectionTypeBluetooth; | 2218 webtype = ConnectionTypeBluetooth; |
| 2219 } else if (type == "ethernet") { | 2219 } else if (type == "ethernet") { |
| 2220 webtype = blink::ConnectionTypeEthernet; | 2220 webtype = ConnectionTypeEthernet; |
| 2221 } else if (type == "wifi") { | 2221 } else if (type == "wifi") { |
| 2222 webtype = blink::ConnectionTypeWifi; | 2222 webtype = ConnectionTypeWifi; |
| 2223 } else if (type == "other") { | 2223 } else if (type == "other") { |
| 2224 webtype = blink::ConnectionTypeOther; | 2224 webtype = ConnectionTypeOther; |
| 2225 } else if (type == "none") { | 2225 } else if (type == "none") { |
| 2226 webtype = blink::ConnectionTypeNone; | 2226 webtype = ConnectionTypeNone; |
| 2227 } else if (type == "unknown") { | 2227 } else if (type == "unknown") { |
| 2228 webtype = blink::ConnectionTypeUnknown; | 2228 webtype = ConnectionTypeUnknown; |
| 2229 } else { | 2229 } else { |
| 2230 exceptionState.throwDOMException(NotFoundError, ExceptionMessages::faile
dToEnumerate("connection type", type)); | 2230 exceptionState.throwDOMException(NotFoundError, ExceptionMessages::faile
dToEnumerate("connection type", type)); |
| 2231 return; | 2231 return; |
| 2232 } | 2232 } |
| 2233 networkStateNotifier().setWebConnectionTypeForTest(webtype); | 2233 networkStateNotifier().setWebConnectionTypeForTest(webtype); |
| 2234 } | 2234 } |
| 2235 | 2235 |
| 2236 unsigned Internals::countHitRegions(CanvasRenderingContext2D* context) | 2236 unsigned Internals::countHitRegions(CanvasRenderingContext2D* context) |
| 2237 { | 2237 { |
| 2238 return context->hitRegionsCount(); | 2238 return context->hitRegionsCount(); |
| (...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2353 return new InternalsIterationSource(); | 2353 return new InternalsIterationSource(); |
| 2354 } | 2354 } |
| 2355 | 2355 |
| 2356 bool Internals::isUseCounted(Document* document, int useCounterId) | 2356 bool Internals::isUseCounted(Document* document, int useCounterId) |
| 2357 { | 2357 { |
| 2358 return UseCounter::isCounted(*document, static_cast<UseCounter::Feature>(use
CounterId)); | 2358 return UseCounter::isCounted(*document, static_cast<UseCounter::Feature>(use
CounterId)); |
| 2359 } | 2359 } |
| 2360 | 2360 |
| 2361 | 2361 |
| 2362 } // namespace blink | 2362 } // namespace blink |
| OLD | NEW |