| OLD | NEW |
| 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 212 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 223 if (eventType == EventTypeNames::mousedown && isLeftButton) { | 223 if (eventType == EventTypeNames::mousedown && isLeftButton) { |
| 224 startDragging(); | 224 startDragging(); |
| 225 return; | 225 return; |
| 226 } | 226 } |
| 227 if (eventType == EventTypeNames::mouseup && isLeftButton) { | 227 if (eventType == EventTypeNames::mouseup && isLeftButton) { |
| 228 stopDragging(); | 228 stopDragging(); |
| 229 return; | 229 return; |
| 230 } | 230 } |
| 231 if (eventType == EventTypeNames::mousemove) { | 231 if (eventType == EventTypeNames::mousemove) { |
| 232 if (m_inDragMode) | 232 if (m_inDragMode) |
| 233 setPositionFromPoint(mouseEvent->absoluteLocation()); | 233 setPositionFromPoint(LayoutPoint(mouseEvent->absoluteLocation())); |
| 234 return; | 234 return; |
| 235 } | 235 } |
| 236 | 236 |
| 237 HTMLDivElement::defaultEventHandler(event); | 237 HTMLDivElement::defaultEventHandler(event); |
| 238 } | 238 } |
| 239 | 239 |
| 240 bool SliderThumbElement::willRespondToMouseMoveEvents() { | 240 bool SliderThumbElement::willRespondToMouseMoveEvents() { |
| 241 const HTMLInputElement* input = hostInput(); | 241 const HTMLInputElement* input = hostInput(); |
| 242 if (input && !input->isDisabledOrReadOnly() && m_inDragMode) | 242 if (input && !input->isDisabledOrReadOnly() && m_inDragMode) |
| 243 return true; | 243 return true; |
| (...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 448 updateTouchEventHandlerRegistry(); | 448 updateTouchEventHandlerRegistry(); |
| 449 HTMLElement::didMoveToNewDocument(oldDocument); | 449 HTMLElement::didMoveToNewDocument(oldDocument); |
| 450 } | 450 } |
| 451 | 451 |
| 452 void SliderContainerElement::removeAllEventListeners() { | 452 void SliderContainerElement::removeAllEventListeners() { |
| 453 Node::removeAllEventListeners(); | 453 Node::removeAllEventListeners(); |
| 454 m_hasTouchEventHandler = false; | 454 m_hasTouchEventHandler = false; |
| 455 } | 455 } |
| 456 | 456 |
| 457 } // namespace blink | 457 } // namespace blink |
| OLD | NEW |