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

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

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 323 matching lines...) Expand 10 before | Expand all | Expand 10 after
334 return; 334 return;
335 } 335 }
336 } 336 }
337 337
338 void SliderContainerElement::handleTouchEvent(TouchEvent* event) { 338 void SliderContainerElement::handleTouchEvent(TouchEvent* event) {
339 HTMLInputElement* input = hostInput(); 339 HTMLInputElement* input = hostInput();
340 if (input->isDisabledFormControl()) 340 if (input->isDisabledFormControl())
341 return; 341 return;
342 342
343 if (event->type() == EventTypeNames::touchend) { 343 if (event->type() == EventTypeNames::touchend) {
344 // TODO: Also do this for touchcancel?
344 input->dispatchFormControlChangeEvent(); 345 input->dispatchFormControlChangeEvent();
345 event->setDefaultHandled(); 346 event->setDefaultHandled();
346 m_slidingDirection = NoMove; 347 m_slidingDirection = NoMove;
347 m_touchStarted = false; 348 m_touchStarted = false;
348 return; 349 return;
349 } 350 }
350 351
351 // The direction of this series of touch actions has been determined, which is 352 // The direction of this series of touch actions has been determined, which is
352 // perpendicular to the slider, so no need to adjust the value. 353 // perpendicular to the slider, so no need to adjust the value.
353 if (!canSlide()) { 354 if (!canSlide()) {
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
455 updateTouchEventHandlerRegistry(); 456 updateTouchEventHandlerRegistry();
456 HTMLElement::didMoveToNewDocument(oldDocument); 457 HTMLElement::didMoveToNewDocument(oldDocument);
457 } 458 }
458 459
459 void SliderContainerElement::removeAllEventListeners() { 460 void SliderContainerElement::removeAllEventListeners() {
460 Node::removeAllEventListeners(); 461 Node::removeAllEventListeners();
461 m_hasTouchEventHandler = false; 462 m_hasTouchEventHandler = false;
462 } 463 }
463 464
464 } // namespace blink 465 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698