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 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
104 bool ShouldDisplayPosterImage() const { return GetDisplayMode() == kPoster; } | 104 bool ShouldDisplayPosterImage() const { return GetDisplayMode() == kPoster; } |
105 | 105 |
106 bool HasAvailableVideoFrame() const; | 106 bool HasAvailableVideoFrame() const; |
107 | 107 |
108 KURL PosterImageURL() const override; | 108 KURL PosterImageURL() const override; |
109 | 109 |
110 // CanvasImageSource implementation | 110 // CanvasImageSource implementation |
111 PassRefPtr<Image> GetSourceImageForCanvas(SourceImageStatus*, | 111 PassRefPtr<Image> GetSourceImageForCanvas(SourceImageStatus*, |
112 AccelerationHint, | 112 AccelerationHint, |
113 SnapshotReason, | 113 SnapshotReason, |
114 const FloatSize&) const override; | 114 const FloatSize&) override; |
115 bool IsVideoElement() const override { return true; } | 115 bool IsVideoElement() const override { return true; } |
116 bool WouldTaintOrigin(SecurityOrigin*) const override; | 116 bool WouldTaintOrigin(SecurityOrigin*) const override; |
117 FloatSize ElementSize(const FloatSize&) const override; | 117 FloatSize ElementSize(const FloatSize&) const override; |
118 const KURL& SourceURL() const override { return currentSrc(); } | 118 const KURL& SourceURL() const override { return currentSrc(); } |
119 bool IsHTMLVideoElement() const override { return true; } | 119 bool IsHTMLVideoElement() const override { return true; } |
120 int SourceWidth() override { return videoWidth(); } | 120 int SourceWidth() override { return videoWidth(); } |
121 int SourceHeight() override { return videoHeight(); } | 121 int SourceHeight() override { return videoHeight(); } |
122 // Video elements currently always go through RAM when used as a canvas image | 122 // Video elements currently always go through RAM when used as a canvas image |
123 // source. | 123 // source. |
124 bool IsAccelerated() const override { return false; } | 124 bool IsAccelerated() const override { return false; } |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
177 Member<MediaRemotingInterstitial> remoting_interstitial_; | 177 Member<MediaRemotingInterstitial> remoting_interstitial_; |
178 | 178 |
179 AtomicString default_poster_url_; | 179 AtomicString default_poster_url_; |
180 | 180 |
181 bool is_persistent_ = false; | 181 bool is_persistent_ = false; |
182 }; | 182 }; |
183 | 183 |
184 } // namespace blink | 184 } // namespace blink |
185 | 185 |
186 #endif // HTMLVideoElement_h | 186 #endif // HTMLVideoElement_h |
OLD | NEW |