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 2904263002: [Media Controls] Tests for rotate-to-fullscreen meets orientation lock (Closed)
Patch Set: Fix MSVC warning 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 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
128 // split from MedaiControlsImpl to reduce boilerplate and ease reading. In 128 // split from MedaiControlsImpl to reduce boilerplate and ease reading. In
129 // order to not expose accessors only for this component, a friendship is 129 // order to not expose accessors only for this component, a friendship is
130 // declared. 130 // declared.
131 friend class MediaControlsMediaEventListener; 131 friend class MediaControlsMediaEventListener;
132 // Same as above but handles the menus hiding when the window is interacted 132 // Same as above but handles the menus hiding when the window is interacted
133 // with, allowing MediaControlsImpl to not have the boilerplate. 133 // with, allowing MediaControlsImpl to not have the boilerplate.
134 friend class MediaControlsWindowEventListener; 134 friend class MediaControlsWindowEventListener;
135 135
136 // For tests. 136 // For tests.
137 friend class MediaControlsOrientationLockDelegateTest; 137 friend class MediaControlsOrientationLockDelegateTest;
138 friend class MediaControlsOrientationLockAndRotateToFullscreenDelegateTest;
138 friend class MediaControlsRotateToFullscreenDelegateTest; 139 friend class MediaControlsRotateToFullscreenDelegateTest;
139 friend class MediaControlsImplTest; 140 friend class MediaControlsImplTest;
140 141
141 // Need to be members of MediaControls for private member access. 142 // Need to be members of MediaControls for private member access.
142 class BatchedControlUpdate; 143 class BatchedControlUpdate;
143 class MediaControlsResizeObserverDelegate; 144 class MediaControlsResizeObserverDelegate;
144 class MediaElementMutationCallback; 145 class MediaElementMutationCallback;
145 146
146 static MediaControlsImpl* Create(HTMLMediaElement&, ShadowRoot&); 147 static MediaControlsImpl* Create(HTMLMediaElement&, ShadowRoot&);
147 148
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
256 IntSize size_; 257 IntSize size_;
257 258
258 bool keep_showing_until_timer_fires_ : 1; 259 bool keep_showing_until_timer_fires_ : 1;
259 }; 260 };
260 261
261 DEFINE_ELEMENT_TYPE_CASTS(MediaControlsImpl, IsMediaControls()); 262 DEFINE_ELEMENT_TYPE_CASTS(MediaControlsImpl, IsMediaControls());
262 263
263 } // namespace blink 264 } // namespace blink
264 265
265 #endif 266 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698