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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
42 #include "platform/graphics/GraphicsContext.h" | 42 #include "platform/graphics/GraphicsContext.h" |
43 #include "public/web/WebInputEvent.h" | 43 #include "public/web/WebInputEvent.h" |
44 #include "web/PageOverlayList.h" | 44 #include "web/PageOverlayList.h" |
45 #include "web/WebInputEventConversion.h" | 45 #include "web/WebInputEventConversion.h" |
46 #include "wtf/CurrentTime.h" | 46 #include "wtf/CurrentTime.h" |
47 | 47 |
48 namespace blink { | 48 namespace blink { |
49 | 49 |
50 void PageWidgetDelegate::animate(Page* page, double monotonicFrameBeginTime, Loc
alFrame* root) | 50 void PageWidgetDelegate::animate(Page* page, double monotonicFrameBeginTime, Loc
alFrame* root) |
51 { | 51 { |
52 RefPtr<FrameView> view = root->view(); | 52 RefPtrWillBeRawPtr<FrameView> view = root->view(); |
53 if (!view) | 53 if (!view) |
54 return; | 54 return; |
55 page->autoscrollController().animate(monotonicFrameBeginTime); | 55 page->autoscrollController().animate(monotonicFrameBeginTime); |
56 page->animator().serviceScriptedAnimations(monotonicFrameBeginTime); | 56 page->animator().serviceScriptedAnimations(monotonicFrameBeginTime); |
57 } | 57 } |
58 | 58 |
59 void PageWidgetDelegate::layout(Page* page, LocalFrame* root) | 59 void PageWidgetDelegate::layout(Page* page, LocalFrame* root) |
60 { | 60 { |
61 if (!page) | 61 if (!page) |
62 return; | 62 return; |
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
193 { | 193 { |
194 return mainFrame.eventHandler().handleWheelEvent(PlatformWheelEventBuilder(m
ainFrame.view(), event)); | 194 return mainFrame.eventHandler().handleWheelEvent(PlatformWheelEventBuilder(m
ainFrame.view(), event)); |
195 } | 195 } |
196 | 196 |
197 bool PageWidgetEventHandler::handleTouchEvent(LocalFrame& mainFrame, const WebTo
uchEvent& event) | 197 bool PageWidgetEventHandler::handleTouchEvent(LocalFrame& mainFrame, const WebTo
uchEvent& event) |
198 { | 198 { |
199 return mainFrame.eventHandler().handleTouchEvent(PlatformTouchEventBuilder(m
ainFrame.view(), event)); | 199 return mainFrame.eventHandler().handleTouchEvent(PlatformTouchEventBuilder(m
ainFrame.view(), event)); |
200 } | 200 } |
201 | 201 |
202 } // namespace blink | 202 } // namespace blink |
OLD | NEW |