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 #include "content/browser/renderer_host/render_widget_host_view_base.h" | 5 #include "content/browser/renderer_host/render_widget_host_view_base.h" |
6 | 6 |
7 #include "base/logging.h" | 7 #include "base/logging.h" |
8 #include "content/browser/accessibility/browser_accessibility_manager.h" | 8 #include "content/browser/accessibility/browser_accessibility_manager.h" |
9 #include "content/browser/renderer_host/render_widget_host_impl.h" | 9 #include "content/browser/renderer_host/render_widget_host_impl.h" |
10 #include "content/port/browser/smooth_scroll_gesture.h" | 10 #include "content/port/browser/smooth_scroll_gesture.h" |
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
151 event.globalY = 0; | 151 event.globalY = 0; |
152 event.x = 0; | 152 event.x = 0; |
153 event.y = 0; | 153 event.y = 0; |
154 event.windowX = event.x; | 154 event.windowX = event.x; |
155 event.windowY = event.y; | 155 event.windowY = event.y; |
156 host->ForwardWheelEvent(event); | 156 host->ForwardWheelEvent(event); |
157 return true; | 157 return true; |
158 } | 158 } |
159 | 159 |
160 private: | 160 private: |
161 ~BasicMouseWheelSmoothScrollGesture() { } | |
piman
2012/08/18 06:36:58
nit: virtual
| |
161 base::TimeTicks start_time_; | 162 base::TimeTicks start_time_; |
162 bool scroll_down_; | 163 bool scroll_down_; |
163 bool scroll_far_; | 164 bool scroll_far_; |
164 }; | 165 }; |
165 | 166 |
166 SmoothScrollGesture* RenderWidgetHostViewBase::CreateSmoothScrollGesture( | 167 SmoothScrollGesture* RenderWidgetHostViewBase::CreateSmoothScrollGesture( |
167 bool scroll_down, bool scroll_far) { | 168 bool scroll_down, bool scroll_far) { |
168 return new BasicMouseWheelSmoothScrollGesture(scroll_down, scroll_far); | 169 return new BasicMouseWheelSmoothScrollGesture(scroll_down, scroll_far); |
169 } | 170 } |
170 | 171 |
171 } // namespace content | 172 } // namespace content |
OLD | NEW |