OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All rights reserv
ed. | 2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All rights reserv
ed. |
3 * Copyright (C) 2006 Alexey Proskuryakov (ap@webkit.org) | 3 * Copyright (C) 2006 Alexey Proskuryakov (ap@webkit.org) |
4 * Copyright (C) 2012 Digia Plc. and/or its subsidiary(-ies) | 4 * Copyright (C) 2012 Digia Plc. and/or its subsidiary(-ies) |
5 * | 5 * |
6 * Redistribution and use in source and binary forms, with or without | 6 * Redistribution and use in source and binary forms, with or without |
7 * modification, are permitted provided that the following conditions | 7 * modification, are permitted provided that the following conditions |
8 * are met: | 8 * are met: |
9 * 1. Redistributions of source code must retain the above copyright | 9 * 1. 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 10 matching lines...) Expand all Loading... |
21 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR | 21 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR |
22 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY | 22 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY |
23 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 23 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
24 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 24 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
25 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 25 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
26 */ | 26 */ |
27 | 27 |
28 #include "config.h" | 28 #include "config.h" |
29 #include "core/page/AutoscrollController.h" | 29 #include "core/page/AutoscrollController.h" |
30 | 30 |
31 #include "core/page/Chrome.h" | |
32 #include "core/page/ChromeClient.h" | |
33 #include "core/page/EventHandler.h" | 31 #include "core/page/EventHandler.h" |
34 #include "core/page/Frame.h" | 32 #include "core/page/Frame.h" |
35 #include "core/page/FrameView.h" | |
36 #include "core/page/Page.h" | |
37 #include "core/platform/ScrollView.h" | |
38 #include "core/rendering/HitTestResult.h" | |
39 #include "core/rendering/RenderBox.h" | 33 #include "core/rendering/RenderBox.h" |
40 #include <wtf/CurrentTime.h> | 34 #include <wtf/CurrentTime.h> |
41 | 35 |
42 namespace WebCore { | 36 namespace WebCore { |
43 | 37 |
44 // Delay time in second for start autoscroll if pointer is in border edge of scr
ollable element. | 38 // Delay time in second for start autoscroll if pointer is in border edge of scr
ollable element. |
45 static double autoscrollDelay = 0.2; | 39 static double autoscrollDelay = 0.2; |
46 | 40 |
47 // When the autoscroll or the panScroll is triggered when do the scroll every 0.
05s to make it smooth | 41 // When the autoscroll or the panScroll is triggered when do the scroll every 0.
05s to make it smooth |
48 static const double autoscrollInterval = 0.05; | 42 static const double autoscrollInterval = 0.05; |
(...skipping 270 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
319 } else if (east) | 313 } else if (east) |
320 view->setCursor(eastPanningCursor()); | 314 view->setCursor(eastPanningCursor()); |
321 else if (west) | 315 else if (west) |
322 view->setCursor(westPanningCursor()); | 316 view->setCursor(westPanningCursor()); |
323 else | 317 else |
324 view->setCursor(middlePanningCursor()); | 318 view->setCursor(middlePanningCursor()); |
325 } | 319 } |
326 #endif | 320 #endif |
327 | 321 |
328 } // namespace WebCore | 322 } // namespace WebCore |
OLD | NEW |