| 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; | |
| 182 | 176 |
| 183 // Implementation of BrowserAccessibilityDelegate: | 177 // Implementation of BrowserAccessibilityDelegate: |
| 184 virtual void SetAccessibilityFocus(int acc_obj_id) OVERRIDE; | 178 virtual void SetAccessibilityFocus(int acc_obj_id) OVERRIDE; |
| 185 virtual void AccessibilityDoDefaultAction(int acc_obj_id) OVERRIDE; | 179 virtual void AccessibilityDoDefaultAction(int acc_obj_id) OVERRIDE; |
| 186 virtual void AccessibilityScrollToMakeVisible( | 180 virtual void AccessibilityScrollToMakeVisible( |
| 187 int acc_obj_id, gfx::Rect subfocus) OVERRIDE; | 181 int acc_obj_id, gfx::Rect subfocus) OVERRIDE; |
| 188 virtual void AccessibilityScrollToPoint( | 182 virtual void AccessibilityScrollToPoint( |
| 189 int acc_obj_id, gfx::Point point) OVERRIDE; | 183 int acc_obj_id, gfx::Point point) OVERRIDE; |
| 190 virtual void AccessibilitySetTextSelection( | 184 virtual void AccessibilitySetTextSelection( |
| 191 int acc_obj_id, int start_offset, int end_offset) OVERRIDE; | 185 int acc_obj_id, int start_offset, int end_offset) OVERRIDE; |
| (...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 344 | 338 |
| 345 // Size to use if we have no backing ContentViewCore | 339 // Size to use if we have no backing ContentViewCore |
| 346 gfx::Size default_size_; | 340 gfx::Size default_size_; |
| 347 | 341 |
| 348 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAndroid); | 342 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAndroid); |
| 349 }; | 343 }; |
| 350 | 344 |
| 351 } // namespace content | 345 } // namespace content |
| 352 | 346 |
| 353 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_ | 347 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_ |
| OLD | NEW |