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 | 5 * modification, are permitted provided that the following conditions |
6 * are met: | 6 * are met: |
7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
104 ScrollingCoordinatorChromium::~ScrollingCoordinatorChromium() | 104 ScrollingCoordinatorChromium::~ScrollingCoordinatorChromium() |
105 { | 105 { |
106 delete m_private; | 106 delete m_private; |
107 } | 107 } |
108 | 108 |
109 void ScrollingCoordinatorChromium::frameViewLayoutUpdated(FrameView*) | 109 void ScrollingCoordinatorChromium::frameViewLayoutUpdated(FrameView*) |
110 { | 110 { |
111 ASSERT(m_page); | 111 ASSERT(m_page); |
112 | 112 |
113 // Compute the region of the page that we can't do fast scrolling for. This
currently includes | 113 // Compute the region of the page that we can't do fast scrolling for. This
currently includes |
114 // all scrollable areas, such as subframes, overflow divs and list boxes. We
need to do this even if the | 114 // all scrollable areas, such as subframes, overflow divs and list boxes, wh
ose composited |
115 // frame view whose layout was updated is not the main frame. | 115 // scrolling are not enabled. We need to do this even if the frame view whos
e layout was updated |
| 116 // is not the main frame. |
116 Region nonFastScrollableRegion = computeNonFastScrollableRegion(m_page->main
Frame(), IntPoint()); | 117 Region nonFastScrollableRegion = computeNonFastScrollableRegion(m_page->main
Frame(), IntPoint()); |
117 setNonFastScrollableRegion(nonFastScrollableRegion); | 118 setNonFastScrollableRegion(nonFastScrollableRegion); |
118 #if ENABLE(TOUCH_EVENT_TRACKING) | 119 #if ENABLE(TOUCH_EVENT_TRACKING) |
119 Vector<IntRect> touchEventTargetRects; | 120 Vector<IntRect> touchEventTargetRects; |
120 computeAbsoluteTouchEventTargetRects(m_page->mainFrame()->document(), touchE
ventTargetRects); | 121 computeAbsoluteTouchEventTargetRects(m_page->mainFrame()->document(), touchE
ventTargetRects); |
121 setTouchEventTargetRects(touchEventTargetRects); | 122 setTouchEventTargetRects(touchEventTargetRects); |
122 #endif | 123 #endif |
123 } | 124 } |
124 | 125 |
125 void ScrollingCoordinatorChromium::touchEventTargetRectsDidChange(const Document
* document) | 126 void ScrollingCoordinatorChromium::touchEventTargetRectsDidChange(const Document
* document) |
(...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
287 } | 288 } |
288 } | 289 } |
289 | 290 |
290 void ScrollingCoordinatorChromium::recomputeWheelEventHandlerCountForFrameView(F
rameView* frameView) | 291 void ScrollingCoordinatorChromium::recomputeWheelEventHandlerCountForFrameView(F
rameView* frameView) |
291 { | 292 { |
292 UNUSED_PARAM(frameView); | 293 UNUSED_PARAM(frameView); |
293 setWheelEventHandlerCount(computeCurrentWheelEventHandlerCount()); | 294 setWheelEventHandlerCount(computeCurrentWheelEventHandlerCount()); |
294 } | 295 } |
295 | 296 |
296 } | 297 } |
OLD | NEW |