OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 AutoplayExperimentHelper_h | 5 #ifndef AutoplayExperimentHelper_h |
6 #define AutoplayExperimentHelper_h | 6 #define AutoplayExperimentHelper_h |
7 | 7 |
8 #include "core/page/Page.h" | 8 #include "core/page/Page.h" |
9 #include "platform/Timer.h" | 9 #include "platform/Timer.h" |
10 #include "platform/geometry/IntRect.h" | 10 #include "platform/geometry/IntRect.h" |
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
119 virtual bool isHTMLVideoElement() const = 0; | 119 virtual bool isHTMLVideoElement() const = 0; |
120 virtual bool isHTMLAudioElement() const = 0; | 120 virtual bool isHTMLAudioElement() const = 0; |
121 | 121 |
122 // Document | 122 // Document |
123 virtual bool isLegacyViewportType() = 0; | 123 virtual bool isLegacyViewportType() = 0; |
124 virtual PageVisibilityState pageVisibilityState() const = 0; | 124 virtual PageVisibilityState pageVisibilityState() const = 0; |
125 virtual String autoplayExperimentMode() const = 0; | 125 virtual String autoplayExperimentMode() const = 0; |
126 | 126 |
127 // Frame | 127 // Frame |
128 virtual bool isCrossOrigin() const = 0; | 128 virtual bool isCrossOrigin() const = 0; |
| 129 virtual bool isAutoplayAllowedPerSettings() const = 0; |
129 | 130 |
130 // LayoutObject | 131 // LayoutObject |
131 virtual void setRequestPositionUpdates(bool) = 0; | 132 virtual void setRequestPositionUpdates(bool) = 0; |
132 virtual IntRect absoluteBoundingBoxRect() const = 0; | 133 virtual IntRect absoluteBoundingBoxRect() const = 0; |
133 | 134 |
134 DEFINE_INLINE_VIRTUAL_TRACE() { } | 135 DEFINE_INLINE_VIRTUAL_TRACE() { } |
135 }; | 136 }; |
136 | 137 |
137 static AutoplayExperimentHelper* create(Client* client) | 138 static AutoplayExperimentHelper* create(Client* client) |
138 { | 139 { |
(...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
311 inline AutoplayExperimentHelper::Mode& operator|=(AutoplayExperimentHelper::Mode
& a, | 312 inline AutoplayExperimentHelper::Mode& operator|=(AutoplayExperimentHelper::Mode
& a, |
312 const AutoplayExperimentHelper::Mode& b) | 313 const AutoplayExperimentHelper::Mode& b) |
313 { | 314 { |
314 a = static_cast<AutoplayExperimentHelper::Mode>(static_cast<int>(a) | static
_cast<int>(b)); | 315 a = static_cast<AutoplayExperimentHelper::Mode>(static_cast<int>(a) | static
_cast<int>(b)); |
315 return a; | 316 return a; |
316 } | 317 } |
317 | 318 |
318 } // namespace blink | 319 } // namespace blink |
319 | 320 |
320 #endif // AutoplayExperimentHelper_h | 321 #endif // AutoplayExperimentHelper_h |
OLD | NEW |