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

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

Issue 2757323002: Prevent Media Controls from hiding when the user is interacting via the keyboard (Closed)
Patch Set: rebase Created 3 years, 8 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 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 void onDurationChange() override; 119 void onDurationChange() override;
120 void onPlay() override; 120 void onPlay() override;
121 void onPlaying() override; 121 void onPlaying() override;
122 void onPause() override; 122 void onPause() override;
123 void onTextTracksAddedOrRemoved() override; 123 void onTextTracksAddedOrRemoved() override;
124 void onTextTracksChanged() override; 124 void onTextTracksChanged() override;
125 void onError() override; 125 void onError() override;
126 void onLoadedMetadata() override; 126 void onLoadedMetadata() override;
127 void onEnteredFullscreen() override; 127 void onEnteredFullscreen() override;
128 void onExitedFullscreen() override; 128 void onExitedFullscreen() override;
129 void onPanelKeypress() override;
129 Document& ownerDocument() { return document(); } 130 Document& ownerDocument() { return document(); }
130 131
131 DECLARE_VIRTUAL_TRACE(); 132 DECLARE_VIRTUAL_TRACE();
132 133
133 private: 134 private:
134 friend class MediaControlsMediaEventListener; 135 friend class MediaControlsMediaEventListener;
135 friend class MediaControlsOrientationLockDelegateTest; 136 friend class MediaControlsOrientationLockDelegateTest;
136 friend class MediaControlsImplTest; 137 friend class MediaControlsImplTest;
137 138
138 // Need to be members of MediaControls for private member access. 139 // Need to be members of MediaControls for private member access.
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
230 IntSize m_size; 231 IntSize m_size;
231 232
232 bool m_keepShowingUntilTimerFires : 1; 233 bool m_keepShowingUntilTimerFires : 1;
233 }; 234 };
234 235
235 DEFINE_ELEMENT_TYPE_CASTS(MediaControlsImpl, isMediaControls()); 236 DEFINE_ELEMENT_TYPE_CASTS(MediaControlsImpl, isMediaControls());
236 237
237 } // namespace blink 238 } // namespace blink
238 239
239 #endif 240 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698