OLD | NEW |
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 #include "core/html/HTMLMediaElementControlsList.h" | 5 #include "core/html/media/HTMLMediaElementControlsList.h" |
6 | 6 |
7 #include "core/html/HTMLMediaElement.h" | 7 #include "core/html/HTMLMediaElement.h" |
8 | 8 |
9 namespace blink { | 9 namespace blink { |
10 | 10 |
11 namespace { | 11 namespace { |
12 | 12 |
13 const char kNoDownload[] = "nodownload"; | 13 const char kNoDownload[] = "nodownload"; |
14 const char kNoFullscreen[] = "nofullscreen"; | 14 const char kNoFullscreen[] = "nofullscreen"; |
15 const char kNoRemotePlayback[] = "noremoteplayback"; | 15 const char kNoRemotePlayback[] = "noremoteplayback"; |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
51 | 51 |
52 bool HTMLMediaElementControlsList::shouldHideFullscreen() const { | 52 bool HTMLMediaElementControlsList::shouldHideFullscreen() const { |
53 return tokens().contains(kNoFullscreen); | 53 return tokens().contains(kNoFullscreen); |
54 } | 54 } |
55 | 55 |
56 bool HTMLMediaElementControlsList::shouldHideRemotePlayback() const { | 56 bool HTMLMediaElementControlsList::shouldHideRemotePlayback() const { |
57 return tokens().contains(kNoRemotePlayback); | 57 return tokens().contains(kNoRemotePlayback); |
58 } | 58 } |
59 | 59 |
60 } // namespace blink | 60 } // namespace blink |
OLD | NEW |