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

Side by Side Diff: third_party/WebKit/Source/core/html/HTMLVideoElement.h

Issue 2384273007: reflow comments in core/html/*.{cpp,h},core/html/imports (Closed)
Patch Set: comments Created 4 years, 2 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) 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 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 AccelerationHint, 91 AccelerationHint,
92 SnapshotReason, 92 SnapshotReason,
93 const FloatSize&) const override; 93 const FloatSize&) const override;
94 bool isVideoElement() const override { return true; } 94 bool isVideoElement() const override { return true; }
95 bool wouldTaintOrigin(SecurityOrigin*) const override; 95 bool wouldTaintOrigin(SecurityOrigin*) const override;
96 FloatSize elementSize(const FloatSize&) const override; 96 FloatSize elementSize(const FloatSize&) const override;
97 const KURL& sourceURL() const override { return currentSrc(); } 97 const KURL& sourceURL() const override { return currentSrc(); }
98 bool isHTMLVideoElement() const override { return true; } 98 bool isHTMLVideoElement() const override { return true; }
99 int sourceWidth() override { return videoWidth(); } 99 int sourceWidth() override { return videoWidth(); }
100 int sourceHeight() override { return videoHeight(); } 100 int sourceHeight() override { return videoHeight(); }
101 bool isAccelerated() const override { 101 // Video elements currently always go through RAM when used as a canvas image
102 return false; 102 // source.
103 } // Video elements currently always go through RAM when used as a canvas ima ge source. 103 bool isAccelerated() const override { return false; }
104 104
105 // ImageBitmapSource implementation 105 // ImageBitmapSource implementation
106 IntSize bitmapSourceSize() const override; 106 IntSize bitmapSourceSize() const override;
107 ScriptPromise createImageBitmap(ScriptState*, 107 ScriptPromise createImageBitmap(ScriptState*,
108 EventTarget&, 108 EventTarget&,
109 Optional<IntRect> cropRect, 109 Optional<IntRect> cropRect,
110 const ImageBitmapOptions&, 110 const ImageBitmapOptions&,
111 ExceptionState&) override; 111 ExceptionState&) override;
112 112
113 private: 113 private:
(...skipping 17 matching lines...) Expand all
131 void setDisplayMode(DisplayMode) override; 131 void setDisplayMode(DisplayMode) override;
132 132
133 Member<HTMLImageLoader> m_imageLoader; 133 Member<HTMLImageLoader> m_imageLoader;
134 134
135 AtomicString m_defaultPosterURL; 135 AtomicString m_defaultPosterURL;
136 }; 136 };
137 137
138 } // namespace blink 138 } // namespace blink
139 139
140 #endif // HTMLVideoElement_h 140 #endif // HTMLVideoElement_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/html/HTMLTrackElement.cpp ('k') | third_party/WebKit/Source/core/html/HTMLVideoElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698