OLD | NEW |
---|---|
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 1849 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1860 } | 1860 } |
1861 document->page()->setIsCursorVisible(isVisible); | 1861 document->page()->setIsCursorVisible(isVisible); |
1862 } | 1862 } |
1863 | 1863 |
1864 double Internals::effectiveMediaVolume(HTMLMediaElement* mediaElement) | 1864 double Internals::effectiveMediaVolume(HTMLMediaElement* mediaElement) |
1865 { | 1865 { |
1866 ASSERT(mediaElement); | 1866 ASSERT(mediaElement); |
1867 return mediaElement->effectiveMediaVolume(); | 1867 return mediaElement->effectiveMediaVolume(); |
1868 } | 1868 } |
1869 | 1869 |
1870 unsigned short Internals::effectivePreloadType(HTMLMediaElement* mediaElement) | |
1871 { | |
1872 ASSERT(mediaElement); | |
1873 return static_cast<unsigned short>(mediaElement->effectivePreloadType()); | |
philipj_slow
2016/03/14 13:03:15
Can you call if just effectivePreload and return a
Srirama
2016/03/14 15:12:54
Done.
| |
1874 } | |
1875 | |
1870 void Internals::mediaPlayerRemoteRouteAvailabilityChanged(HTMLMediaElement* medi aElement, bool available) | 1876 void Internals::mediaPlayerRemoteRouteAvailabilityChanged(HTMLMediaElement* medi aElement, bool available) |
1871 { | 1877 { |
1872 ASSERT(mediaElement); | 1878 ASSERT(mediaElement); |
1873 mediaElement->remoteRouteAvailabilityChanged(available); | 1879 mediaElement->remoteRouteAvailabilityChanged(available); |
1874 } | 1880 } |
1875 | 1881 |
1876 void Internals::mediaPlayerPlayingRemotelyChanged(HTMLMediaElement* mediaElement , bool remote) | 1882 void Internals::mediaPlayerPlayingRemotelyChanged(HTMLMediaElement* mediaElement , bool remote) |
1877 { | 1883 { |
1878 ASSERT(mediaElement); | 1884 ASSERT(mediaElement); |
1879 if (remote) | 1885 if (remote) |
(...skipping 686 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
2566 } | 2572 } |
2567 | 2573 |
2568 int Internals::getScrollAnimationState(Node* node) const | 2574 int Internals::getScrollAnimationState(Node* node) const |
2569 { | 2575 { |
2570 if (ScrollableArea* scrollableArea = scrollableAreaForNode(node)) | 2576 if (ScrollableArea* scrollableArea = scrollableAreaForNode(node)) |
2571 return static_cast<int>(scrollableArea->scrollAnimator().m_runState); | 2577 return static_cast<int>(scrollableArea->scrollAnimator().m_runState); |
2572 return -1; | 2578 return -1; |
2573 } | 2579 } |
2574 | 2580 |
2575 } // namespace blink | 2581 } // namespace blink |
OLD | NEW |