OLD | NEW |
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 * (C) 2006 Alexey Proskuryakov (ap@webkit.org) | 5 * (C) 2006 Alexey Proskuryakov (ap@webkit.org) |
6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2011, 2012 Apple Inc. All r
ights reserved. | 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2011, 2012 Apple Inc. All r
ights reserved. |
7 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t
orchmobile.com/) | 7 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t
orchmobile.com/) |
8 * Copyright (C) 2008, 2009, 2011 Google Inc. All rights reserved. | 8 * Copyright (C) 2008, 2009, 2011 Google Inc. All rights reserved. |
9 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) | 9 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) |
10 * Copyright (C) Research In Motion Limited 2010-2011. All rights reserved. | 10 * Copyright (C) Research In Motion Limited 2010-2011. All rights reserved. |
(...skipping 5802 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5813 } | 5813 } |
5814 #endif | 5814 #endif |
5815 | 5815 |
5816 #if ENABLE(TOUCH_EVENTS) | 5816 #if ENABLE(TOUCH_EVENTS) |
5817 PassRefPtr<Touch> Document::createTouch(DOMWindow* window, EventTarget* target,
int identifier, int pageX, int pageY, int screenX, int screenY, int radiusX, int
radiusY, float rotationAngle, float force, ExceptionCode&) const | 5817 PassRefPtr<Touch> Document::createTouch(DOMWindow* window, EventTarget* target,
int identifier, int pageX, int pageY, int screenX, int screenY, int radiusX, int
radiusY, float rotationAngle, float force, ExceptionCode&) const |
5818 { | 5818 { |
5819 // FIXME: It's not clear from the documentation at | 5819 // FIXME: It's not clear from the documentation at |
5820 // http://developer.apple.com/library/safari/#documentation/UserExperience/R
eference/DocumentAdditionsReference/DocumentAdditions/DocumentAdditions.html | 5820 // http://developer.apple.com/library/safari/#documentation/UserExperience/R
eference/DocumentAdditionsReference/DocumentAdditions/DocumentAdditions.html |
5821 // when this method should throw and nor is it by inspection of iOS behavior
. It would be nice to verify any cases where it throws under iOS | 5821 // when this method should throw and nor is it by inspection of iOS behavior
. It would be nice to verify any cases where it throws under iOS |
5822 // and implement them here. See https://bugs.webkit.org/show_bug.cgi?id=4781
9 | 5822 // and implement them here. See https://bugs.webkit.org/show_bug.cgi?id=4781
9 |
5823 // Ditto for the createTouchList method below. | |
5824 Frame* frame = window ? window->frame() : this->frame(); | 5823 Frame* frame = window ? window->frame() : this->frame(); |
5825 return Touch::create(frame, target, identifier, screenX, screenY, pageX, pag
eY, radiusX, radiusY, rotationAngle, force); | 5824 return Touch::create(frame, target, identifier, screenX, screenY, pageX, pag
eY, radiusX, radiusY, rotationAngle, force); |
5826 } | 5825 } |
5827 | |
5828 PassRefPtr<TouchList> Document::createTouchList(ExceptionCode&) const | |
5829 { | |
5830 return TouchList::create(); | |
5831 } | |
5832 #endif | 5826 #endif |
5833 | 5827 |
5834 static void wheelEventHandlerCountChanged(Document* document) | 5828 static void wheelEventHandlerCountChanged(Document* document) |
5835 { | 5829 { |
5836 Page* page = document->page(); | 5830 Page* page = document->page(); |
5837 if (!page) | 5831 if (!page) |
5838 return; | 5832 return; |
5839 | 5833 |
5840 ScrollingCoordinator* scrollingCoordinator = page->scrollingCoordinator(); | 5834 ScrollingCoordinator* scrollingCoordinator = page->scrollingCoordinator(); |
5841 if (!scrollingCoordinator) | 5835 if (!scrollingCoordinator) |
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5967 node = pluginDocument->pluginNode(); | 5961 node = pluginDocument->pluginNode(); |
5968 } | 5962 } |
5969 if (!node && doc->isHTMLDocument()) | 5963 if (!node && doc->isHTMLDocument()) |
5970 node = doc->body(); | 5964 node = doc->body(); |
5971 if (!node) | 5965 if (!node) |
5972 node = doc->documentElement(); | 5966 node = doc->documentElement(); |
5973 return node; | 5967 return node; |
5974 } | 5968 } |
5975 | 5969 |
5976 } // namespace WebCore | 5970 } // namespace WebCore |
OLD | NEW |