OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2007, 2008, 2009, 2010 Apple Inc. All rights reserved. | 2 * Copyright (C) 2007, 2008, 2009, 2010 Apple Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
6 * are met: | 6 * are met: |
7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
88 return video; | 88 return video; |
89 } | 89 } |
90 | 90 |
91 DEFINE_TRACE(HTMLVideoElement) { | 91 DEFINE_TRACE(HTMLVideoElement) { |
92 visitor->Trace(image_loader_); | 92 visitor->Trace(image_loader_); |
93 visitor->Trace(custom_controls_fullscreen_detector_); | 93 visitor->Trace(custom_controls_fullscreen_detector_); |
94 visitor->Trace(remoting_interstitial_); | 94 visitor->Trace(remoting_interstitial_); |
95 HTMLMediaElement::Trace(visitor); | 95 HTMLMediaElement::Trace(visitor); |
96 } | 96 } |
97 | 97 |
| 98 bool HTMLVideoElement::HasPendingActivityInternal() const { |
| 99 return image_loader_ && image_loader_->HasPendingActivity(); |
| 100 } |
| 101 |
98 Node::InsertionNotificationRequest HTMLVideoElement::InsertedInto( | 102 Node::InsertionNotificationRequest HTMLVideoElement::InsertedInto( |
99 ContainerNode* insertion_point) { | 103 ContainerNode* insertion_point) { |
100 if (insertion_point->isConnected() && custom_controls_fullscreen_detector_) | 104 if (insertion_point->isConnected() && custom_controls_fullscreen_detector_) |
101 custom_controls_fullscreen_detector_->Attach(); | 105 custom_controls_fullscreen_detector_->Attach(); |
102 | 106 |
103 return HTMLMediaElement::InsertedInto(insertion_point); | 107 return HTMLMediaElement::InsertedInto(insertion_point); |
104 } | 108 } |
105 | 109 |
106 void HTMLVideoElement::RemovedFrom(ContainerNode* insertion_point) { | 110 void HTMLVideoElement::RemovedFrom(ContainerNode* insertion_point) { |
107 HTMLMediaElement::RemovedFrom(insertion_point); | 111 HTMLMediaElement::RemovedFrom(insertion_point); |
(...skipping 411 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
519 } | 523 } |
520 | 524 |
521 void HTMLVideoElement::DisableMediaRemoting() { | 525 void HTMLVideoElement::DisableMediaRemoting() { |
522 if (GetWebMediaPlayer()) | 526 if (GetWebMediaPlayer()) |
523 GetWebMediaPlayer()->RequestRemotePlaybackDisabled(true); | 527 GetWebMediaPlayer()->RequestRemotePlaybackDisabled(true); |
524 media_remoting_status_ = MediaRemotingStatus::kDisabled; | 528 media_remoting_status_ = MediaRemotingStatus::kDisabled; |
525 MediaRemotingStopped(); | 529 MediaRemotingStopped(); |
526 } | 530 } |
527 | 531 |
528 } // namespace blink | 532 } // namespace blink |
OLD | NEW |