Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(289)

Side by Side Diff: third_party/WebKit/Source/core/testing/Internals.cpp

Issue 2587913002: Rename activeDOMObjectsAreSuspended to isContextSuspended (Closed)
Patch Set: temp Created 3 years, 12 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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::activeDOMObjectCount(Document* document) { 1484 unsigned Internals::suspendableObjectCount(Document* document) {
1485 DCHECK(document); 1485 DCHECK(document);
1486 return document->activeDOMObjectCount(); 1486 return document->suspendableObjectCount();
1487 } 1487 }
1488 1488
1489 static unsigned eventHandlerCount( 1489 static unsigned eventHandlerCount(
1490 Document& document, 1490 Document& document,
1491 EventHandlerRegistry::EventHandlerClass handlerClass) { 1491 EventHandlerRegistry::EventHandlerClass handlerClass) {
1492 if (!document.frameHost()) 1492 if (!document.frameHost())
1493 return 0; 1493 return 0;
1494 EventHandlerRegistry* registry = 1494 EventHandlerRegistry* registry =
1495 &document.frameHost()->eventHandlerRegistry(); 1495 &document.frameHost()->eventHandlerRegistry();
1496 unsigned count = 0; 1496 unsigned count = 0;
(...skipping 1583 matching lines...) Expand 10 before | Expand all | Expand 10 after
3080 3080
3081 void Internals::crash() { 3081 void Internals::crash() {
3082 CHECK(false) << "Intentional crash"; 3082 CHECK(false) << "Intentional crash";
3083 } 3083 }
3084 3084
3085 void Internals::setIsLowEndDevice(bool isLowEndDevice) { 3085 void Internals::setIsLowEndDevice(bool isLowEndDevice) {
3086 MemoryCoordinator::setIsLowEndDeviceForTesting(isLowEndDevice); 3086 MemoryCoordinator::setIsLowEndDeviceForTesting(isLowEndDevice);
3087 } 3087 }
3088 3088
3089 } // namespace blink 3089 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/testing/Internals.h ('k') | third_party/WebKit/Source/core/testing/Internals.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698