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

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

Issue 2696893002: [Blink>Media] Add heuristic for dominant video detection for Android (Closed)
Patch Set: nits Created 3 years, 9 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 24 matching lines...) Expand all
35 35
36 namespace gpu { 36 namespace gpu {
37 namespace gles2 { 37 namespace gles2 {
38 class GLES2Interface; 38 class GLES2Interface;
39 } 39 }
40 } 40 }
41 41
42 namespace blink { 42 namespace blink {
43 class ExceptionState; 43 class ExceptionState;
44 class ImageBitmapOptions; 44 class ImageBitmapOptions;
45 class MediaCustomControlsFullscreenDetector;
45 46
46 class CORE_EXPORT HTMLVideoElement final : public HTMLMediaElement, 47 class CORE_EXPORT HTMLVideoElement final : public HTMLMediaElement,
47 public CanvasImageSource, 48 public CanvasImageSource,
48 public ImageBitmapSource { 49 public ImageBitmapSource {
49 DEFINE_WRAPPERTYPEINFO(); 50 DEFINE_WRAPPERTYPEINFO();
50 51
51 public: 52 public:
52 static HTMLVideoElement* create(Document&); 53 static HTMLVideoElement* create(Document&);
53 DECLARE_VIRTUAL_TRACE(); 54 DECLARE_VIRTUAL_TRACE();
54 55
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 115
115 // ImageBitmapSource implementation 116 // ImageBitmapSource implementation
116 IntSize bitmapSourceSize() const override; 117 IntSize bitmapSourceSize() const override;
117 ScriptPromise createImageBitmap(ScriptState*, 118 ScriptPromise createImageBitmap(ScriptState*,
118 EventTarget&, 119 EventTarget&,
119 Optional<IntRect> cropRect, 120 Optional<IntRect> cropRect,
120 const ImageBitmapOptions&, 121 const ImageBitmapOptions&,
121 ExceptionState&) override; 122 ExceptionState&) override;
122 123
123 private: 124 private:
125 friend class MediaCustomControlsFullscreenDetectorTest;
126
124 HTMLVideoElement(Document&); 127 HTMLVideoElement(Document&);
125 128
126 bool layoutObjectIsNeeded(const ComputedStyle&) override; 129 bool layoutObjectIsNeeded(const ComputedStyle&) override;
127 LayoutObject* createLayoutObject(const ComputedStyle&) override; 130 LayoutObject* createLayoutObject(const ComputedStyle&) override;
128 void attachLayoutTree(const AttachContext& = AttachContext()) override; 131 void attachLayoutTree(const AttachContext& = AttachContext()) override;
129 void parseAttribute(const AttributeModificationParams&) override; 132 void parseAttribute(const AttributeModificationParams&) override;
130 bool isPresentationAttribute(const QualifiedName&) const override; 133 bool isPresentationAttribute(const QualifiedName&) const override;
131 void collectStyleForPresentationAttribute(const QualifiedName&, 134 void collectStyleForPresentationAttribute(const QualifiedName&,
132 const AtomicString&, 135 const AtomicString&,
133 MutableStylePropertySet*) override; 136 MutableStylePropertySet*) override;
134 bool isURLAttribute(const Attribute&) const override; 137 bool isURLAttribute(const Attribute&) const override;
135 const AtomicString imageSourceURL() const override; 138 const AtomicString imageSourceURL() const override;
136 139
137 void updateDisplayState() override; 140 void updateDisplayState() override;
138 void didMoveToNewDocument(Document& oldDocument) override; 141 void didMoveToNewDocument(Document& oldDocument) override;
139 void setDisplayMode(DisplayMode) override; 142 void setDisplayMode(DisplayMode) override;
140 143
141 Member<HTMLImageLoader> m_imageLoader; 144 Member<HTMLImageLoader> m_imageLoader;
145 Member<MediaCustomControlsFullscreenDetector>
146 m_customControlsFullscreenDetector;
142 147
143 AtomicString m_defaultPosterURL; 148 AtomicString m_defaultPosterURL;
144 }; 149 };
145 150
146 } // namespace blink 151 } // namespace blink
147 152
148 #endif // HTMLVideoElement_h 153 #endif // HTMLVideoElement_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/html/BUILD.gn ('k') | third_party/WebKit/Source/core/html/HTMLVideoElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698