| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2012 Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 12 matching lines...) Expand all Loading... |
| 23 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT | 23 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT |
| 24 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, | 24 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, |
| 25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | 25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY |
| 26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
| 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
| 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 29 */ | 29 */ |
| 30 | 30 |
| 31 #include "web/PageWidgetDelegate.h" | 31 #include "web/PageWidgetDelegate.h" |
| 32 | 32 |
| 33 #include "core/events/WebInputEventConversion.h" |
| 33 #include "core/frame/FrameView.h" | 34 #include "core/frame/FrameView.h" |
| 34 #include "core/frame/LocalFrame.h" | 35 #include "core/frame/LocalFrame.h" |
| 35 #include "core/input/EventHandler.h" | 36 #include "core/input/EventHandler.h" |
| 36 #include "core/layout/compositing/PaintLayerCompositor.h" | 37 #include "core/layout/compositing/PaintLayerCompositor.h" |
| 37 #include "core/page/AutoscrollController.h" | 38 #include "core/page/AutoscrollController.h" |
| 38 #include "core/page/Page.h" | 39 #include "core/page/Page.h" |
| 39 #include "core/paint/TransformRecorder.h" | 40 #include "core/paint/TransformRecorder.h" |
| 40 #include "platform/graphics/GraphicsContext.h" | 41 #include "platform/graphics/GraphicsContext.h" |
| 41 #include "platform/graphics/paint/ClipRecorder.h" | 42 #include "platform/graphics/paint/ClipRecorder.h" |
| 42 #include "platform/graphics/paint/CullRect.h" | 43 #include "platform/graphics/paint/CullRect.h" |
| 43 #include "platform/graphics/paint/DrawingRecorder.h" | 44 #include "platform/graphics/paint/DrawingRecorder.h" |
| 44 #include "platform/graphics/paint/PaintRecordBuilder.h" | 45 #include "platform/graphics/paint/PaintRecordBuilder.h" |
| 45 #include "platform/transforms/AffineTransform.h" | 46 #include "platform/transforms/AffineTransform.h" |
| 46 #include "platform/wtf/CurrentTime.h" | 47 #include "platform/wtf/CurrentTime.h" |
| 47 #include "public/platform/WebInputEvent.h" | 48 #include "public/platform/WebInputEvent.h" |
| 48 #include "web/WebInputEventConversion.h" | |
| 49 | 49 |
| 50 namespace blink { | 50 namespace blink { |
| 51 | 51 |
| 52 void PageWidgetDelegate::Animate(Page& page, | 52 void PageWidgetDelegate::Animate(Page& page, |
| 53 double monotonic_frame_begin_time) { | 53 double monotonic_frame_begin_time) { |
| 54 page.GetAutoscrollController().Animate(monotonic_frame_begin_time); | 54 page.GetAutoscrollController().Animate(monotonic_frame_begin_time); |
| 55 page.Animator().ServiceScriptedAnimations(monotonic_frame_begin_time); | 55 page.Animator().ServiceScriptedAnimations(monotonic_frame_begin_time); |
| 56 } | 56 } |
| 57 | 57 |
| 58 void PageWidgetDelegate::UpdateAllLifecyclePhases(Page& page, | 58 void PageWidgetDelegate::UpdateAllLifecyclePhases(Page& page, |
| (...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 271 const WebTouchEvent& event, | 271 const WebTouchEvent& event, |
| 272 const std::vector<const WebInputEvent*>& coalesced_events) { | 272 const std::vector<const WebInputEvent*>& coalesced_events) { |
| 273 WebTouchEvent transformed_event = | 273 WebTouchEvent transformed_event = |
| 274 TransformWebTouchEvent(main_frame.View(), event); | 274 TransformWebTouchEvent(main_frame.View(), event); |
| 275 return main_frame.GetEventHandler().HandleTouchEvent( | 275 return main_frame.GetEventHandler().HandleTouchEvent( |
| 276 transformed_event, | 276 transformed_event, |
| 277 TransformWebTouchEventVector(main_frame.View(), coalesced_events)); | 277 TransformWebTouchEventVector(main_frame.View(), coalesced_events)); |
| 278 } | 278 } |
| 279 | 279 |
| 280 } // namespace blink | 280 } // namespace blink |
| OLD | NEW |