| 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 #include "core/html/shadow/MediaControls.h" | 5 #include "core/html/shadow/MediaControls.h" |
| 6 | 6 |
| 7 #include "core/HTMLNames.h" | 7 #include "core/HTMLNames.h" |
| 8 #include "core/css/StylePropertySet.h" | 8 #include "core/css/StylePropertySet.h" |
| 9 #include "core/dom/Document.h" | 9 #include "core/dom/Document.h" |
| 10 #include "core/dom/ElementTraversal.h" | 10 #include "core/dom/ElementTraversal.h" |
| 11 #include "core/dom/StyleEngine.h" |
| 11 #include "core/frame/Settings.h" | 12 #include "core/frame/Settings.h" |
| 12 #include "core/html/HTMLVideoElement.h" | 13 #include "core/html/HTMLVideoElement.h" |
| 13 #include "core/testing/DummyPageHolder.h" | 14 #include "core/testing/DummyPageHolder.h" |
| 14 #include "platform/heap/Handle.h" | 15 #include "platform/heap/Handle.h" |
| 15 #include "testing/gtest/include/gtest/gtest.h" | 16 #include "testing/gtest/include/gtest/gtest.h" |
| 16 | 17 |
| 17 namespace blink { | 18 namespace blink { |
| 18 | 19 |
| 19 namespace { | 20 namespace { |
| 20 | 21 |
| (...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 186 mediaControls().mediaElement().setBooleanAttribute(HTMLNames::disableremotep
laybackAttr, true); | 187 mediaControls().mediaElement().setBooleanAttribute(HTMLNames::disableremotep
laybackAttr, true); |
| 187 simulateRouteAvailabe(); | 188 simulateRouteAvailabe(); |
| 188 ASSERT_FALSE(isElementVisible(*castOverlayButton)); | 189 ASSERT_FALSE(isElementVisible(*castOverlayButton)); |
| 189 | 190 |
| 190 mediaControls().mediaElement().setBooleanAttribute(HTMLNames::disableremotep
laybackAttr, false); | 191 mediaControls().mediaElement().setBooleanAttribute(HTMLNames::disableremotep
laybackAttr, false); |
| 191 mediaControls().reset(); | 192 mediaControls().reset(); |
| 192 ASSERT_TRUE(isElementVisible(*castOverlayButton)); | 193 ASSERT_TRUE(isElementVisible(*castOverlayButton)); |
| 193 } | 194 } |
| 194 | 195 |
| 195 } // namespace blink | 196 } // namespace blink |
| OLD | NEW |