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

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

Issue 2644823002: Convert MediaControlElements timer to UnspecedTimer per-frame TaskRunnerTimer. (Closed)
Patch Set: Convert timer to MediaElementEvent per-frame TaskRunnerTimer. Created 3 years, 10 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/html/shadow/MediaControlElements.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 bool keepEventInNode(Event*) override; 56 bool keepEventInNode(Event*) override;
57 57
58 void startTimer(); 58 void startTimer();
59 void stopTimer(); 59 void stopTimer();
60 void transitionTimerFired(TimerBase*); 60 void transitionTimerFired(TimerBase*);
61 void didBecomeVisible(); 61 void didBecomeVisible();
62 62
63 bool m_isDisplayed; 63 bool m_isDisplayed;
64 bool m_opaque; 64 bool m_opaque;
65 65
66 Timer<MediaControlPanelElement> m_transitionTimer; 66 TaskRunnerTimer<MediaControlPanelElement> m_transitionTimer;
67 }; 67 };
68 68
69 // ---------------------------- 69 // ----------------------------
70 70
71 class MediaControlPanelEnclosureElement final : public MediaControlDivElement { 71 class MediaControlPanelEnclosureElement final : public MediaControlDivElement {
72 public: 72 public:
73 static MediaControlPanelEnclosureElement* create(MediaControls&); 73 static MediaControlPanelEnclosureElement* create(MediaControls&);
74 74
75 private: 75 private:
76 explicit MediaControlPanelEnclosureElement(MediaControls&); 76 explicit MediaControlPanelEnclosureElement(MediaControls&);
(...skipping 287 matching lines...) Expand 10 before | Expand all | Expand 10 after
364 public: 364 public:
365 static MediaControlCurrentTimeDisplayElement* create(MediaControls&); 365 static MediaControlCurrentTimeDisplayElement* create(MediaControls&);
366 366
367 private: 367 private:
368 explicit MediaControlCurrentTimeDisplayElement(MediaControls&); 368 explicit MediaControlCurrentTimeDisplayElement(MediaControls&);
369 }; 369 };
370 370
371 } // namespace blink 371 } // namespace blink
372 372
373 #endif // MediaControlElements_h 373 #endif // MediaControlElements_h
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/html/shadow/MediaControlElements.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698