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

Side by Side Diff: Source/WebCore/html/shadow/MediaControls.h

Issue 7057049: Merge 87743 (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/742/
Patch Set: Created 9 years, 6 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 | « Source/WebCore/html/HTMLMediaElement.cpp ('k') | no next file » | 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) 2011 Apple Inc. All rights reserved. 2 * Copyright (C) 2011 Apple Inc. All rights reserved.
3 * Copyright (C) 2011 Google Inc. All rights reserved. 3 * Copyright (C) 2011 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 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 virtual void changedClosedCaptionsVisibility() = 0; 66 virtual void changedClosedCaptionsVisibility() = 0;
67 67
68 virtual void showVolumeSlider() = 0; 68 virtual void showVolumeSlider() = 0;
69 virtual void updateTimeDisplay() = 0; 69 virtual void updateTimeDisplay() = 0;
70 70
71 protected: 71 protected:
72 MediaControls(HTMLMediaElement*); 72 MediaControls(HTMLMediaElement*);
73 73
74 private: 74 private:
75 MediaControls(); 75 MediaControls();
76
77 virtual bool isMediaControls() const { return true; }
76 }; 78 };
77 79
80 inline MediaControls* toMediaControls(Node* node)
81 {
82 ASSERT(!node || node->isMediaControls());
83 return static_cast<MediaControls*>(node);
84 }
85
86 // This will catch anyone doing an unneccessary cast.
87 void toMediaControls(const Node*);
88
78 } 89 }
79 90
80 #endif 91 #endif
81 92
82 #endif 93 #endif
OLDNEW
« no previous file with comments | « Source/WebCore/html/HTMLMediaElement.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698