OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 // This file provides the ScrollingAction object, which scrolls a page | 5 // This file provides the ScrollingAction object, which scrolls a page |
6 // from top to bottom: | 6 // from top to bottom: |
7 // 1. var action = new __ScrollingAction(callback) | 7 // 1. var action = new __ScrollingAction(callback) |
8 // 2. action.start(element_to_scroll) | 8 // 2. action.start(element_to_scroll) |
9 'use strict'; | 9 'use strict'; |
10 | 10 |
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
152 this.endMeasuringHook(); | 152 this.endMeasuringHook(); |
153 | 153 |
154 // We're done. | 154 // We're done. |
155 if (this.callback_) | 155 if (this.callback_) |
156 this.callback_(); | 156 this.callback_(); |
157 }; | 157 }; |
158 | 158 |
159 window.__ScrollingAction = ScrollingAction; | 159 window.__ScrollingAction = ScrollingAction; |
160 window.__ScrollingAction_GetBoundingVisibleRect = getBoundingVisibleRect; | 160 window.__ScrollingAction_GetBoundingVisibleRect = getBoundingVisibleRect; |
161 })(); | 161 })(); |
OLD | NEW |