Chromium Code Reviews| Index: Source/core/html/shadow/MediaControlElementTypes.h |
| diff --git a/Source/core/html/shadow/MediaControlElementTypes.h b/Source/core/html/shadow/MediaControlElementTypes.h |
| index 09ad25fe82421f4fb91c91483cb4f623a241aef4..872ab1be1b9950169d1fd8d2ff9e674ea37667a5 100644 |
| --- a/Source/core/html/shadow/MediaControlElementTypes.h |
| +++ b/Source/core/html/shadow/MediaControlElementTypes.h |
| @@ -78,6 +78,19 @@ class MediaControlElement : public WillBeGarbageCollectedMixin { |
| public: |
| void hide(); |
| void show(); |
| + bool isShown(); |
| + |
| + // These hold the state about whether this control should be shown if |
|
philipj_slow
2015/07/08 15:06:38
OK, I take it the problem is that there are now tw
liberato (no reviews please)
2015/07/09 12:10:56
originally, i tried to keep the state in MediaCont
|
| + // space permits. These will also show / hide as needed, though |
| + // calling show/hide does not impact the want/dontWant state. |
| + void want(); |
| + void dontWant(); |
| + bool isWanted(); |
| + |
| + // This returns the minimum width in pixels that we need to show |
| + // this control. Ideally, this would just be shorthand for the css |
|
philipj_slow
2015/07/08 15:06:38
s/css attributes/computed style/
liberato (no reviews please)
2015/07/09 12:10:56
Done.
|
| + // attributes, but this must also work when the control is hidden. |
| + int minimumWidth(); |
| MediaControlElementType displayType() { return m_displayType; } |
| @@ -95,6 +108,8 @@ private: |
| MediaControls& m_mediaControls; |
| MediaControlElementType m_displayType; |
| RawPtrWillBeMember<HTMLElement> m_element; |
| + bool m_isShown; |
| + bool m_isWanted; |
| }; |
| // ---------------------------- |