Chromium Code Reviews| 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 1463 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1474 | 1474 |
| 1475 // Optimally, the bindings generator would pass a Vector<AtomicString> here but | 1475 // Optimally, the bindings generator would pass a Vector<AtomicString> here but |
| 1476 // this is not supported yet. | 1476 // this is not supported yet. |
| 1477 void Internals::setUserPreferredLanguages(const Vector<String>& languages) { | 1477 void Internals::setUserPreferredLanguages(const Vector<String>& languages) { |
| 1478 Vector<AtomicString> atomicLanguages; | 1478 Vector<AtomicString> atomicLanguages; |
| 1479 for (size_t i = 0; i < languages.size(); ++i) | 1479 for (size_t i = 0; i < languages.size(); ++i) |
| 1480 atomicLanguages.append(AtomicString(languages[i])); | 1480 atomicLanguages.append(AtomicString(languages[i])); |
| 1481 overrideUserPreferredLanguages(atomicLanguages); | 1481 overrideUserPreferredLanguages(atomicLanguages); |
| 1482 } | 1482 } |
| 1483 | 1483 |
| 1484 unsigned Internals::mediaKeysCount() { | |
| 1485 return InstanceCounters::counterValue(InstanceCounters::MediaKeysCounter); | |
|
sof
2016/12/26 08:00:47
I'm unsure if it is acceptable for these to use gl
haraken
2016/12/26 08:17:18
That's why I inserted gc() in the beginning of the
sof
2016/12/26 09:23:06
i think so, it's reasonable to require the caller
| |
| 1486 } | |
| 1487 | |
| 1488 unsigned Internals::mediaKeySessionCount() { | |
| 1489 return InstanceCounters::counterValue( | |
| 1490 InstanceCounters::MediaKeySessionCounter); | |
| 1491 } | |
| 1492 | |
| 1484 unsigned Internals::suspendableObjectCount(Document* document) { | 1493 unsigned Internals::suspendableObjectCount(Document* document) { |
| 1485 DCHECK(document); | 1494 DCHECK(document); |
| 1486 return document->suspendableObjectCount(); | 1495 return document->suspendableObjectCount(); |
| 1487 } | 1496 } |
| 1488 | 1497 |
| 1489 static unsigned eventHandlerCount( | 1498 static unsigned eventHandlerCount( |
| 1490 Document& document, | 1499 Document& document, |
| 1491 EventHandlerRegistry::EventHandlerClass handlerClass) { | 1500 EventHandlerRegistry::EventHandlerClass handlerClass) { |
| 1492 if (!document.frameHost()) | 1501 if (!document.frameHost()) |
| 1493 return 0; | 1502 return 0; |
| (...skipping 1586 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 3080 | 3089 |
| 3081 void Internals::crash() { | 3090 void Internals::crash() { |
| 3082 CHECK(false) << "Intentional crash"; | 3091 CHECK(false) << "Intentional crash"; |
| 3083 } | 3092 } |
| 3084 | 3093 |
| 3085 void Internals::setIsLowEndDevice(bool isLowEndDevice) { | 3094 void Internals::setIsLowEndDevice(bool isLowEndDevice) { |
| 3086 MemoryCoordinator::setIsLowEndDeviceForTesting(isLowEndDevice); | 3095 MemoryCoordinator::setIsLowEndDeviceForTesting(isLowEndDevice); |
| 3087 } | 3096 } |
| 3088 | 3097 |
| 3089 } // namespace blink | 3098 } // namespace blink |
| OLD | NEW |