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

Side by Side Diff: sky/engine/core/html/HTMLMediaElement.h

Issue 683703003: Remove various Heap* types. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years, 1 month 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
« no previous file with comments | « sky/engine/core/html/HTMLCanvasElement.cpp ('k') | sky/engine/core/html/HTMLMediaElement.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2007, 2008, 2009, 2010, 2011, 2012, 2013 Apple Inc. All rights reserved. 2 * Copyright (C) 2007, 2008, 2009, 2010, 2011, 2012, 2013 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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 // But it can't be until the Chromium WebMediaPlayerClientImpl class is fixed so it 55 // But it can't be until the Chromium WebMediaPlayerClientImpl class is fixed so it
56 // no longer depends on typecasting a MediaPlayerClient to an HTMLMediaElement. 56 // no longer depends on typecasting a MediaPlayerClient to an HTMLMediaElement.
57 57
58 class HTMLMediaElement : public HTMLElement, public Supplementable<HTMLMediaElem ent>, public MediaPlayerClient, public ActiveDOMObject 58 class HTMLMediaElement : public HTMLElement, public Supplementable<HTMLMediaElem ent>, public MediaPlayerClient, public ActiveDOMObject
59 { 59 {
60 DEFINE_WRAPPERTYPEINFO(); 60 DEFINE_WRAPPERTYPEINFO();
61 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(HTMLMediaElement); 61 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(HTMLMediaElement);
62 public: 62 public:
63 static blink::WebMimeRegistry::SupportsType supportsType(const ContentType&, const String& keySystem = String()); 63 static blink::WebMimeRegistry::SupportsType supportsType(const ContentType&, const String& keySystem = String());
64 64
65 virtual void trace(Visitor*) override;
66
67 // Do not use player(). 65 // Do not use player().
68 // FIXME: Replace all uses with webMediaPlayer() and remove this API. 66 // FIXME: Replace all uses with webMediaPlayer() and remove this API.
69 MediaPlayer* player() const { return m_player.get(); } 67 MediaPlayer* player() const { return m_player.get(); }
70 blink::WebMediaPlayer* webMediaPlayer() const { return m_player ? m_player-> webMediaPlayer() : 0; } 68 blink::WebMediaPlayer* webMediaPlayer() const { return m_player ? m_player-> webMediaPlayer() : 0; }
71 69
72 virtual bool hasVideo() const { return false; } 70 virtual bool hasVideo() const { return false; }
73 bool hasAudio() const; 71 bool hasAudio() const;
74 72
75 bool supportsSave() const; 73 bool supportsSave() const;
76 74
(...skipping 362 matching lines...) Expand 10 before | Expand all | Expand 10 after
439 inline bool isHTMLMediaElement(const HTMLElement& element) 437 inline bool isHTMLMediaElement(const HTMLElement& element)
440 { 438 {
441 return isHTMLAudioElement(element) || isHTMLVideoElement(element); 439 return isHTMLAudioElement(element) || isHTMLVideoElement(element);
442 } 440 }
443 441
444 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLMediaElement); 442 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLMediaElement);
445 443
446 } // namespace blink 444 } // namespace blink
447 445
448 #endif // HTMLMediaElement_h 446 #endif // HTMLMediaElement_h
OLDNEW
« no previous file with comments | « sky/engine/core/html/HTMLCanvasElement.cpp ('k') | sky/engine/core/html/HTMLMediaElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698