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

Side by Side Diff: third_party/WebKit/Source/core/layout/api/LayoutSliderItem.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
(Empty)
1 // Copyright 2017 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "core/layout/api/LayoutSliderItem.h"
6
7 #include "core/layout/LayoutSlider.h"
8
9 namespace blink {
10
11 LayoutSliderItem::LayoutSliderItem(LayoutSlider* layout_slider)
12 : LayoutBlockItem(layout_slider) {}
13
14 LayoutSliderItem::LayoutSliderItem(const LayoutBlockItem& item)
15 : LayoutBlockItem(item) {
16 SECURITY_DCHECK(!item || item.IsSlider());
17 }
18
19 LayoutSliderItem::LayoutSliderItem(std::nullptr_t) : LayoutBlockItem(nullptr) {}
20
21 LayoutSliderItem::LayoutSliderItem() = default;
22
23 bool LayoutSliderItem::InDragMode() const {
24 return ToSlider()->InDragMode();
25 }
26
27 LayoutSlider* LayoutSliderItem::ToSlider() {
28 return ToLayoutSlider(GetLayoutObject());
29 }
30
31 const LayoutSlider* LayoutSliderItem::ToSlider() const {
32 return ToLayoutSlider(GetLayoutObject());
33 }
34
35 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698