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

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

Issue 2657723002: [Blink, Media] Added controlsList to HTMLMediaElement (Closed)
Patch Set: Fixed comments Created 3 years, 9 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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 public: 42 public:
43 static MediaControls* create(HTMLMediaElement&, ShadowRoot&); 43 static MediaControls* create(HTMLMediaElement&, ShadowRoot&);
44 44
45 HTMLMediaElement& mediaElement() const { return *m_mediaElement; } 45 HTMLMediaElement& mediaElement() const { return *m_mediaElement; }
46 46
47 // Node override. 47 // Node override.
48 Node::InsertionNotificationRequest insertedInto(ContainerNode*) override; 48 Node::InsertionNotificationRequest insertedInto(ContainerNode*) override;
49 void removedFrom(ContainerNode*) override; 49 void removedFrom(ContainerNode*) override;
50 50
51 void reset(); 51 void reset();
52 void onControlsListUpdated();
52 53
53 void show(); 54 void show();
54 void hide(); 55 void hide();
55 bool isVisible() const; 56 bool isVisible() const;
56 57
57 void beginScrubbing(); 58 void beginScrubbing();
58 void endScrubbing(); 59 void endScrubbing();
59 60
60 void updateCurrentTimeDisplay(); 61 void updateCurrentTimeDisplay();
61 62
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after
225 int m_panelWidth; 226 int m_panelWidth;
226 227
227 bool m_keepShowingUntilTimerFires : 1; 228 bool m_keepShowingUntilTimerFires : 1;
228 }; 229 };
229 230
230 DEFINE_ELEMENT_TYPE_CASTS(MediaControls, isMediaControls()); 231 DEFINE_ELEMENT_TYPE_CASTS(MediaControls, isMediaControls());
231 232
232 } // namespace blink 233 } // namespace blink
233 234
234 #endif 235 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698