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

Side by Side Diff: third_party/WebKit/Source/core/html/shadow/MediaControlsTest.cpp

Issue 2640983002: Rename paint data structures (Closed)
Patch Set: Clean up comments, fix mac build Created 3 years, 11 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 "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"
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 bool didLoadingProgress() override { return false; }; 53 bool didLoadingProgress() override { return false; };
54 bool hasSingleSecurityOrigin() const override { return true; }; 54 bool hasSingleSecurityOrigin() const override { return true; };
55 bool didPassCORSAccessCheck() const override { return true; }; 55 bool didPassCORSAccessCheck() const override { return true; };
56 double mediaTimeForTimeValue(double timeValue) const override { 56 double mediaTimeForTimeValue(double timeValue) const override {
57 return timeValue; 57 return timeValue;
58 }; 58 };
59 unsigned decodedFrameCount() const override { return 0; }; 59 unsigned decodedFrameCount() const override { return 0; };
60 unsigned droppedFrameCount() const override { return 0; }; 60 unsigned droppedFrameCount() const override { return 0; };
61 size_t audioDecodedByteCount() const override { return 0; }; 61 size_t audioDecodedByteCount() const override { return 0; };
62 size_t videoDecodedByteCount() const override { return 0; }; 62 size_t videoDecodedByteCount() const override { return 0; };
63 void paint(WebCanvas*, const WebRect&, SkPaint&) override{}; 63 void paint(WebCanvas*, const WebRect&, PaintFlags&) override{};
64 }; 64 };
65 65
66 class MockWebRemotePlaybackClient : public WebRemotePlaybackClient { 66 class MockWebRemotePlaybackClient : public WebRemotePlaybackClient {
67 public: 67 public:
68 void stateChanged(WebRemotePlaybackState) override {} 68 void stateChanged(WebRemotePlaybackState) override {}
69 void availabilityChanged( 69 void availabilityChanged(
70 WebRemotePlaybackAvailability availability) override { 70 WebRemotePlaybackAvailability availability) override {
71 m_availability = availability; 71 m_availability = availability;
72 } 72 }
73 void promptCancelled() override {} 73 void promptCancelled() override {}
(...skipping 235 matching lines...) Expand 10 before | Expand all | Expand 10 after
309 mediaControls().show(); 309 mediaControls().show();
310 mediaControls().toggleOverflowMenu(); 310 mediaControls().toggleOverflowMenu();
311 EXPECT_TRUE(isElementVisible(*overflowList)); 311 EXPECT_TRUE(isElementVisible(*overflowList));
312 312
313 simulateHideMediaControlsTimerFired(); 313 simulateHideMediaControlsTimerFired();
314 EXPECT_TRUE(isElementVisible(*overflowList)); 314 EXPECT_TRUE(isElementVisible(*overflowList));
315 EXPECT_TRUE(isElementVisible(*panel)); 315 EXPECT_TRUE(isElementVisible(*panel));
316 } 316 }
317 317
318 } // namespace blink 318 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698