OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "core/input/ScrollManager.h" | 5 #include "core/input/ScrollManager.h" |
6 | 6 |
7 #include <memory> | 7 #include <memory> |
8 #include "core/dom/DOMNodeIds.h" | 8 #include "core/dom/DOMNodeIds.h" |
9 #include "core/events/GestureEvent.h" | 9 #include "core/events/GestureEvent.h" |
10 #include "core/frame/BrowserControls.h" | 10 #include "core/frame/BrowserControls.h" |
11 #include "core/frame/FrameView.h" | 11 #include "core/frame/FrameView.h" |
12 #include "core/html/HTMLFrameOwnerElement.h" | 12 #include "core/html/HTMLFrameOwnerElement.h" |
13 #include "core/input/EventHandler.h" | 13 #include "core/input/EventHandler.h" |
14 #include "core/input/EventHandlingUtil.h" | 14 #include "core/input/EventHandlingUtil.h" |
15 #include "core/layout/LayoutBlock.h" | 15 #include "core/layout/LayoutBlock.h" |
16 #include "core/layout/LayoutPart.h" | 16 #include "core/layout/LayoutPart.h" |
17 #include "core/layout/api/LayoutViewItem.h" | 17 #include "core/layout/api/LayoutViewItem.h" |
18 #include "core/loader/DocumentLoader.h" | 18 #include "core/loader/DocumentLoader.h" |
19 #include "core/page/AutoscrollController.h" | 19 #include "core/page/AutoscrollController.h" |
20 #include "core/page/Page.h" | 20 #include "core/page/Page.h" |
21 #include "core/page/scrolling/OverscrollController.h" | 21 #include "core/page/scrolling/OverscrollController.h" |
22 #include "core/page/scrolling/RootScrollerController.h" | 22 #include "core/page/scrolling/RootScrollerController.h" |
23 #include "core/page/scrolling/ScrollState.h" | 23 #include "core/page/scrolling/ScrollState.h" |
24 #include "core/paint/PaintLayer.h" | 24 #include "core/paint/PaintLayer.h" |
25 #include "platform/Histogram.h" | 25 #include "platform/Histogram.h" |
26 #include "platform/RuntimeEnabledFeatures.h" | 26 #include "platform/RuntimeEnabledFeatures.h" |
27 #include "wtf/PtrUtil.h" | 27 #include "platform/wtf/PtrUtil.h" |
28 | 28 |
29 namespace blink { | 29 namespace blink { |
30 | 30 |
31 ScrollManager::ScrollManager(LocalFrame& frame) : frame_(frame) { | 31 ScrollManager::ScrollManager(LocalFrame& frame) : frame_(frame) { |
32 Clear(); | 32 Clear(); |
33 } | 33 } |
34 | 34 |
35 void ScrollManager::Clear() { | 35 void ScrollManager::Clear() { |
36 last_gesture_scroll_over_frame_view_base_ = false; | 36 last_gesture_scroll_over_frame_view_base_ = false; |
37 scrollbar_handling_scroll_gesture_ = nullptr; | 37 scrollbar_handling_scroll_gesture_ = nullptr; |
(...skipping 589 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
627 &should_update_capture)) { | 627 &should_update_capture)) { |
628 if (should_update_capture) | 628 if (should_update_capture) |
629 scrollbar_handling_scroll_gesture_ = scrollbar; | 629 scrollbar_handling_scroll_gesture_ = scrollbar; |
630 return true; | 630 return true; |
631 } | 631 } |
632 } | 632 } |
633 return false; | 633 return false; |
634 } | 634 } |
635 | 635 |
636 } // namespace blink | 636 } // namespace blink |
OLD | NEW |