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

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

Issue 1156993013: New media playback UI. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fixed my own broken unit test. They really work! Created 5 years, 5 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 1843 matching lines...) Expand 10 before | Expand all | Expand 10 after
1854 1854
1855 void Internals::mediaPlayerPlayingRemotelyChanged(HTMLMediaElement* mediaElement , bool remote) 1855 void Internals::mediaPlayerPlayingRemotelyChanged(HTMLMediaElement* mediaElement , bool remote)
1856 { 1856 {
1857 ASSERT(mediaElement); 1857 ASSERT(mediaElement);
1858 if (remote) 1858 if (remote)
1859 mediaElement->connectedToRemoteDevice(); 1859 mediaElement->connectedToRemoteDevice();
1860 else 1860 else
1861 mediaElement->disconnectedFromRemoteDevice(); 1861 mediaElement->disconnectedFromRemoteDevice();
1862 } 1862 }
1863 1863
1864 void Internals::setAllowHiddenAudioElements(HTMLMediaElement* mediaElement, bool allow)
1865 {
1866 ASSERT(mediaElement);
1867 mediaElement->setAllowHiddenAudioElements(allow);
1868 }
1869
1864 void Internals::registerURLSchemeAsBypassingContentSecurityPolicy(const String& scheme) 1870 void Internals::registerURLSchemeAsBypassingContentSecurityPolicy(const String& scheme)
1865 { 1871 {
1866 SchemeRegistry::registerURLSchemeAsBypassingContentSecurityPolicy(scheme); 1872 SchemeRegistry::registerURLSchemeAsBypassingContentSecurityPolicy(scheme);
1867 } 1873 }
1868 1874
1869 void Internals::registerURLSchemeAsBypassingContentSecurityPolicy(const String& scheme, const Vector<String>& policyAreas) 1875 void Internals::registerURLSchemeAsBypassingContentSecurityPolicy(const String& scheme, const Vector<String>& policyAreas)
1870 { 1876 {
1871 uint32_t policyAreasEnum = SchemeRegistry::PolicyAreaNone; 1877 uint32_t policyAreasEnum = SchemeRegistry::PolicyAreaNone;
1872 for (const auto& policyArea : policyAreas) { 1878 for (const auto& policyArea : policyAreas) {
1873 if (policyArea == "img") 1879 if (policyArea == "img")
(...skipping 582 matching lines...) Expand 10 before | Expand all | Expand 10 after
2456 return ClientRectList::create(rects); 2462 return ClientRectList::create(rects);
2457 } 2463 }
2458 2464
2459 void Internals::setCapsLockState(bool enabled) 2465 void Internals::setCapsLockState(bool enabled)
2460 { 2466 {
2461 PlatformKeyboardEvent::setCurrentCapsLockState(enabled ? 2467 PlatformKeyboardEvent::setCurrentCapsLockState(enabled ?
2462 PlatformKeyboardEvent::OverrideCapsLockState::On : PlatformKeyboardEvent ::OverrideCapsLockState::Off); 2468 PlatformKeyboardEvent::OverrideCapsLockState::On : PlatformKeyboardEvent ::OverrideCapsLockState::Off);
2463 } 2469 }
2464 2470
2465 } // namespace blink 2471 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698