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

Side by Side Diff: third_party/WebKit/Source/core/html/shadow/MediaControlsOrientationLockDelegate.h

Issue 2696303004: Android screen orientation lock should lock/unlock the same activity (Closed)
Patch Set: Add data deps to chrome_test_java Created 3 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
« no previous file with comments | « content/shell/android/java/src/org/chromium/content_shell/Shell.java ('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 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef MediaControlsOrientationLockDelegate_h 5 #ifndef MediaControlsOrientationLockDelegate_h
6 #define MediaControlsOrientationLockDelegate_h 6 #define MediaControlsOrientationLockDelegate_h
7 7
8 #include "core/CoreExport.h" 8 #include "core/CoreExport.h"
9 #include "core/events/EventListener.h" 9 #include "core/events/EventListener.h"
10 #include "public/platform/modules/screen_orientation/WebScreenOrientationLockTyp e.h" 10 #include "public/platform/modules/screen_orientation/WebScreenOrientationLockTyp e.h"
11 11
12 namespace blink { 12 namespace blink {
13 13
14 class Document; 14 class Document;
15 class HTMLVideoElement; 15 class HTMLVideoElement;
16 16
17 // MediaControlsOrientationLockDelegate is implementing the orientation lock 17 // MediaControlsOrientationLockDelegate is implementing the orientation lock
18 // feature when a <video> is fullscreen. It is meant to be created by 18 // feature when a <video> is fullscreen. It is meant to be created by
19 // `MediaControls` when the feature apply. Once created, it will use events to 19 // `MediaControls` when the feature applies. Once created, it will use events to
20 // change state. 20 // change state.
21 // 21 //
22 // The different states of the class are: 22 // The different states of the class are:
23 // - PendingFullscreen: the object is created and is waiting for the associated 23 // - PendingFullscreen: the object is created and is waiting for the associated
24 // <video> to go fullscreen in order to apply an orientation lock; 24 // <video> to go fullscreen in order to apply an orientation lock;
25 // - PendingMetadata: the <video> is fullscreen but the metadata have not been 25 // - PendingMetadata: the <video> is fullscreen but the metadata have not been
26 // downloaded yet. It can happen because of network latency or because the 26 // downloaded yet. It can happen because of network latency or because the
27 // <video> went fullscreen before playback and download started; 27 // <video> went fullscreen before playback and download started;
28 // - MaybeLockedFullscreen: the <video> is fullscreen and a screen orientation 28 // - MaybeLockedFullscreen: the <video> is fullscreen and a screen orientation
29 // lock was applied. 29 // lock was applied.
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 // In other words, whether the orientation was locked. 84 // In other words, whether the orientation was locked.
85 bool m_shouldUnlockOrientation = false; 85 bool m_shouldUnlockOrientation = false;
86 86
87 // `m_videoElement` owns MediaControls that owns |this|. 87 // `m_videoElement` owns MediaControls that owns |this|.
88 Member<HTMLVideoElement> m_videoElement; 88 Member<HTMLVideoElement> m_videoElement;
89 }; 89 };
90 90
91 } // namespace blink 91 } // namespace blink
92 92
93 #endif // MediaControlsOrientationLockDelegate_h 93 #endif // MediaControlsOrientationLockDelegate_h
OLDNEW
« no previous file with comments | « content/shell/android/java/src/org/chromium/content_shell/Shell.java ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698