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

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

Issue 2709393004: Media Controls: Fix time updates when dragging from track not scrubber (Closed)
Patch Set: Created 3 years, 10 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
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutSlider.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1
2 // Copyright 2016 The Chromium Authors. All rights reserved.
3 // Use of this source code is governed by a BSD-style license that can be
4 // found in the LICENSE file.
5
6 #ifndef LayoutSliderItem_h
7 #define LayoutSliderItem_h
8
9 #include "core/layout/LayoutSlider.h"
10 #include "core/layout/api/LayoutBlockItem.h"
11
12 namespace blink {
13
14 class LayoutSliderItem : public LayoutBlockItem {
15 public:
16 explicit LayoutSliderItem(LayoutSlider* layoutSlider)
17 : LayoutBlockItem(layoutSlider) {}
18
19 explicit LayoutSliderItem(const LayoutBlockItem& item)
20 : LayoutBlockItem(item) {
21 SECURITY_DCHECK(!item || item.isSlider());
22 }
23
24 explicit LayoutSliderItem(std::nullptr_t) : LayoutBlockItem(nullptr) {}
25
26 LayoutSliderItem() {}
27
28 bool inDragMode() const { return toSlider()->inDragMode(); }
29
30 private:
31 LayoutSlider* toSlider() { return toLayoutSlider(layoutObject()); }
32 const LayoutSlider* toSlider() const {
33 return toLayoutSlider(layoutObject());
34 }
35 };
36
37 } // namespace blink
38
39 #endif // LayoutSliderItem_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutSlider.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698