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

Side by Side 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: Rebased. Created 5 years, 6 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) 2008, 2009, 2010, 2011 Apple Inc. All rights reserved. 2 * Copyright (C) 2008, 2009, 2010, 2011 Apple Inc. All rights reserved.
3 * Copyright (C) 2012 Google Inc. All rights reserved. 3 * Copyright (C) 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 * 8 *
9 * 1. Redistributions of source code must retain the above copyright 9 * 1. Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 inline HTMLMediaElement* toParentMediaElement(LayoutObject* layoutObject) { retu rn toParentMediaElement(layoutObject->node()); } 71 inline HTMLMediaElement* toParentMediaElement(LayoutObject* layoutObject) { retu rn toParentMediaElement(layoutObject->node()); }
72 72
73 CORE_EXPORT MediaControlElementType mediaControlElementType(Node*); 73 CORE_EXPORT MediaControlElementType mediaControlElementType(Node*);
74 74
75 // ---------------------------- 75 // ----------------------------
76 76
77 class MediaControlElement : public WillBeGarbageCollectedMixin { 77 class MediaControlElement : public WillBeGarbageCollectedMixin {
78 public: 78 public:
79 void hide(); 79 void hide();
80 void show(); 80 void show();
81 bool isShown();
81 82
82 MediaControlElementType displayType() { return m_displayType; } 83 MediaControlElementType displayType() { return m_displayType; }
83 84
84 DECLARE_VIRTUAL_TRACE(); 85 DECLARE_VIRTUAL_TRACE();
85 86
86 protected: 87 protected:
87 MediaControlElement(MediaControls&, MediaControlElementType, HTMLElement*); 88 MediaControlElement(MediaControls&, MediaControlElementType, HTMLElement*);
88 89
89 MediaControls& mediaControls() const { return m_mediaControls; } 90 MediaControls& mediaControls() const { return m_mediaControls; }
90 HTMLMediaElement& mediaElement() const; 91 HTMLMediaElement& mediaElement() const;
91 92
92 void setDisplayType(MediaControlElementType); 93 void setDisplayType(MediaControlElementType);
93 94
94 private: 95 private:
95 MediaControls& m_mediaControls; 96 MediaControls& m_mediaControls;
96 MediaControlElementType m_displayType; 97 MediaControlElementType m_displayType;
97 RawPtrWillBeMember<HTMLElement> m_element; 98 RawPtrWillBeMember<HTMLElement> m_element;
99 bool m_isShown;
98 }; 100 };
99 101
100 // ---------------------------- 102 // ----------------------------
101 103
102 class MediaControlDivElement : public HTMLDivElement, public MediaControlElement { 104 class MediaControlDivElement : public HTMLDivElement, public MediaControlElement {
103 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(MediaControlDivElement); 105 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(MediaControlDivElement);
104 public: 106 public:
105 DECLARE_VIRTUAL_TRACE(); 107 DECLARE_VIRTUAL_TRACE();
106 108
107 protected: 109 protected:
(...skipping 29 matching lines...) Expand all
137 protected: 139 protected:
138 MediaControlTimeDisplayElement(MediaControls&, MediaControlElementType); 140 MediaControlTimeDisplayElement(MediaControls&, MediaControlElementType);
139 141
140 private: 142 private:
141 double m_currentValue; 143 double m_currentValue;
142 }; 144 };
143 145
144 } // namespace blink 146 } // namespace blink
145 147
146 #endif // MediaControlElementTypes_h 148 #endif // MediaControlElementTypes_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698