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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
59 return 0; | 59 return 0; |
60 return page->deprecatedLocalMainFrame()->view(); | 60 return page->deprecatedLocalMainFrame()->view(); |
61 } | 61 } |
62 | 62 |
63 void PageWidgetDelegate::animate(Page* page, WebFrameTime frameTime) | 63 void PageWidgetDelegate::animate(Page* page, WebFrameTime frameTime) |
64 { | 64 { |
65 RefPtr<FrameView> view = mainFrameView(page); | 65 RefPtr<FrameView> view = mainFrameView(page); |
66 if (!view) | 66 if (!view) |
67 return; | 67 return; |
68 page->autoscrollController().animate(frameTime); | 68 page->autoscrollController().animate(frameTime); |
69 page->animator().serviceScriptedAnimations(frameTime.displayFrameTime); | 69 page->animator().serviceScriptedAnimations(frameTime); |
70 } | 70 } |
71 | 71 |
72 void PageWidgetDelegate::layout(Page* page) | 72 void PageWidgetDelegate::layout(Page* page) |
73 { | 73 { |
74 if (!page || !page->mainFrame()) | 74 if (!page || !page->mainFrame()) |
75 return; | 75 return; |
76 page->animator().updateLayoutAndStyleForPainting(); | 76 page->animator().updateLayoutAndStyleForPainting(); |
77 } | 77 } |
78 | 78 |
79 void PageWidgetDelegate::paint(Page* page, PageOverlayList* overlays, WebCanvas*
canvas, const WebRect& rect, CanvasBackground background) | 79 void PageWidgetDelegate::paint(Page* page, PageOverlayList* overlays, WebCanvas*
canvas, const WebRect& rect, CanvasBackground background) |
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
205 { | 205 { |
206 return mainFrame.eventHandler().handleWheelEvent(PlatformWheelEventBuilder(m
ainFrame.view(), event)); | 206 return mainFrame.eventHandler().handleWheelEvent(PlatformWheelEventBuilder(m
ainFrame.view(), event)); |
207 } | 207 } |
208 | 208 |
209 bool PageWidgetEventHandler::handleTouchEvent(LocalFrame& mainFrame, const WebTo
uchEvent& event) | 209 bool PageWidgetEventHandler::handleTouchEvent(LocalFrame& mainFrame, const WebTo
uchEvent& event) |
210 { | 210 { |
211 return mainFrame.eventHandler().handleTouchEvent(PlatformTouchEventBuilder(m
ainFrame.view(), event)); | 211 return mainFrame.eventHandler().handleTouchEvent(PlatformTouchEventBuilder(m
ainFrame.view(), event)); |
212 } | 212 } |
213 | 213 |
214 } | 214 } |
OLD | NEW |