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

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

Issue 249483002: Disable the activation behavior of media elements (click to play/pause) (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 8 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/HTMLMediaElement.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 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
120 class MediaControlOverlayPlayButtonElement FINAL : public MediaControlInputEleme nt { 120 class MediaControlOverlayPlayButtonElement FINAL : public MediaControlInputEleme nt {
121 public: 121 public:
122 static PassRefPtr<MediaControlOverlayPlayButtonElement> create(MediaControls &); 122 static PassRefPtr<MediaControlOverlayPlayButtonElement> create(MediaControls &);
123 123
124 virtual void updateDisplayType() OVERRIDE; 124 virtual void updateDisplayType() OVERRIDE;
125 125
126 private: 126 private:
127 explicit MediaControlOverlayPlayButtonElement(MediaControls&); 127 explicit MediaControlOverlayPlayButtonElement(MediaControls&);
128 128
129 virtual const AtomicString& shadowPseudoId() const OVERRIDE; 129 virtual const AtomicString& shadowPseudoId() const OVERRIDE;
130 virtual void defaultEventHandler(Event*) OVERRIDE;
130 }; 131 };
131 132
132 // ---------------------------- 133 // ----------------------------
133 134
134 class MediaControlToggleClosedCaptionsButtonElement FINAL : public MediaControlI nputElement { 135 class MediaControlToggleClosedCaptionsButtonElement FINAL : public MediaControlI nputElement {
135 public: 136 public:
136 static PassRefPtr<MediaControlToggleClosedCaptionsButtonElement> create(Medi aControls&); 137 static PassRefPtr<MediaControlToggleClosedCaptionsButtonElement> create(Medi aControls&);
137 138
138 virtual bool willRespondToMouseClickEvents() OVERRIDE { return true; } 139 virtual bool willRespondToMouseClickEvents() OVERRIDE { return true; }
139 140
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
239 virtual RenderObject* createRenderer(RenderStyle*) OVERRIDE; 240 virtual RenderObject* createRenderer(RenderStyle*) OVERRIDE;
240 241
241 IntRect m_videoDisplaySize; 242 IntRect m_videoDisplaySize;
242 float m_fontSize; 243 float m_fontSize;
243 }; 244 };
244 245
245 246
246 } // namespace WebCore 247 } // namespace WebCore
247 248
248 #endif // MediaControlElements_h 249 #endif // MediaControlElements_h
OLDNEW
« no previous file with comments | « Source/core/html/HTMLMediaElement.cpp ('k') | Source/core/html/shadow/MediaControlElements.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698