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

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

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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/layout/api/LayoutSliderItem.h
diff --git a/third_party/WebKit/Source/core/layout/api/LayoutSliderItem.h b/third_party/WebKit/Source/core/layout/api/LayoutSliderItem.h
index 1583de3ee16dcb1fb34ebe9c21ed2c2871ca0149..0e32e417852a6fee191664a0c753ae7b9763db80 100644
--- a/third_party/WebKit/Source/core/layout/api/LayoutSliderItem.h
+++ b/third_party/WebKit/Source/core/layout/api/LayoutSliderItem.h
@@ -6,32 +6,27 @@
#define LayoutSliderItem_h
#include "core/CoreExport.h"
-#include "core/layout/LayoutSlider.h"
#include "core/layout/api/LayoutBlockItem.h"
namespace blink {
-class LayoutSliderItem : public LayoutBlockItem {
+class LayoutSlider;
+
+class CORE_EXPORT LayoutSliderItem : NON_EXPORTED_BASE(public LayoutBlockItem) {
public:
- explicit LayoutSliderItem(LayoutSlider* layout_slider)
- : LayoutBlockItem(layout_slider) {}
+ explicit LayoutSliderItem(LayoutSlider*);
- explicit LayoutSliderItem(const LayoutBlockItem& item)
- : LayoutBlockItem(item) {
- SECURITY_DCHECK(!item || item.IsSlider());
- }
+ explicit LayoutSliderItem(const LayoutBlockItem&);
- explicit LayoutSliderItem(std::nullptr_t) : LayoutBlockItem(nullptr) {}
+ explicit LayoutSliderItem(std::nullptr_t);
- LayoutSliderItem() = default;
+ LayoutSliderItem();
- CORE_EXPORT bool InDragMode() const { return ToSlider()->InDragMode(); }
+ bool InDragMode() const;
private:
- LayoutSlider* ToSlider() { return ToLayoutSlider(GetLayoutObject()); }
- const LayoutSlider* ToSlider() const {
- return ToLayoutSlider(GetLayoutObject());
- }
+ LayoutSlider* ToSlider();
+ const LayoutSlider* ToSlider() const;
};
} // namespace blink
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutTheme.cpp ('k') | third_party/WebKit/Source/core/layout/api/LayoutSliderItem.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698