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

Unified Diff: third_party/WebKit/Source/core/layout/api/LayoutMediaItem.h

Issue 2510353004: Deprecating AutoplayExperimentHelper (Closed)
Patch Set: rebased Created 4 years 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/layout/api/LayoutMediaItem.h
diff --git a/third_party/WebKit/Source/core/layout/api/LayoutMediaItem.h b/third_party/WebKit/Source/core/layout/api/LayoutMediaItem.h
deleted file mode 100644
index ce71062f1dc79f5092ae158914c60c46dae5ebf8..0000000000000000000000000000000000000000
--- a/third_party/WebKit/Source/core/layout/api/LayoutMediaItem.h
+++ /dev/null
@@ -1,38 +0,0 @@
-// Copyright 2016 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef LayoutMediaItem_h
-#define LayoutMediaItem_h
-
-#include "core/layout/LayoutMedia.h"
-#include "core/layout/api/LayoutImageItem.h"
-
-namespace blink {
-
-class LayoutMediaItem : public LayoutImageItem {
- public:
- explicit LayoutMediaItem(LayoutMedia* layoutMedia)
- : LayoutImageItem(layoutMedia) {}
-
- explicit LayoutMediaItem(const LayoutItem& item) : LayoutImageItem(item) {
- SECURITY_DCHECK(!item || item.isMedia());
- }
-
- explicit LayoutMediaItem(std::nullptr_t) : LayoutImageItem(nullptr) {}
-
- LayoutMediaItem() {}
-
- void setRequestPositionUpdates(bool want) {
- return toMedia()->setRequestPositionUpdates(want);
- }
-
- private:
- LayoutMedia* toMedia() { return toLayoutMedia(layoutObject()); }
-
- const LayoutMedia* toMedia() const { return toLayoutMedia(layoutObject()); }
-};
-
-} // namespace blink
-
-#endif // LayoutMediaItem_h
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutView.cpp ('k') | third_party/WebKit/Source/core/layout/api/LayoutViewItem.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698