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

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

Issue 2749313002: Move slider implemention to use pointer capture (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) 1999 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
3 * (C) 1999 Antti Koivisto (koivisto@kde.org) 3 * (C) 1999 Antti Koivisto (koivisto@kde.org)
4 * (C) 2001 Dirk Mueller (mueller@kde.org) 4 * (C) 2001 Dirk Mueller (mueller@kde.org)
5 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All 5 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All
6 * rights reserved. 6 * rights reserved.
7 * (C) 2006 Alexey Proskuryakov (ap@nypop.com) 7 * (C) 2006 Alexey Proskuryakov (ap@nypop.com)
8 * Copyright (C) 2007 Samuel Weinig (sam@webkit.org) 8 * Copyright (C) 2007 Samuel Weinig (sam@webkit.org)
9 * Copyright (C) 2010 Google Inc. All rights reserved. 9 * Copyright (C) 2010 Google Inc. All rights reserved.
10 * Copyright (C) 2008 Torch Mobile Inc. All rights reserved. 10 * Copyright (C) 2008 Torch Mobile Inc. All rights reserved.
(...skipping 30 matching lines...) Expand all
41 #include "core/dom/IdTargetObserver.h" 41 #include "core/dom/IdTargetObserver.h"
42 #include "core/dom/StyleChangeReason.h" 42 #include "core/dom/StyleChangeReason.h"
43 #include "core/dom/TaskRunnerHelper.h" 43 #include "core/dom/TaskRunnerHelper.h"
44 #include "core/dom/shadow/InsertionPoint.h" 44 #include "core/dom/shadow/InsertionPoint.h"
45 #include "core/dom/shadow/ShadowRoot.h" 45 #include "core/dom/shadow/ShadowRoot.h"
46 #include "core/editing/FrameSelection.h" 46 #include "core/editing/FrameSelection.h"
47 #include "core/editing/spellcheck/SpellChecker.h" 47 #include "core/editing/spellcheck/SpellChecker.h"
48 #include "core/events/BeforeTextInsertedEvent.h" 48 #include "core/events/BeforeTextInsertedEvent.h"
49 #include "core/events/KeyboardEvent.h" 49 #include "core/events/KeyboardEvent.h"
50 #include "core/events/MouseEvent.h" 50 #include "core/events/MouseEvent.h"
51 #include "core/events/PointerEvent.h"
51 #include "core/events/ScopedEventQueue.h" 52 #include "core/events/ScopedEventQueue.h"
52 #include "core/frame/Deprecation.h" 53 #include "core/frame/Deprecation.h"
53 #include "core/frame/FrameView.h" 54 #include "core/frame/FrameView.h"
54 #include "core/frame/LocalFrame.h" 55 #include "core/frame/LocalFrame.h"
55 #include "core/frame/UseCounter.h" 56 #include "core/frame/UseCounter.h"
56 #include "core/html/HTMLCollection.h" 57 #include "core/html/HTMLCollection.h"
57 #include "core/html/HTMLDataListElement.h" 58 #include "core/html/HTMLDataListElement.h"
58 #include "core/html/HTMLDataListOptionsCollection.h" 59 #include "core/html/HTMLDataListOptionsCollection.h"
59 #include "core/html/HTMLFormElement.h" 60 #include "core/html/HTMLFormElement.h"
60 #include "core/html/HTMLImageLoader.h" 61 #include "core/html/HTMLImageLoader.h"
(...skipping 1213 matching lines...) Expand 10 before | Expand all | Expand 10 after
1274 } 1275 }
1275 1276
1276 evt->setDefaultHandled(); 1277 evt->setDefaultHandled();
1277 return; 1278 return;
1278 } 1279 }
1279 1280
1280 if (evt->isBeforeTextInsertedEvent()) 1281 if (evt->isBeforeTextInsertedEvent())
1281 m_inputTypeView->handleBeforeTextInsertedEvent( 1282 m_inputTypeView->handleBeforeTextInsertedEvent(
1282 static_cast<BeforeTextInsertedEvent*>(evt)); 1283 static_cast<BeforeTextInsertedEvent*>(evt));
1283 1284
1284 if (evt->isMouseEvent() && evt->type() == EventTypeNames::mousedown) { 1285 if (evt->isPointerEvent() && evt->type() == EventTypeNames::pointerdown) {
1285 m_inputTypeView->handleMouseDownEvent(toMouseEvent(evt)); 1286 m_inputTypeView->handlePointerDownEvent(toPointerEvent(evt));
1286 if (evt->defaultHandled()) 1287 if (evt->defaultHandled())
1287 return; 1288 return;
1288 } 1289 }
1289 1290
1290 m_inputTypeView->forwardEvent(evt); 1291 m_inputTypeView->forwardEvent(evt);
1291 1292
1292 if (!callBaseClassEarly && !evt->defaultHandled()) 1293 if (!callBaseClassEarly && !evt->defaultHandled())
1293 TextControlElement::defaultEventHandler(evt); 1294 TextControlElement::defaultEventHandler(evt);
1294 } 1295 }
1295 1296
(...skipping 584 matching lines...) Expand 10 before | Expand all | Expand 10 after
1880 1881
1881 bool HTMLInputElement::hasFallbackContent() const { 1882 bool HTMLInputElement::hasFallbackContent() const {
1882 return m_inputTypeView->hasFallbackContent(); 1883 return m_inputTypeView->hasFallbackContent();
1883 } 1884 }
1884 1885
1885 void HTMLInputElement::setFilesFromPaths(const Vector<String>& paths) { 1886 void HTMLInputElement::setFilesFromPaths(const Vector<String>& paths) {
1886 return m_inputType->setFilesFromPaths(paths); 1887 return m_inputType->setFilesFromPaths(paths);
1887 } 1888 }
1888 1889
1889 } // namespace blink 1890 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698