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

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

Issue 1157253010: Remove WebMediaPlayerClient::requestFullscreen() (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: rebase Created 5 years, 6 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 | « Source/core/testing/Internals.h ('k') | Source/core/testing/Internals.idl » ('j') | 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 1763 matching lines...) Expand 10 before | Expand all | Expand 10 after
1774 void Internals::setIsCursorVisible(Document* document, bool isVisible, Exception State& exceptionState) 1774 void Internals::setIsCursorVisible(Document* document, bool isVisible, Exception State& exceptionState)
1775 { 1775 {
1776 ASSERT(document); 1776 ASSERT(document);
1777 if (!document->page()) { 1777 if (!document->page()) {
1778 exceptionState.throwDOMException(InvalidAccessError, "No context documen t can be obtained."); 1778 exceptionState.throwDOMException(InvalidAccessError, "No context documen t can be obtained.");
1779 return; 1779 return;
1780 } 1780 }
1781 document->page()->setIsCursorVisible(isVisible); 1781 document->page()->setIsCursorVisible(isVisible);
1782 } 1782 }
1783 1783
1784 void Internals::mediaPlayerRequestFullscreen(HTMLMediaElement* mediaElement)
1785 {
1786 ASSERT(mediaElement);
1787 mediaElement->mediaPlayerRequestFullscreen();
1788 }
1789
1790 double Internals::effectiveMediaVolume(HTMLMediaElement* mediaElement) 1784 double Internals::effectiveMediaVolume(HTMLMediaElement* mediaElement)
1791 { 1785 {
1792 ASSERT(mediaElement); 1786 ASSERT(mediaElement);
1793 return mediaElement->effectiveMediaVolume(); 1787 return mediaElement->effectiveMediaVolume();
1794 } 1788 }
1795 1789
1796 void Internals::mediaPlayerRemoteRouteAvailabilityChanged(HTMLMediaElement* medi aElement, bool available) 1790 void Internals::mediaPlayerRemoteRouteAvailabilityChanged(HTMLMediaElement* medi aElement, bool available)
1797 { 1791 {
1798 ASSERT(mediaElement); 1792 ASSERT(mediaElement);
1799 mediaElement->remoteRouteAvailabilityChanged(available); 1793 mediaElement->remoteRouteAvailabilityChanged(available);
(...skipping 587 matching lines...) Expand 10 before | Expand all | Expand 10 after
2387 2381
2388 ClientRectList* Internals::focusRingRects(Element* element) 2382 ClientRectList* Internals::focusRingRects(Element* element)
2389 { 2383 {
2390 Vector<LayoutRect> rects; 2384 Vector<LayoutRect> rects;
2391 if (element && element->layoutObject()) 2385 if (element && element->layoutObject())
2392 element->layoutObject()->addFocusRingRects(rects, LayoutPoint()); 2386 element->layoutObject()->addFocusRingRects(rects, LayoutPoint());
2393 return ClientRectList::create(rects); 2387 return ClientRectList::create(rects);
2394 } 2388 }
2395 2389
2396 } // namespace blink 2390 } // namespace blink
OLDNEW
« no previous file with comments | « Source/core/testing/Internals.h ('k') | Source/core/testing/Internals.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698