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 18 matching lines...) Expand all Loading... |
29 #include "AutoscrollController.h" | 29 #include "AutoscrollController.h" |
30 | 30 |
31 #include "Chrome.h" | 31 #include "Chrome.h" |
32 #include "ChromeClient.h" | 32 #include "ChromeClient.h" |
33 #include "EventHandler.h" | 33 #include "EventHandler.h" |
34 #include "Frame.h" | 34 #include "Frame.h" |
35 #include "FrameView.h" | 35 #include "FrameView.h" |
36 #include "HitTestResult.h" | 36 #include "HitTestResult.h" |
37 #include "Page.h" | 37 #include "Page.h" |
38 #include "RenderBox.h" | 38 #include "RenderBox.h" |
39 #include "ScrollView.h" | 39 #include "core/platform/ScrollView.h" |
40 #include <wtf/CurrentTime.h> | 40 #include <wtf/CurrentTime.h> |
41 | 41 |
42 namespace WebCore { | 42 namespace WebCore { |
43 | 43 |
44 // Delay time in second for start autoscroll if pointer is in border edge of scr
ollable element. | 44 // Delay time in second for start autoscroll if pointer is in border edge of scr
ollable element. |
45 static double autoscrollDelay = 0.2; | 45 static double autoscrollDelay = 0.2; |
46 | 46 |
47 // When the autoscroll or the panScroll is triggered when do the scroll every 0.
05s to make it smooth | 47 // 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; | 48 static const double autoscrollInterval = 0.05; |
49 | 49 |
(...skipping 269 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
319 } else if (east) | 319 } else if (east) |
320 view->setCursor(eastPanningCursor()); | 320 view->setCursor(eastPanningCursor()); |
321 else if (west) | 321 else if (west) |
322 view->setCursor(westPanningCursor()); | 322 view->setCursor(westPanningCursor()); |
323 else | 323 else |
324 view->setCursor(middlePanningCursor()); | 324 view->setCursor(middlePanningCursor()); |
325 } | 325 } |
326 #endif | 326 #endif |
327 | 327 |
328 } // namespace WebCore | 328 } // namespace WebCore |
OLD | NEW |