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

Side by Side Diff: third_party/WebKit/Source/modules/media_controls/elements/MediaControlElementsHelper.cpp

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 2017 The Chromium Authors. All rights reserved. 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 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 #include "modules/media_controls/elements/MediaControlElementsHelper.h" 5 #include "modules/media_controls/elements/MediaControlElementsHelper.h"
6 6
7 #include "core/events/Event.h" 7 #include "core/events/Event.h"
8 #include "core/layout/LayoutSlider.h"
8 #include "core/layout/api/LayoutSliderItem.h" 9 #include "core/layout/api/LayoutSliderItem.h"
9 10
10 namespace blink { 11 namespace blink {
11 12
12 // static 13 // static
13 bool MediaControlElementsHelper::IsUserInteractionEvent(Event* event) { 14 bool MediaControlElementsHelper::IsUserInteractionEvent(Event* event) {
14 const AtomicString& type = event->type(); 15 const AtomicString& type = event->type();
15 return type == EventTypeNames::mousedown || type == EventTypeNames::mouseup || 16 return type == EventTypeNames::mousedown || type == EventTypeNames::mouseup ||
16 type == EventTypeNames::click || type == EventTypeNames::dblclick || 17 type == EventTypeNames::click || type == EventTypeNames::dblclick ||
17 event->IsKeyboardEvent() || event->IsTouchEvent(); 18 event->IsKeyboardEvent() || event->IsTouchEvent();
(...skipping 22 matching lines...) Expand all
40 const AtomicString& type = event->type(); 41 const AtomicString& type = event->type();
41 return type == EventTypeNames::mouseover || 42 return type == EventTypeNames::mouseover ||
42 type == EventTypeNames::mouseout || 43 type == EventTypeNames::mouseout ||
43 type == EventTypeNames::mousemove || 44 type == EventTypeNames::mousemove ||
44 type == EventTypeNames::pointerover || 45 type == EventTypeNames::pointerover ||
45 type == EventTypeNames::pointerout || 46 type == EventTypeNames::pointerout ||
46 type == EventTypeNames::pointermove; 47 type == EventTypeNames::pointermove;
47 } 48 }
48 49
49 } // namespace blink 50 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698