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

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

Issue 2709393004: Media Controls: Fix time updates when dragging from track not scrubber (Closed)
Patch Set: Created 3 years, 9 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 30 matching lines...) Expand all
41 class HTMLInputElement; 41 class HTMLInputElement;
42 class Event; 42 class Event;
43 class TouchEvent; 43 class TouchEvent;
44 44
45 class SliderThumbElement final : public HTMLDivElement { 45 class SliderThumbElement final : public HTMLDivElement {
46 public: 46 public:
47 static SliderThumbElement* create(Document&); 47 static SliderThumbElement* create(Document&);
48 48
49 void setPositionFromValue(); 49 void setPositionFromValue();
50 50
51 bool inDragMode() const { return m_inDragMode; }
51 void dragFrom(const LayoutPoint&); 52 void dragFrom(const LayoutPoint&);
52 void defaultEventHandler(Event*) override; 53 void defaultEventHandler(Event*) override;
53 bool willRespondToMouseMoveEvents() override; 54 bool willRespondToMouseMoveEvents() override;
54 bool willRespondToMouseClickEvents() override; 55 bool willRespondToMouseClickEvents() override;
55 void detachLayoutTree(const AttachContext& = AttachContext()) override; 56 void detachLayoutTree(const AttachContext& = AttachContext()) override;
56 const AtomicString& shadowPseudoId() const override; 57 const AtomicString& shadowPseudoId() const override;
57 HTMLInputElement* hostInput() const; 58 HTMLInputElement* hostInput() const;
58 void setPositionFromPoint(const LayoutPoint&); 59 void setPositionFromPoint(const LayoutPoint&);
59 void stopDragging(); 60 void stopDragging();
60 61
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 104
104 bool m_hasTouchEventHandler; 105 bool m_hasTouchEventHandler;
105 bool m_touchStarted; 106 bool m_touchStarted;
106 Direction m_slidingDirection; 107 Direction m_slidingDirection;
107 LayoutPoint m_startPoint; 108 LayoutPoint m_startPoint;
108 }; 109 };
109 110
110 } // namespace blink 111 } // namespace blink
111 112
112 #endif 113 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698