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 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
162 virtual bool LockMouse() OVERRIDE; | 162 virtual bool LockMouse() OVERRIDE; |
163 virtual void UnlockMouse() OVERRIDE; | 163 virtual void UnlockMouse() OVERRIDE; |
164 virtual void HasTouchEventHandlers(bool need_touch_events) OVERRIDE; | 164 virtual void HasTouchEventHandlers(bool need_touch_events) OVERRIDE; |
165 virtual void OnSwapCompositorFrame( | 165 virtual void OnSwapCompositorFrame( |
166 uint32 output_surface_id, | 166 uint32 output_surface_id, |
167 scoped_ptr<cc::CompositorFrame> frame) OVERRIDE; | 167 scoped_ptr<cc::CompositorFrame> frame) OVERRIDE; |
168 virtual void OnOverscrolled(gfx::Vector2dF accumulated_overscroll, | 168 virtual void OnOverscrolled(gfx::Vector2dF accumulated_overscroll, |
169 gfx::Vector2dF current_fling_velocity) OVERRIDE; | 169 gfx::Vector2dF current_fling_velocity) OVERRIDE; |
170 virtual void ShowDisambiguationPopup(const gfx::Rect& target_rect, | 170 virtual void ShowDisambiguationPopup(const gfx::Rect& target_rect, |
171 const SkBitmap& zoomed_bitmap) OVERRIDE; | 171 const SkBitmap& zoomed_bitmap) OVERRIDE; |
172 virtual SyntheticGestureTarget* CreateSyntheticGestureTarget() OVERRIDE; | |
172 virtual SyntheticGesture* CreateSmoothScrollGesture( | 173 virtual SyntheticGesture* CreateSmoothScrollGesture( |
173 bool scroll_down, int pixels_to_scroll, int mouse_event_x, | 174 bool scroll_down, int pixels_to_scroll, int mouse_event_x, |
174 int mouse_event_y) OVERRIDE; | 175 int mouse_event_y) OVERRIDE; |
175 virtual SyntheticGesture* CreatePinchGesture( | 176 virtual SyntheticGesture* CreatePinchGesture( |
176 bool zoom_in, int pixels_to_move, int anchor_x, | 177 bool zoom_in, int pixels_to_move, int anchor_x, |
177 int anchor_y) OVERRIDE; | 178 int anchor_y) OVERRIDE; |
178 | 179 |
179 // Implementation of BrowserAccessibilityDelegate: | 180 // Implementation of BrowserAccessibilityDelegate: |
180 virtual void SetAccessibilityFocus(int acc_obj_id) OVERRIDE; | 181 virtual void SetAccessibilityFocus(int acc_obj_id) OVERRIDE; |
181 virtual void AccessibilityDoDefaultAction(int acc_obj_id) OVERRIDE; | 182 virtual void AccessibilityDoDefaultAction(int acc_obj_id) OVERRIDE; |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
237 void RequestContentClipping(const gfx::Rect& clipping, | 238 void RequestContentClipping(const gfx::Rect& clipping, |
238 const gfx::Size& content_size); | 239 const gfx::Size& content_size); |
239 | 240 |
240 // Returns true when animation ticks are still needed. This avoids a separate | 241 // Returns true when animation ticks are still needed. This avoids a separate |
241 // round-trip for requesting follow-up animation. | 242 // round-trip for requesting follow-up animation. |
242 bool Animate(base::TimeTicks frame_time); | 243 bool Animate(base::TimeTicks frame_time); |
243 | 244 |
244 void SynchronousFrameMetadata( | 245 void SynchronousFrameMetadata( |
245 const cc::CompositorFrameMetadata& frame_metadata); | 246 const cc::CompositorFrameMetadata& frame_metadata); |
246 | 247 |
248 ContentViewCoreImpl* content_view_core() { return content_view_core_; } | |
jdduke (slow)
2013/10/28 15:59:47
I think we don't need this if we just give Synthet
kouhei (in TOK)
2013/10/30 03:18:35
Done.
| |
249 | |
247 private: | 250 private: |
248 void BuffersSwapped(const gpu::Mailbox& mailbox, | 251 void BuffersSwapped(const gpu::Mailbox& mailbox, |
249 uint32_t output_surface_id, | 252 uint32_t output_surface_id, |
250 const base::Closure& ack_callback); | 253 const base::Closure& ack_callback); |
251 | 254 |
252 void RunAckCallbacks(); | 255 void RunAckCallbacks(); |
253 | 256 |
254 void DestroyDelegatedContent(); | 257 void DestroyDelegatedContent(); |
255 void SwapDelegatedFrame(uint32 output_surface_id, | 258 void SwapDelegatedFrame(uint32 output_surface_id, |
256 scoped_ptr<cc::DelegatedFrameData> frame_data); | 259 scoped_ptr<cc::DelegatedFrameData> frame_data); |
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
334 scoped_ptr<OverscrollGlow> overscroll_effect_; | 337 scoped_ptr<OverscrollGlow> overscroll_effect_; |
335 | 338 |
336 bool flush_input_requested_; | 339 bool flush_input_requested_; |
337 | 340 |
338 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAndroid); | 341 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAndroid); |
339 }; | 342 }; |
340 | 343 |
341 } // namespace content | 344 } // namespace content |
342 | 345 |
343 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_ | 346 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_ |
OLD | NEW |