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

Side by Side Diff: third_party/WebKit/Source/modules/media_controls/MediaControlsImpl.h

Issue 2869803003: Change from ClientRect to DOMRect.
Patch Set: Change from ClientRect to DOMRect. Created 3 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2011, 2012 Apple Inc. All rights reserved. 2 * Copyright (C) 2011, 2012 Apple Inc. All rights reserved.
3 * Copyright (C) 2011, 2012 Google Inc. All rights reserved. 3 * Copyright (C) 2011, 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 * 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 131 matching lines...) Expand 10 before | Expand all | Expand 10 after
142 // Need to be members of MediaControls for private member access. 142 // Need to be members of MediaControls for private member access.
143 class BatchedControlUpdate; 143 class BatchedControlUpdate;
144 class MediaControlsResizeObserverDelegate; 144 class MediaControlsResizeObserverDelegate;
145 class MediaElementMutationCallback; 145 class MediaElementMutationCallback;
146 146
147 static MediaControlsImpl* Create(HTMLMediaElement&, ShadowRoot&); 147 static MediaControlsImpl* Create(HTMLMediaElement&, ShadowRoot&);
148 148
149 void Invalidate(Element*); 149 void Invalidate(Element*);
150 150
151 // Notify us that our controls enclosure has changed size. 151 // Notify us that our controls enclosure has changed size.
152 void NotifyElementSizeChanged(ClientRect* new_size); 152 void NotifyElementSizeChanged(DOMRect* new_size);
153 153
154 explicit MediaControlsImpl(HTMLMediaElement&); 154 explicit MediaControlsImpl(HTMLMediaElement&);
155 155
156 void InitializeControls(); 156 void InitializeControls();
157 157
158 void MakeOpaque(); 158 void MakeOpaque();
159 void MakeTransparent(); 159 void MakeTransparent();
160 bool IsVisible() const; 160 bool IsVisible() const;
161 161
162 void UpdatePlayState(); 162 void UpdatePlayState();
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
257 IntSize size_; 257 IntSize size_;
258 258
259 bool keep_showing_until_timer_fires_ : 1; 259 bool keep_showing_until_timer_fires_ : 1;
260 }; 260 };
261 261
262 DEFINE_ELEMENT_TYPE_CASTS(MediaControlsImpl, IsMediaControls()); 262 DEFINE_ELEMENT_TYPE_CASTS(MediaControlsImpl, IsMediaControls());
263 263
264 } // namespace blink 264 } // namespace blink
265 265
266 #endif 266 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698