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

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

Issue 1370723002: Include viewport visibility checks for autoplay experiment. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: identical to PS4 on 1329853004 (probably rebased) Created 5 years, 2 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 335 matching lines...) Expand 10 before | Expand all | Expand 10 after
346 ClientRectList focusRingRects(Element element); 346 ClientRectList focusRingRects(Element element);
347 ClientRectList outlineRects(Element element); 347 ClientRectList outlineRects(Element element);
348 void setCapsLockState(boolean enabled); 348 void setCapsLockState(boolean enabled);
349 void setSelectionPaintingWithoutSelectionGapsEnabled(boolean enabled); 349 void setSelectionPaintingWithoutSelectionGapsEnabled(boolean enabled);
350 350
351 // Returns whether the scrollbar was able to be shown or hidden; not all pla tforms 351 // Returns whether the scrollbar was able to be shown or hidden; not all pla tforms
352 // support overlay scrollbars. 352 // support overlay scrollbars.
353 bool setScrollbarVisibilityInScrollableArea(Node node, boolean visible); 353 bool setScrollbarVisibilityInScrollableArea(Node node, boolean visible);
354 354
355 void forceRestrictIFramePermissions(); 355 void forceRestrictIFramePermissions();
356
357 [TypeChecking=Interface] void triggerAutoplayViewportCheck(HTMLMediaElement mediaElement);
ojan 2015/10/01 06:14:26 We typically try to avoid adding one-off APIs like
esprehn 2015/10/01 07:04:15 You should be able to write a Sim test for this, s
liberato (no reviews please) 2015/10/01 22:49:03 added the TODO.
liberato (no reviews please) 2015/10/01 22:49:03 will look at this test, but for now leaving with T
356 }; 358 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698