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

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

Issue 208483002: Implement the activation behavior of media elements (click to play/pause) (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: cancel activation behavior in a failing fullscreen test Created 6 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/html/MediaController.cpp ('k') | 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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 42
43 void setIsDisplayed(bool); 43 void setIsDisplayed(bool);
44 44
45 void makeOpaque(); 45 void makeOpaque();
46 void makeTransparent(); 46 void makeTransparent();
47 47
48 private: 48 private:
49 explicit MediaControlPanelElement(MediaControls&); 49 explicit MediaControlPanelElement(MediaControls&);
50 50
51 virtual const AtomicString& shadowPseudoId() const OVERRIDE; 51 virtual const AtomicString& shadowPseudoId() const OVERRIDE;
52 virtual void defaultEventHandler(Event*) OVERRIDE;
52 53
53 void startTimer(); 54 void startTimer();
54 void stopTimer(); 55 void stopTimer();
55 void transitionTimerFired(Timer<MediaControlPanelElement>*); 56 void transitionTimerFired(Timer<MediaControlPanelElement>*);
56 57
57 bool m_isDisplayed; 58 bool m_isDisplayed;
58 bool m_opaque; 59 bool m_opaque;
59 60
60 Timer<MediaControlPanelElement> m_transitionTimer; 61 Timer<MediaControlPanelElement> m_transitionTimer;
61 }; 62 };
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after
237 virtual RenderObject* createRenderer(RenderStyle*) OVERRIDE; 238 virtual RenderObject* createRenderer(RenderStyle*) OVERRIDE;
238 239
239 IntRect m_videoDisplaySize; 240 IntRect m_videoDisplaySize;
240 float m_fontSize; 241 float m_fontSize;
241 }; 242 };
242 243
243 244
244 } // namespace WebCore 245 } // namespace WebCore
245 246
246 #endif // MediaControlElements_h 247 #endif // MediaControlElements_h
OLDNEW
« no previous file with comments | « Source/core/html/MediaController.cpp ('k') | Source/core/html/shadow/MediaControlElements.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698