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

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

Issue 291163004: Implement media cast buttons (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 7 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 168 matching lines...) Expand 10 before | Expand all | Expand 10 after
179 179
180 private: 180 private:
181 explicit MediaControlFullscreenButtonElement(MediaControls&); 181 explicit MediaControlFullscreenButtonElement(MediaControls&);
182 182
183 virtual const AtomicString& shadowPseudoId() const OVERRIDE; 183 virtual const AtomicString& shadowPseudoId() const OVERRIDE;
184 virtual void defaultEventHandler(Event*) OVERRIDE; 184 virtual void defaultEventHandler(Event*) OVERRIDE;
185 }; 185 };
186 186
187 // ---------------------------- 187 // ----------------------------
188 188
189 class MediaControlCastOffButtonElement FINAL : public MediaControlInputElement {
190 public:
191 static PassRefPtrWillBeRawPtr<MediaControlCastOffButtonElement> create(Media Controls&);
192
193 virtual bool willRespondToMouseClickEvents() OVERRIDE { return true; }
194
195 void setIsCasting(bool);
196
197 private:
198 explicit MediaControlCastOffButtonElement(MediaControls&);
199
200 virtual const AtomicString& shadowPseudoId() const OVERRIDE;
201 virtual void defaultEventHandler(Event*) OVERRIDE;
202 };
203
204 // ----------------------------
205
189 class MediaControlVolumeSliderElement FINAL : public MediaControlInputElement { 206 class MediaControlVolumeSliderElement FINAL : public MediaControlInputElement {
190 public: 207 public:
191 static PassRefPtrWillBeRawPtr<MediaControlVolumeSliderElement> create(MediaC ontrols&); 208 static PassRefPtrWillBeRawPtr<MediaControlVolumeSliderElement> create(MediaC ontrols&);
192 209
193 virtual bool willRespondToMouseMoveEvents() OVERRIDE; 210 virtual bool willRespondToMouseMoveEvents() OVERRIDE;
194 virtual bool willRespondToMouseClickEvents() OVERRIDE; 211 virtual bool willRespondToMouseClickEvents() OVERRIDE;
195 void setVolume(double); 212 void setVolume(double);
196 213
197 private: 214 private:
198 explicit MediaControlVolumeSliderElement(MediaControls&); 215 explicit MediaControlVolumeSliderElement(MediaControls&);
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
240 virtual RenderObject* createRenderer(RenderStyle*) OVERRIDE; 257 virtual RenderObject* createRenderer(RenderStyle*) OVERRIDE;
241 258
242 IntRect m_videoDisplaySize; 259 IntRect m_videoDisplaySize;
243 float m_fontSize; 260 float m_fontSize;
244 }; 261 };
245 262
246 263
247 } // namespace WebCore 264 } // namespace WebCore
248 265
249 #endif // MediaControlElements_h 266 #endif // MediaControlElements_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698