| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2013 Google Inc. All rights reserved. | 2 * Copyright (C) 2013 Google Inc. All rights reserved. |
| 3 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All rights reserv
ed. | 3 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All rights reserv
ed. |
| 4 * Copyright (C) 2006 Alexey Proskuryakov (ap@webkit.org) | 4 * Copyright (C) 2006 Alexey Proskuryakov (ap@webkit.org) |
| 5 * Copyright (C) 2012 Digia Plc. and/or its subsidiary(-ies) | 5 * Copyright (C) 2012 Digia Plc. and/or its subsidiary(-ies) |
| 6 * | 6 * |
| 7 * Redistribution and use in source and binary forms, with or without | 7 * Redistribution and use in source and binary forms, with or without |
| 8 * modification, are permitted provided that the following conditions | 8 * modification, are permitted provided that the following conditions |
| 9 * are met: | 9 * are met: |
| 10 * 1. Redistributions of source code must retain the above copyright | 10 * 1. Redistributions of source code must retain the above copyright |
| (...skipping 13 matching lines...) Expand all Loading... |
| 24 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 24 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
| 25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
| 26 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 26 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 27 */ | 27 */ |
| 28 | 28 |
| 29 #include "sky/engine/config.h" | 29 #include "sky/engine/config.h" |
| 30 #include "sky/engine/core/page/AutoscrollController.h" | 30 #include "sky/engine/core/page/AutoscrollController.h" |
| 31 | 31 |
| 32 #include "sky/engine/core/frame/FrameView.h" | 32 #include "sky/engine/core/frame/FrameView.h" |
| 33 #include "sky/engine/core/frame/LocalFrame.h" | 33 #include "sky/engine/core/frame/LocalFrame.h" |
| 34 #include "sky/engine/core/page/Chrome.h" | |
| 35 #include "sky/engine/core/page/EventHandler.h" | 34 #include "sky/engine/core/page/EventHandler.h" |
| 36 #include "sky/engine/core/page/Page.h" | 35 #include "sky/engine/core/page/Page.h" |
| 37 #include "sky/engine/core/rendering/HitTestResult.h" | 36 #include "sky/engine/core/rendering/HitTestResult.h" |
| 38 #include "sky/engine/core/rendering/RenderBox.h" | 37 #include "sky/engine/core/rendering/RenderBox.h" |
| 39 #include "sky/engine/wtf/CurrentTime.h" | 38 #include "sky/engine/wtf/CurrentTime.h" |
| 40 | 39 |
| 41 namespace blink { | 40 namespace blink { |
| 42 | 41 |
| 43 // Delay time in second for start autoscroll if pointer is in border edge of scr
ollable element. | 42 // Delay time in second for start autoscroll if pointer is in border edge of scr
ollable element. |
| 44 static double autoscrollDelay = 0.2; | 43 static double autoscrollDelay = 0.2; |
| (...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 174 if (m_autoscrollType != NoAutoscroll) | 173 if (m_autoscrollType != NoAutoscroll) |
| 175 startAutoscroll(); | 174 startAutoscroll(); |
| 176 } | 175 } |
| 177 | 176 |
| 178 void AutoscrollController::startAutoscroll() | 177 void AutoscrollController::startAutoscroll() |
| 179 { | 178 { |
| 180 m_page.animator().scheduleVisualUpdate(); | 179 m_page.animator().scheduleVisualUpdate(); |
| 181 } | 180 } |
| 182 | 181 |
| 183 } // namespace blink | 182 } // namespace blink |
| OLD | NEW |