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

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

Issue 2191533003: Refactor Timer classes in preparation for landing FrameTimers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: More build fixes Created 4 years, 4 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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 void makeTransparent(); 48 void makeTransparent();
49 49
50 private: 50 private:
51 explicit MediaControlPanelElement(MediaControls&); 51 explicit MediaControlPanelElement(MediaControls&);
52 52
53 void defaultEventHandler(Event*) override; 53 void defaultEventHandler(Event*) override;
54 bool keepEventInNode(Event*) override; 54 bool keepEventInNode(Event*) override;
55 55
56 void startTimer(); 56 void startTimer();
57 void stopTimer(); 57 void stopTimer();
58 void transitionTimerFired(Timer<MediaControlPanelElement>*); 58 void transitionTimerFired(TimerBase*);
59 void didBecomeVisible(); 59 void didBecomeVisible();
60 60
61 bool m_isDisplayed; 61 bool m_isDisplayed;
62 bool m_opaque; 62 bool m_opaque;
63 63
64 Timer<MediaControlPanelElement> m_transitionTimer; 64 Timer<MediaControlPanelElement> m_transitionTimer;
65 }; 65 };
66 66
67 // ---------------------------- 67 // ----------------------------
68 68
(...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after
280 public: 280 public:
281 static MediaControlCurrentTimeDisplayElement* create(MediaControls&); 281 static MediaControlCurrentTimeDisplayElement* create(MediaControls&);
282 282
283 private: 283 private:
284 explicit MediaControlCurrentTimeDisplayElement(MediaControls&); 284 explicit MediaControlCurrentTimeDisplayElement(MediaControls&);
285 }; 285 };
286 286
287 } // namespace blink 287 } // namespace blink
288 288
289 #endif // MediaControlElements_h 289 #endif // MediaControlElements_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698