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

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

Issue 2484973005: [Blink, RemotePlaybackAPI] Create WebRemotePlaybackClient in HTMLMediaElement ctor to avoid lazy in… (Closed)
Patch Set: Removed <v8.h> from HTMLMediaElement.cpp Created 4 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 | « no previous file | third_party/WebKit/Source/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 2 * Copyright (C) 2007, 2008, 2009, 2010, 2011, 2012, 2013 Apple Inc. All rights
3 * reserved. 3 * reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 290 matching lines...) Expand 10 before | Expand all | Expand 10 after
301 301
302 void videoWillBeDrawnToCanvas() const; 302 void videoWillBeDrawnToCanvas() const;
303 303
304 // Temporary callback for crbug.com/487345,402044 304 // Temporary callback for crbug.com/487345,402044
305 void notifyPositionMayHaveChanged(const IntRect&); 305 void notifyPositionMayHaveChanged(const IntRect&);
306 void updatePositionNotificationRegistration(); 306 void updatePositionNotificationRegistration();
307 307
308 WebRemotePlaybackClient* remotePlaybackClient() { 308 WebRemotePlaybackClient* remotePlaybackClient() {
309 return m_remotePlaybackClient; 309 return m_remotePlaybackClient;
310 } 310 }
311 void setRemotePlaybackClient(WebRemotePlaybackClient*);
312 311
313 protected: 312 protected:
314 HTMLMediaElement(const QualifiedName&, Document&); 313 HTMLMediaElement(const QualifiedName&, Document&);
315 ~HTMLMediaElement() override; 314 ~HTMLMediaElement() override;
316 void dispose(); 315 void dispose();
317 316
318 void parseAttribute(const QualifiedName&, 317 void parseAttribute(const QualifiedName&,
319 const AtomicString&, 318 const AtomicString&,
320 const AtomicString&) override; 319 const AtomicString&) override;
321 void finishParsingChildren() final; 320 void finishParsingChildren() final;
(...skipping 414 matching lines...) Expand 10 before | Expand all | Expand 10 after
736 735
737 inline bool isHTMLMediaElement(const HTMLElement& element) { 736 inline bool isHTMLMediaElement(const HTMLElement& element) {
738 return isHTMLAudioElement(element) || isHTMLVideoElement(element); 737 return isHTMLAudioElement(element) || isHTMLVideoElement(element);
739 } 738 }
740 739
741 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLMediaElement); 740 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLMediaElement);
742 741
743 } // namespace blink 742 } // namespace blink
744 743
745 #endif // HTMLMediaElement_h 744 #endif // HTMLMediaElement_h
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/html/HTMLMediaElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698