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

Side by Side Diff: third_party/WebKit/Source/modules/media_controls/MediaControlsImpl.h

Issue 2873493004: [Media Controls] Prevent flicker when enter/exit fullscreen (Closed)
Patch Set: Add virtual/new-remote-playback-pipeline variants to SlowTests Created 3 years, 7 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) 2011, 2012 Apple Inc. All rights reserved. 2 * Copyright (C) 2011, 2012 Apple Inc. All rights reserved.
3 * Copyright (C) 2011, 2012 Google Inc. All rights reserved. 3 * Copyright (C) 2011, 2012 Google Inc. All rights 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 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 MediaControls* Create(HTMLMediaElement&, ShadowRoot&) override; 70 MediaControls* Create(HTMLMediaElement&, ShadowRoot&) override;
71 }; 71 };
72 72
73 ~MediaControlsImpl() = default; 73 ~MediaControlsImpl() = default;
74 74
75 // Node override. 75 // Node override.
76 Node::InsertionNotificationRequest InsertedInto(ContainerNode*) override; 76 Node::InsertionNotificationRequest InsertedInto(ContainerNode*) override;
77 void RemovedFrom(ContainerNode*) override; 77 void RemovedFrom(ContainerNode*) override;
78 78
79 // MediaControls implementation. 79 // MediaControls implementation.
80 void Show() override; 80 void MaybeShow() override;
81 void Hide() override; 81 void Hide() override;
82 void Reset() override; 82 void Reset() override;
83 void OnControlsListUpdated() override; 83 void OnControlsListUpdated() override;
84 // TODO(mlamouri): this is temporary to notify the controls that an 84 // TODO(mlamouri): this is temporary to notify the controls that an
85 // HTMLTrackElement failed to load because there is no web exposed way to 85 // HTMLTrackElement failed to load because there is no web exposed way to
86 // be notified on the TextTrack object. See https://crbug.com/669977 86 // be notified on the TextTrack object. See https://crbug.com/669977
87 void OnTrackElementFailedToLoad() override { OnTextTracksAddedOrRemoved(); } 87 void OnTrackElementFailedToLoad() override { OnTextTracksAddedOrRemoved(); }
88 // Notify us that the media element's network state has changed. 88 // Notify us that the media element's network state has changed.
89 void NetworkStateChanged() override; 89 void NetworkStateChanged() override;
90 LayoutObject* PanelLayoutObject() override; 90 LayoutObject* PanelLayoutObject() override;
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after
255 IntSize size_; 255 IntSize size_;
256 256
257 bool keep_showing_until_timer_fires_ : 1; 257 bool keep_showing_until_timer_fires_ : 1;
258 }; 258 };
259 259
260 DEFINE_ELEMENT_TYPE_CASTS(MediaControlsImpl, IsMediaControls()); 260 DEFINE_ELEMENT_TYPE_CASTS(MediaControlsImpl, IsMediaControls());
261 261
262 } // namespace blink 262 } // namespace blink
263 263
264 #endif 264 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698