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

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

Issue 2680423006: UseCounter: Introduce UseCounter::Observer for layout tests (Closed)
Patch Set: instance method 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
« no previous file with comments | « third_party/WebKit/Source/core/testing/Internals.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 313 matching lines...) Expand 10 before | Expand all | Expand 10 after
324 int visualViewportHeight(); 324 int visualViewportHeight();
325 int visualViewportWidth(); 325 int visualViewportWidth();
326 double visualViewportScrollX(); 326 double visualViewportScrollX();
327 double visualViewportScrollY(); 327 double visualViewportScrollY();
328 328
329 bool magnifyScaleAroundAnchor(float offset, float x, float y); 329 bool magnifyScaleAroundAnchor(float offset, float x, float y);
330 330
331 boolean isUseCounted(Document document, unsigned long feature); 331 boolean isUseCounted(Document document, unsigned long feature);
332 boolean isCSSPropertyUseCounted(Document document, DOMString propertyName); 332 boolean isCSSPropertyUseCounted(Document document, DOMString propertyName);
333 333
334 // Returns a promise that is resolved when |feature| is counted on
335 // |document|'s UseCounter. When |feature| was already counted, it's
336 // immediately resolved.
337 [CallWith=ScriptState] Promise<bool> observeUseCounter(Document document, un signed long feature);
338
334 readonly attribute unsigned long length; 339 readonly attribute unsigned long length;
335 getter long (unsigned long index); 340 getter long (unsigned long index);
336 iterable<long>; 341 iterable<long>;
337 342
338 [Unscopable] readonly attribute DOMString unscopableAttribute; 343 [Unscopable] readonly attribute DOMString unscopableAttribute;
339 [Unscopable] DOMString unscopableMethod(); 344 [Unscopable] DOMString unscopableMethod();
340 345
341 ClientRectList focusRingRects(Element element); 346 ClientRectList focusRingRects(Element element);
342 ClientRectList outlineRects(Element element); 347 ClientRectList outlineRects(Element element);
343 void setCapsLockState(boolean enabled); 348 void setCapsLockState(boolean enabled);
(...skipping 11 matching lines...) Expand all
355 DOMString getProgrammaticScrollAnimationState(Node node); 360 DOMString getProgrammaticScrollAnimationState(Node node);
356 361
357 ClientRect visualRect(Node node); 362 ClientRect visualRect(Node node);
358 363
359 OriginTrialsTest originTrialsTest(); 364 OriginTrialsTest originTrialsTest();
360 365
361 void crash(); 366 void crash();
362 367
363 void setIsLowEndDevice(boolean isLowEndDevice); 368 void setIsLowEndDevice(boolean isLowEndDevice);
364 }; 369 };
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/testing/Internals.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698