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

Unified Diff: Source/core/html/shadow/MediaControlElementTypes.h

Issue 1156993013: New media playback UI. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: manual rebaseline. Created 5 years, 5 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 side-by-side diff with in-line comments
Download patch
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;
};
// ----------------------------

Powered by Google App Engine
This is Rietveld 408576698