Chromium Code Reviews

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

Issue 453493002: Improve detection of touch events when hiding media controls. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@autoHideControls
Patch Set: Cannot use isSimulated, so define derivesFromTouch Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff |
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 110 matching lines...)
121 RawPtrWillBeMember<MediaControlMuteButtonElement> m_muteButton; 121 RawPtrWillBeMember<MediaControlMuteButtonElement> m_muteButton;
122 RawPtrWillBeMember<MediaControlVolumeSliderElement> m_volumeSlider; 122 RawPtrWillBeMember<MediaControlVolumeSliderElement> m_volumeSlider;
123 RawPtrWillBeMember<MediaControlToggleClosedCaptionsButtonElement> m_toggleCl osedCaptionsButton; 123 RawPtrWillBeMember<MediaControlToggleClosedCaptionsButtonElement> m_toggleCl osedCaptionsButton;
124 RawPtrWillBeMember<MediaControlFullscreenButtonElement> m_fullScreenButton; 124 RawPtrWillBeMember<MediaControlFullscreenButtonElement> m_fullScreenButton;
125 RawPtrWillBeMember<MediaControlTimeRemainingDisplayElement> m_durationDispla y; 125 RawPtrWillBeMember<MediaControlTimeRemainingDisplayElement> m_durationDispla y;
126 RawPtrWillBeMember<MediaControlPanelEnclosureElement> m_enclosure; 126 RawPtrWillBeMember<MediaControlPanelEnclosureElement> m_enclosure;
127 127
128 Timer<MediaControls> m_hideMediaControlsTimer; 128 Timer<MediaControls> m_hideMediaControlsTimer;
129 bool m_isMouseOverControls : 1; 129 bool m_isMouseOverControls : 1;
130 bool m_isPausedForScrubbing : 1; 130 bool m_isPausedForScrubbing : 1;
131 bool m_wasLastEventTouch : 1;
131 }; 132 };
132 133
133 DEFINE_ELEMENT_TYPE_CASTS(MediaControls, isMediaControls()); 134 DEFINE_ELEMENT_TYPE_CASTS(MediaControls, isMediaControls());
134 135
135 } 136 }
136 137
137 #endif 138 #endif
OLDNEW

Powered by Google App Engine