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

Side by Side Diff: third_party/WebKit/Source/modules/media_controls/MediaControlsImplTest.cpp

Issue 2830653002: Media Controls: move volume slider to modules/. (Closed)
Patch Set: _ Created 3 years, 8 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
OLDNEW
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 "modules/media_controls/MediaControlsImpl.h" 5 #include "modules/media_controls/MediaControlsImpl.h"
6 6
7 #include <limits> 7 #include <limits>
8 #include <memory> 8 #include <memory>
9 #include "core/HTMLNames.h" 9 #include "core/HTMLNames.h"
10 #include "core/css/StylePropertySet.h" 10 #include "core/css/StylePropertySet.h"
11 #include "core/dom/ClientRect.h" 11 #include "core/dom/ClientRect.h"
12 #include "core/dom/Document.h" 12 #include "core/dom/Document.h"
13 #include "core/dom/ElementTraversal.h" 13 #include "core/dom/ElementTraversal.h"
14 #include "core/dom/StyleEngine.h" 14 #include "core/dom/StyleEngine.h"
15 #include "core/events/Event.h" 15 #include "core/events/Event.h"
16 #include "core/frame/Settings.h" 16 #include "core/frame/Settings.h"
17 #include "core/html/HTMLElement.h" 17 #include "core/html/HTMLElement.h"
18 #include "core/html/HTMLVideoElement.h" 18 #include "core/html/HTMLVideoElement.h"
19 #include "core/html/shadow/MediaControlElementTypes.h" 19 #include "core/html/shadow/MediaControlElementTypes.h"
20 #include "core/input/EventHandler.h" 20 #include "core/input/EventHandler.h"
21 #include "core/layout/LayoutObject.h" 21 #include "core/layout/LayoutObject.h"
22 #include "core/loader/EmptyClients.h" 22 #include "core/loader/EmptyClients.h"
23 #include "core/testing/DummyPageHolder.h" 23 #include "core/testing/DummyPageHolder.h"
24 #include "modules/media_controls/elements/MediaControlCurrentTimeDisplayElement. h" 24 #include "modules/media_controls/elements/MediaControlCurrentTimeDisplayElement. h"
25 #include "modules/media_controls/elements/MediaControlDownloadButtonElement.h" 25 #include "modules/media_controls/elements/MediaControlDownloadButtonElement.h"
26 #include "modules/media_controls/elements/MediaControlTimelineElement.h" 26 #include "modules/media_controls/elements/MediaControlTimelineElement.h"
27 #include "modules/media_controls/elements/MediaControlVolumeSliderElement.h"
27 #include "platform/heap/Handle.h" 28 #include "platform/heap/Handle.h"
28 #include "platform/testing/EmptyWebMediaPlayer.h" 29 #include "platform/testing/EmptyWebMediaPlayer.h"
29 #include "platform/testing/HistogramTester.h" 30 #include "platform/testing/HistogramTester.h"
30 #include "platform/testing/TestingPlatformSupport.h" 31 #include "platform/testing/TestingPlatformSupport.h"
31 #include "platform/testing/UnitTestHelpers.h" 32 #include "platform/testing/UnitTestHelpers.h"
32 #include "public/platform/WebMouseEvent.h" 33 #include "public/platform/WebMouseEvent.h"
33 #include "public/platform/WebScreenInfo.h" 34 #include "public/platform/WebScreenInfo.h"
34 #include "public/platform/WebSize.h" 35 #include "public/platform/WebSize.h"
35 #include "public/platform/modules/remoteplayback/WebRemotePlaybackAvailability.h " 36 #include "public/platform/modules/remoteplayback/WebRemotePlaybackAvailability.h "
36 #include "public/platform/modules/remoteplayback/WebRemotePlaybackClient.h" 37 #include "public/platform/modules/remoteplayback/WebRemotePlaybackClient.h"
(...skipping 803 matching lines...) Expand 10 before | Expand all | Expand 10 after
840 MediaControls().PanelElement()->DispatchEvent(Event::Create("keypress")); 841 MediaControls().PanelElement()->DispatchEvent(Event::Create("keypress"));
841 platform->RunForPeriodSeconds(2); 842 platform->RunForPeriodSeconds(2);
842 EXPECT_TRUE(IsElementVisible(*panel)); 843 EXPECT_TRUE(IsElementVisible(*panel));
843 844
844 // Once user interaction stops, controls can hide. 845 // Once user interaction stops, controls can hide.
845 platform->RunForPeriodSeconds(2); 846 platform->RunForPeriodSeconds(2);
846 EXPECT_FALSE(IsElementVisible(*panel)); 847 EXPECT_FALSE(IsElementVisible(*panel));
847 } 848 }
848 849
849 } // namespace blink 850 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698