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

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

Issue 2586863002: Worker: Enable UseCounter for SharedWorkerGlobalScope (Closed)
Patch Set: simplify Created 3 years, 10 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 2979 matching lines...) Expand 10 before | Expand all | Expand 10 after
2990 2990
2991 return frame()->view()->getScrollableArea()->getScrollOffset().height(); 2991 return frame()->view()->getScrollableArea()->getScrollOffset().height();
2992 } 2992 }
2993 2993
2994 ValueIterable<int>::IterationSource* Internals::startIteration( 2994 ValueIterable<int>::IterationSource* Internals::startIteration(
2995 ScriptState*, 2995 ScriptState*,
2996 ExceptionState&) { 2996 ExceptionState&) {
2997 return new InternalsIterationSource(); 2997 return new InternalsIterationSource();
2998 } 2998 }
2999 2999
3000 bool Internals::isUseCounted(Document* document, int useCounterId) { 3000 bool Internals::isUseCounted(Document* document, uint32_t feature) {
3001 if (useCounterId < 0 || useCounterId >= UseCounter::NumberOfFeatures) 3001 if (feature >= UseCounter::NumberOfFeatures)
3002 return false; 3002 return false;
3003 return UseCounter::isCounted(*document, 3003 return UseCounter::isCounted(*document,
3004 static_cast<UseCounter::Feature>(useCounterId)); 3004 static_cast<UseCounter::Feature>(feature));
3005 } 3005 }
3006 3006
3007 bool Internals::isCSSPropertyUseCounted(Document* document, 3007 bool Internals::isCSSPropertyUseCounted(Document* document,
3008 const String& propertyName) { 3008 const String& propertyName) {
3009 return UseCounter::isCounted(*document, propertyName); 3009 return UseCounter::isCounted(*document, propertyName);
3010 } 3010 }
3011 3011
3012 String Internals::unscopableAttribute() { 3012 String Internals::unscopableAttribute() {
3013 return "unscopableAttribute"; 3013 return "unscopableAttribute";
3014 } 3014 }
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
3085 3085
3086 void Internals::crash() { 3086 void Internals::crash() {
3087 CHECK(false) << "Intentional crash"; 3087 CHECK(false) << "Intentional crash";
3088 } 3088 }
3089 3089
3090 void Internals::setIsLowEndDevice(bool isLowEndDevice) { 3090 void Internals::setIsLowEndDevice(bool isLowEndDevice) {
3091 MemoryCoordinator::setIsLowEndDeviceForTesting(isLowEndDevice); 3091 MemoryCoordinator::setIsLowEndDeviceForTesting(isLowEndDevice);
3092 } 3092 }
3093 3093
3094 } // namespace blink 3094 } // 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