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

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

Issue 2779273003: [Media Controls] Add UMA for timeline scrubber (Closed)
Patch Set: 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 206 matching lines...) Expand 10 before | Expand all | Expand 10 after
217 Member<MediaControlDownloadButtonElement> m_downloadButton; 217 Member<MediaControlDownloadButtonElement> m_downloadButton;
218 218
219 Member<MediaControlsMediaEventListener> m_mediaEventListener; 219 Member<MediaControlsMediaEventListener> m_mediaEventListener;
220 Member<MediaControlsWindowEventListener> m_windowEventListener; 220 Member<MediaControlsWindowEventListener> m_windowEventListener;
221 Member<MediaControlsOrientationLockDelegate> m_orientationLockDelegate; 221 Member<MediaControlsOrientationLockDelegate> m_orientationLockDelegate;
222 222
223 TaskRunnerTimer<MediaControls> m_hideMediaControlsTimer; 223 TaskRunnerTimer<MediaControls> m_hideMediaControlsTimer;
224 unsigned m_hideTimerBehaviorFlags; 224 unsigned m_hideTimerBehaviorFlags;
225 bool m_isMouseOverControls : 1; 225 bool m_isMouseOverControls : 1;
226 bool m_isPausedForScrubbing : 1; 226 bool m_isPausedForScrubbing : 1;
227 bool m_hasNeverBeenPlayed : 1;
227 228
228 // Watches the video element for resize and updates media controls as 229 // Watches the video element for resize and updates media controls as
229 // necessary. 230 // necessary.
230 Member<ResizeObserver> m_resizeObserver; 231 Member<ResizeObserver> m_resizeObserver;
231 232
232 TaskRunnerTimer<MediaControls> m_elementSizeChangedTimer; 233 TaskRunnerTimer<MediaControls> m_elementSizeChangedTimer;
233 IntSize m_size; 234 IntSize m_size;
234 235
235 bool m_keepShowingUntilTimerFires : 1; 236 bool m_keepShowingUntilTimerFires : 1;
236 }; 237 };
237 238
238 DEFINE_ELEMENT_TYPE_CASTS(MediaControls, isMediaControls()); 239 DEFINE_ELEMENT_TYPE_CASTS(MediaControls, isMediaControls());
239 240
240 } // namespace blink 241 } // namespace blink
241 242
242 #endif 243 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698