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

Side by Side 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, 7 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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 #ifndef LayoutSliderItem_h 5 #ifndef LayoutSliderItem_h
6 #define LayoutSliderItem_h 6 #define LayoutSliderItem_h
7 7
8 #include "core/CoreExport.h" 8 #include "core/CoreExport.h"
9 #include "core/layout/LayoutSlider.h"
10 #include "core/layout/api/LayoutBlockItem.h" 9 #include "core/layout/api/LayoutBlockItem.h"
11 10
12 namespace blink { 11 namespace blink {
13 12
14 class LayoutSliderItem : public LayoutBlockItem { 13 class LayoutSlider;
14
15 class CORE_EXPORT LayoutSliderItem : NON_EXPORTED_BASE(public LayoutBlockItem) {
15 public: 16 public:
16 explicit LayoutSliderItem(LayoutSlider* layout_slider) 17 explicit LayoutSliderItem(LayoutSlider*);
17 : LayoutBlockItem(layout_slider) {}
18 18
19 explicit LayoutSliderItem(const LayoutBlockItem& item) 19 explicit LayoutSliderItem(const LayoutBlockItem&);
20 : LayoutBlockItem(item) {
21 SECURITY_DCHECK(!item || item.IsSlider());
22 }
23 20
24 explicit LayoutSliderItem(std::nullptr_t) : LayoutBlockItem(nullptr) {} 21 explicit LayoutSliderItem(std::nullptr_t);
25 22
26 LayoutSliderItem() = default; 23 LayoutSliderItem();
27 24
28 CORE_EXPORT bool InDragMode() const { return ToSlider()->InDragMode(); } 25 bool InDragMode() const;
29 26
30 private: 27 private:
31 LayoutSlider* ToSlider() { return ToLayoutSlider(GetLayoutObject()); } 28 LayoutSlider* ToSlider();
32 const LayoutSlider* ToSlider() const { 29 const LayoutSlider* ToSlider() const;
33 return ToLayoutSlider(GetLayoutObject());
34 }
35 }; 30 };
36 31
37 } // namespace blink 32 } // namespace blink
38 33
39 #endif // LayoutSliderItem_h 34 #endif // LayoutSliderItem_h
OLDNEW
« 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