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

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

Issue 2530883002: Refactor overlay fullscreen video handling into a single callback (Closed)
Patch Set: rebase Created 4 years 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, 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 235 matching lines...) Expand 10 before | Expand all | Expand 10 after
246 // of one of them here. 246 // of one of them here.
247 using HTMLElement::getExecutionContext; 247 using HTMLElement::getExecutionContext;
248 248
249 bool hasSingleSecurityOrigin() const { 249 bool hasSingleSecurityOrigin() const {
250 return webMediaPlayer() && webMediaPlayer()->hasSingleSecurityOrigin(); 250 return webMediaPlayer() && webMediaPlayer()->hasSingleSecurityOrigin();
251 } 251 }
252 252
253 bool isFullscreen() const; 253 bool isFullscreen() const;
254 void enterFullscreen(); 254 void enterFullscreen();
255 void exitFullscreen(); 255 void exitFullscreen();
256 void didEnterFullscreen();
257 void didExitFullscreen();
256 virtual bool usesOverlayFullscreenVideo() const { return false; } 258 virtual bool usesOverlayFullscreenVideo() const { return false; }
257 259
258 bool hasClosedCaptions() const; 260 bool hasClosedCaptions() const;
259 bool textTracksVisible() const; 261 bool textTracksVisible() const;
260 262
261 static void setTextTrackKindUserPreferenceForAllMediaElements(Document*); 263 static void setTextTrackKindUserPreferenceForAllMediaElements(Document*);
262 void automaticTrackSelectionForUpdatedUserPreference(); 264 void automaticTrackSelectionForUpdatedUserPreference();
263 265
264 // Returns the MediaControls, or null if they have not been added yet. 266 // Returns the MediaControls, or null if they have not been added yet.
265 // Note that this can be non-null even if there is no controls attribute. 267 // Note that this can be non-null even if there is no controls attribute.
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
344 bool isMouseFocusable() const final; 346 bool isMouseFocusable() const final;
345 bool layoutObjectIsNeeded(const ComputedStyle&) override; 347 bool layoutObjectIsNeeded(const ComputedStyle&) override;
346 LayoutObject* createLayoutObject(const ComputedStyle&) override; 348 LayoutObject* createLayoutObject(const ComputedStyle&) override;
347 InsertionNotificationRequest insertedInto(ContainerNode*) final; 349 InsertionNotificationRequest insertedInto(ContainerNode*) final;
348 void didNotifySubtreeInsertionsToDocument() override; 350 void didNotifySubtreeInsertionsToDocument() override;
349 void removedFrom(ContainerNode*) final; 351 void removedFrom(ContainerNode*) final;
350 void didRecalcStyle(StyleRecalcChange) final; 352 void didRecalcStyle(StyleRecalcChange) final;
351 353
352 bool canStartSelection() const override { return false; } 354 bool canStartSelection() const override { return false; }
353 355
354 void didBecomeFullscreenElement() final;
355 void willStopBeingFullscreenElement() final;
356 bool isInteractiveContent() const final; 356 bool isInteractiveContent() const final;
357 357
358 // ActiveDOMObject functions. 358 // ActiveDOMObject functions.
359 void contextDestroyed() final; 359 void contextDestroyed() final;
360 360
361 virtual void updateDisplayState() {} 361 virtual void updateDisplayState() {}
362 362
363 void setReadyState(ReadyState); 363 void setReadyState(ReadyState);
364 void setNetworkState(WebMediaPlayer::NetworkState); 364 void setNetworkState(WebMediaPlayer::NetworkState);
365 365
(...skipping 375 matching lines...) Expand 10 before | Expand all | Expand 10 after
741 741
742 inline bool isHTMLMediaElement(const HTMLElement& element) { 742 inline bool isHTMLMediaElement(const HTMLElement& element) {
743 return isHTMLAudioElement(element) || isHTMLVideoElement(element); 743 return isHTMLAudioElement(element) || isHTMLVideoElement(element);
744 } 744 }
745 745
746 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLMediaElement); 746 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLMediaElement);
747 747
748 } // namespace blink 748 } // namespace blink
749 749
750 #endif // HTMLMediaElement_h 750 #endif // HTMLMediaElement_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/dom/Fullscreen.cpp ('k') | third_party/WebKit/Source/core/html/HTMLMediaElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698