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 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_ |
6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <queue> | 9 #include <queue> |
10 | 10 |
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
166 virtual void HasTouchEventHandlers(bool need_touch_events) OVERRIDE; | 166 virtual void HasTouchEventHandlers(bool need_touch_events) OVERRIDE; |
167 virtual void OnSwapCompositorFrame( | 167 virtual void OnSwapCompositorFrame( |
168 uint32 output_surface_id, | 168 uint32 output_surface_id, |
169 scoped_ptr<cc::CompositorFrame> frame) OVERRIDE; | 169 scoped_ptr<cc::CompositorFrame> frame) OVERRIDE; |
170 virtual void OnOverscrolled(gfx::Vector2dF accumulated_overscroll, | 170 virtual void OnOverscrolled(gfx::Vector2dF accumulated_overscroll, |
171 gfx::Vector2dF current_fling_velocity) OVERRIDE; | 171 gfx::Vector2dF current_fling_velocity) OVERRIDE; |
172 virtual void ShowDisambiguationPopup(const gfx::Rect& target_rect, | 172 virtual void ShowDisambiguationPopup(const gfx::Rect& target_rect, |
173 const SkBitmap& zoomed_bitmap) OVERRIDE; | 173 const SkBitmap& zoomed_bitmap) OVERRIDE; |
174 virtual scoped_ptr<SyntheticGestureTarget> CreateSyntheticGestureTarget() | 174 virtual scoped_ptr<SyntheticGestureTarget> CreateSyntheticGestureTarget() |
175 OVERRIDE; | 175 OVERRIDE; |
| 176 virtual SyntheticGesture* CreateSmoothScrollGesture( |
| 177 bool scroll_down, int pixels_to_scroll, int mouse_event_x, |
| 178 int mouse_event_y) OVERRIDE; |
| 179 virtual SyntheticGesture* CreatePinchGesture( |
| 180 bool zoom_in, int pixels_to_move, int anchor_x, |
| 181 int anchor_y) OVERRIDE; |
176 | 182 |
177 // Implementation of BrowserAccessibilityDelegate: | 183 // Implementation of BrowserAccessibilityDelegate: |
178 virtual void SetAccessibilityFocus(int acc_obj_id) OVERRIDE; | 184 virtual void SetAccessibilityFocus(int acc_obj_id) OVERRIDE; |
179 virtual void AccessibilityDoDefaultAction(int acc_obj_id) OVERRIDE; | 185 virtual void AccessibilityDoDefaultAction(int acc_obj_id) OVERRIDE; |
180 virtual void AccessibilityScrollToMakeVisible( | 186 virtual void AccessibilityScrollToMakeVisible( |
181 int acc_obj_id, gfx::Rect subfocus) OVERRIDE; | 187 int acc_obj_id, gfx::Rect subfocus) OVERRIDE; |
182 virtual void AccessibilityScrollToPoint( | 188 virtual void AccessibilityScrollToPoint( |
183 int acc_obj_id, gfx::Point point) OVERRIDE; | 189 int acc_obj_id, gfx::Point point) OVERRIDE; |
184 virtual void AccessibilitySetTextSelection( | 190 virtual void AccessibilitySetTextSelection( |
185 int acc_obj_id, int start_offset, int end_offset) OVERRIDE; | 191 int acc_obj_id, int start_offset, int end_offset) OVERRIDE; |
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
338 | 344 |
339 // Size to use if we have no backing ContentViewCore | 345 // Size to use if we have no backing ContentViewCore |
340 gfx::Size default_size_; | 346 gfx::Size default_size_; |
341 | 347 |
342 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAndroid); | 348 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAndroid); |
343 }; | 349 }; |
344 | 350 |
345 } // namespace content | 351 } // namespace content |
346 | 352 |
347 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_ | 353 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_ |
OLD | NEW |