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

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

Issue 213193010: Restore the HTMLVideoElement-specific prefixed fullscreen API behind a flag (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: add test Created 6 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 | Annotate | Revision Log
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 27 matching lines...) Expand all
38 class ExceptionState; 38 class ExceptionState;
39 class HTMLImageLoader; 39 class HTMLImageLoader;
40 40
41 class HTMLVideoElement FINAL : public HTMLMediaElement, public CanvasImageSource { 41 class HTMLVideoElement FINAL : public HTMLMediaElement, public CanvasImageSource {
42 public: 42 public:
43 static PassRefPtr<HTMLVideoElement> create(Document&); 43 static PassRefPtr<HTMLVideoElement> create(Document&);
44 44
45 unsigned videoWidth() const; 45 unsigned videoWidth() const;
46 unsigned videoHeight() const; 46 unsigned videoHeight() const;
47 47
48 // Fullscreen
49 void webkitEnterFullscreen(ExceptionState&);
eseidel 2014/03/27 16:54:18 Are these different from their non-prefix'd counte
philipj_slow 2014/03/27 18:58:31 These don't have unprefixed counterparts and never
50 void webkitExitFullscreen();
51 bool webkitSupportsFullscreen();
52 bool webkitDisplayingFullscreen();
53
48 // Statistics 54 // Statistics
49 unsigned webkitDecodedFrameCount() const; 55 unsigned webkitDecodedFrameCount() const;
50 unsigned webkitDroppedFrameCount() const; 56 unsigned webkitDroppedFrameCount() const;
51 57
52 // Used by canvas to gain raw pixel access 58 // Used by canvas to gain raw pixel access
53 void paintCurrentFrameInContext(GraphicsContext*, const IntRect&) const; 59 void paintCurrentFrameInContext(GraphicsContext*, const IntRect&) const;
54 60
55 // Used by WebGL to do GPU-GPU textures copy if possible. 61 // Used by WebGL to do GPU-GPU textures copy if possible.
56 // See more details at MediaPlayer::copyVideoTextureToPlatformTexture() defi ned in Source/WebCore/platform/graphics/MediaPlayer.h. 62 // See more details at MediaPlayer::copyVideoTextureToPlatformTexture() defi ned in Source/WebCore/platform/graphics/MediaPlayer.h.
57 bool copyVideoTextureToPlatformTexture(blink::WebGraphicsContext3D*, Platfor m3DObject texture, GC3Dint level, GC3Denum type, GC3Denum internalFormat, bool p remultiplyAlpha, bool flipY); 63 bool copyVideoTextureToPlatformTexture(blink::WebGraphicsContext3D*, Platfor m3DObject texture, GC3Dint level, GC3Denum type, GC3Denum internalFormat, bool p remultiplyAlpha, bool flipY);
(...skipping 14 matching lines...) Expand all
72 private: 78 private:
73 HTMLVideoElement(Document&); 79 HTMLVideoElement(Document&);
74 80
75 virtual bool rendererIsNeeded(const RenderStyle&) OVERRIDE; 81 virtual bool rendererIsNeeded(const RenderStyle&) OVERRIDE;
76 virtual RenderObject* createRenderer(RenderStyle*) OVERRIDE; 82 virtual RenderObject* createRenderer(RenderStyle*) OVERRIDE;
77 virtual void attach(const AttachContext& = AttachContext()) OVERRIDE; 83 virtual void attach(const AttachContext& = AttachContext()) OVERRIDE;
78 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERR IDE; 84 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERR IDE;
79 virtual bool isPresentationAttribute(const QualifiedName&) const OVERRIDE; 85 virtual bool isPresentationAttribute(const QualifiedName&) const OVERRIDE;
80 virtual void collectStyleForPresentationAttribute(const QualifiedName&, cons t AtomicString&, MutableStylePropertySet*) OVERRIDE; 86 virtual void collectStyleForPresentationAttribute(const QualifiedName&, cons t AtomicString&, MutableStylePropertySet*) OVERRIDE;
81 virtual bool hasVideo() const OVERRIDE { return player() && player()->hasVid eo(); } 87 virtual bool hasVideo() const OVERRIDE { return player() && player()->hasVid eo(); }
88 bool supportsFullscreen() const;
82 virtual bool isURLAttribute(const Attribute&) const OVERRIDE; 89 virtual bool isURLAttribute(const Attribute&) const OVERRIDE;
83 virtual const AtomicString imageSourceURL() const OVERRIDE; 90 virtual const AtomicString imageSourceURL() const OVERRIDE;
84 91
85 bool hasAvailableVideoFrame() const; 92 bool hasAvailableVideoFrame() const;
86 virtual void updateDisplayState() OVERRIDE; 93 virtual void updateDisplayState() OVERRIDE;
87 virtual void didMoveToNewDocument(Document& oldDocument) OVERRIDE; 94 virtual void didMoveToNewDocument(Document& oldDocument) OVERRIDE;
88 virtual void setDisplayMode(DisplayMode) OVERRIDE; 95 virtual void setDisplayMode(DisplayMode) OVERRIDE;
89 96
90 OwnPtr<HTMLImageLoader> m_imageLoader; 97 OwnPtr<HTMLImageLoader> m_imageLoader;
91 98
92 AtomicString m_defaultPosterURL; 99 AtomicString m_defaultPosterURL;
93 }; 100 };
94 101
95 } //namespace 102 } //namespace
96 103
97 #endif 104 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698