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

Side by Side Diff: third_party/WebKit/Source/core/html/shadow/SliderThumbElement.h

Issue 2779273003: [Media Controls] Add UMA for timeline scrubber (Closed)
Patch Set: Appease MSVC 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
1 /* 1 /*
2 * Copyright (C) 2006, 2007, 2008, 2009 Apple Inc. All rights reserved. 2 * Copyright (C) 2006, 2007, 2008, 2009 Apple Inc. All rights reserved.
3 * Copyright (C) 2010 Google Inc. All rights reserved. 3 * Copyright (C) 2010 Google Inc. All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are 6 * modification, are permitted provided that the following conditions are
7 * met: 7 * met:
8 * 8 *
9 * * Redistributions of source code must retain the above copyright 9 * * Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 private: 61 private:
62 SliderThumbElement(Document&); 62 SliderThumbElement(Document&);
63 LayoutObject* createLayoutObject(const ComputedStyle&) override; 63 LayoutObject* createLayoutObject(const ComputedStyle&) override;
64 Element* cloneElementWithoutAttributesAndChildren() override; 64 Element* cloneElementWithoutAttributesAndChildren() override;
65 bool isDisabledFormControl() const override; 65 bool isDisabledFormControl() const override;
66 bool matchesReadOnlyPseudoClass() const override; 66 bool matchesReadOnlyPseudoClass() const override;
67 bool matchesReadWritePseudoClass() const override; 67 bool matchesReadWritePseudoClass() const override;
68 Node* focusDelegate() override; 68 Node* focusDelegate() override;
69 void startDragging(); 69 void startDragging();
70 70
71 bool m_inDragMode; 71 bool m_inDragMode; // Mouse only. Touch is handled by SliderContainerElement.
72 }; 72 };
73 73
74 inline Element* SliderThumbElement::cloneElementWithoutAttributesAndChildren() { 74 inline Element* SliderThumbElement::cloneElementWithoutAttributesAndChildren() {
75 return create(document()); 75 return create(document());
76 } 76 }
77 77
78 // FIXME: There are no ways to check if a node is a SliderThumbElement. 78 // FIXME: There are no ways to check if a node is a SliderThumbElement.
79 DEFINE_ELEMENT_TYPE_CASTS(SliderThumbElement, isHTMLElement()); 79 DEFINE_ELEMENT_TYPE_CASTS(SliderThumbElement, isHTMLElement());
80 80
81 class SliderContainerElement final : public HTMLDivElement { 81 class SliderContainerElement final : public HTMLDivElement {
(...skipping 21 matching lines...) Expand all
103 103
104 bool m_hasTouchEventHandler; 104 bool m_hasTouchEventHandler;
105 bool m_touchStarted; 105 bool m_touchStarted;
106 Direction m_slidingDirection; 106 Direction m_slidingDirection;
107 LayoutPoint m_startPoint; 107 LayoutPoint m_startPoint;
108 }; 108 };
109 109
110 } // namespace blink 110 } // namespace blink
111 111
112 #endif 112 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698