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

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

Issue 2764673002: Embedded media: Rotate to fullscreen
Patch Set: 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 | « third_party/WebKit/Source/core/html/MediaDocument.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, 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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 // Node override. 47 // Node override.
48 Node::InsertionNotificationRequest insertedInto(ContainerNode*) override; 48 Node::InsertionNotificationRequest insertedInto(ContainerNode*) override;
49 void removedFrom(ContainerNode*) override; 49 void removedFrom(ContainerNode*) override;
50 50
51 void reset(); 51 void reset();
52 void onControlsListUpdated(); 52 void onControlsListUpdated();
53 53
54 void show(); 54 void show();
55 void hide(); 55 void hide();
56 bool isVisible() const; 56 bool isVisible() const;
57 void makeOpaque();
58 void makeTransparent();
57 59
58 void beginScrubbing(); 60 void beginScrubbing();
59 void endScrubbing(); 61 void endScrubbing();
60 62
61 void updateCurrentTimeDisplay(); 63 void updateCurrentTimeDisplay();
62 64
63 void toggleTextTrackList(); 65 void toggleTextTrackList();
64 void showTextTrackAtIndex(unsigned indexToEnable); 66 void showTextTrackAtIndex(unsigned indexToEnable);
65 void disableShowingTextTracks(); 67 void disableShowingTextTracks();
66 68
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
132 class BatchedControlUpdate; 134 class BatchedControlUpdate;
133 class MediaControlsResizeObserverCallback; 135 class MediaControlsResizeObserverCallback;
134 136
135 // Notify us that our controls enclosure has changed size. 137 // Notify us that our controls enclosure has changed size.
136 void notifyElementSizeChanged(ClientRect* newSize); 138 void notifyElementSizeChanged(ClientRect* newSize);
137 139
138 explicit MediaControls(HTMLMediaElement&); 140 explicit MediaControls(HTMLMediaElement&);
139 141
140 void initializeControls(); 142 void initializeControls();
141 143
142 void makeOpaque();
143 void makeTransparent();
144
145 void updatePlayState(); 144 void updatePlayState();
146 145
147 enum HideBehaviorFlags { 146 enum HideBehaviorFlags {
148 IgnoreNone = 0, 147 IgnoreNone = 0,
149 IgnoreVideoHover = 1 << 0, 148 IgnoreVideoHover = 1 << 0,
150 IgnoreFocus = 1 << 1, 149 IgnoreFocus = 1 << 1,
151 IgnoreControlsHover = 1 << 2, 150 IgnoreControlsHover = 1 << 2,
152 IgnoreWaitForTimer = 1 << 3, 151 IgnoreWaitForTimer = 1 << 3,
153 }; 152 };
154 153
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
233 IntSize m_size; 232 IntSize m_size;
234 233
235 bool m_keepShowingUntilTimerFires : 1; 234 bool m_keepShowingUntilTimerFires : 1;
236 }; 235 };
237 236
238 DEFINE_ELEMENT_TYPE_CASTS(MediaControls, isMediaControls()); 237 DEFINE_ELEMENT_TYPE_CASTS(MediaControls, isMediaControls());
239 238
240 } // namespace blink 239 } // namespace blink
241 240
242 #endif 241 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/html/MediaDocument.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698