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

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

Issue 2414653002: [MediaControls] Hide menus when clicking on some MediaControl elements (Closed)
Patch Set: Created 4 years, 2 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 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 void refreshCastButtonVisibilityWithoutUpdate(); 74 void refreshCastButtonVisibilityWithoutUpdate();
75 75
76 void setAllowHiddenVolumeControls(bool); 76 void setAllowHiddenVolumeControls(bool);
77 77
78 void mediaElementFocused(); 78 void mediaElementFocused();
79 79
80 // Returns the layout object for the part of the controls that should be 80 // Returns the layout object for the part of the controls that should be
81 // used for overlap checking during text track layout. May be null. 81 // used for overlap checking during text track layout. May be null.
82 LayoutObject* layoutObjectForTextTrackLayout(); 82 LayoutObject* layoutObjectForTextTrackLayout();
83 83
84 // Return the internal elements, which is used by registering clicking
85 // EventHandlers from MediaControlsWindowEventListener.
86 MediaControlPanelElement* panelElement() { return m_panel; }
87 MediaControlTimelineElement* timelineElement() { return m_timeline; }
88 MediaControlCastButtonElement* castButtonElement() { return m_castButton; }
89 MediaControlVolumeSliderElement* volumeSliderElement() {
90 return m_volumeSlider;
91 }
92
84 // Notify us that our controls enclosure has changed width. 93 // Notify us that our controls enclosure has changed width.
85 void notifyPanelWidthChanged(const LayoutUnit& newWidth); 94 void notifyPanelWidthChanged(const LayoutUnit& newWidth);
86 95
87 // Notify us that the media element's network state has changed. 96 // Notify us that the media element's network state has changed.
88 void networkStateChanged(); 97 void networkStateChanged();
89 98
90 void toggleOverflowMenu(); 99 void toggleOverflowMenu();
91 100
92 bool overflowMenuVisible(); 101 bool overflowMenuVisible();
93 102
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
171 int m_panelWidth; 180 int m_panelWidth;
172 181
173 bool m_allowHiddenVolumeControls : 1; 182 bool m_allowHiddenVolumeControls : 1;
174 }; 183 };
175 184
176 DEFINE_ELEMENT_TYPE_CASTS(MediaControls, isMediaControls()); 185 DEFINE_ELEMENT_TYPE_CASTS(MediaControls, isMediaControls());
177 186
178 } // namespace blink 187 } // namespace blink
179 188
180 #endif 189 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698