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

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

Issue 914043002: Tap on the video element toggles controls visibility (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 10 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 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 void createTextTrackDisplay(); 103 void createTextTrackDisplay();
104 void showTextTrackDisplay(); 104 void showTextTrackDisplay();
105 void hideTextTrackDisplay(); 105 void hideTextTrackDisplay();
106 106
107 // Node 107 // Node
108 virtual bool isMediaControls() const override { return true; } 108 virtual bool isMediaControls() const override { return true; }
109 virtual bool willRespondToMouseMoveEvents() override { return true; } 109 virtual bool willRespondToMouseMoveEvents() override { return true; }
110 virtual void defaultEventHandler(Event*) override; 110 virtual void defaultEventHandler(Event*) override;
111 bool containsRelatedTarget(Event*); 111 bool containsRelatedTarget(Event*);
112 112
113 bool isInactiveElement(Node*) const;
114
113 RawPtrWillBeMember<HTMLMediaElement> m_mediaElement; 115 RawPtrWillBeMember<HTMLMediaElement> m_mediaElement;
114 116
115 // Container for the media control elements. 117 // Container for the media control elements.
116 RawPtrWillBeMember<MediaControlPanelElement> m_panel; 118 RawPtrWillBeMember<MediaControlPanelElement> m_panel;
117 119
118 // Container for the text track cues. 120 // Container for the text track cues.
119 RawPtrWillBeMember<MediaControlTextTrackContainerElement> m_textDisplayConta iner; 121 RawPtrWillBeMember<MediaControlTextTrackContainerElement> m_textDisplayConta iner;
120 122
121 // Media control elements. 123 // Media control elements.
122 RawPtrWillBeMember<MediaControlOverlayPlayButtonElement> m_overlayPlayButton ; 124 RawPtrWillBeMember<MediaControlOverlayPlayButtonElement> m_overlayPlayButton ;
(...skipping 14 matching lines...) Expand all
137 bool m_isMouseOverControls : 1; 139 bool m_isMouseOverControls : 1;
138 bool m_isPausedForScrubbing : 1; 140 bool m_isPausedForScrubbing : 1;
139 bool m_wasLastEventTouch : 1; 141 bool m_wasLastEventTouch : 1;
140 }; 142 };
141 143
142 DEFINE_ELEMENT_TYPE_CASTS(MediaControls, isMediaControls()); 144 DEFINE_ELEMENT_TYPE_CASTS(MediaControls, isMediaControls());
143 145
144 } 146 }
145 147
146 #endif 148 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698