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 <stddef.h> | 8 #include <stddef.h> |
9 #include <stdint.h> | 9 #include <stdint.h> |
10 | 10 |
(...skipping 28 matching lines...) Expand all Loading... |
39 #include "ui/gfx/geometry/size.h" | 39 #include "ui/gfx/geometry/size.h" |
40 #include "ui/gfx/geometry/vector2d_f.h" | 40 #include "ui/gfx/geometry/vector2d_f.h" |
41 #include "ui/gfx/selection_bound.h" | 41 #include "ui/gfx/selection_bound.h" |
42 #include "ui/touch_selection/touch_selection_controller.h" | 42 #include "ui/touch_selection/touch_selection_controller.h" |
43 | 43 |
44 namespace cc { | 44 namespace cc { |
45 class CopyOutputResult; | 45 class CopyOutputResult; |
46 class Layer; | 46 class Layer; |
47 class SurfaceFactory; | 47 class SurfaceFactory; |
48 class SurfaceIdAllocator; | 48 class SurfaceIdAllocator; |
49 enum class SurfaceDrawStatus; | |
50 } | 49 } |
51 | 50 |
52 namespace blink { | 51 namespace blink { |
53 class WebExternalTextureLayer; | 52 class WebExternalTextureLayer; |
54 class WebTouchEvent; | 53 class WebTouchEvent; |
55 class WebMouseEvent; | 54 class WebMouseEvent; |
56 } | 55 } |
57 | 56 |
58 namespace content { | 57 namespace content { |
59 class ContentViewCoreImpl; | 58 class ContentViewCoreImpl; |
(...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
252 | 251 |
253 typedef base::Callback< | 252 typedef base::Callback< |
254 void(const base::string16& content, int start_offset, int end_offset)> | 253 void(const base::string16& content, int start_offset, int end_offset)> |
255 TextSurroundingSelectionCallback; | 254 TextSurroundingSelectionCallback; |
256 void SetTextSurroundingSelectionCallback( | 255 void SetTextSurroundingSelectionCallback( |
257 const TextSurroundingSelectionCallback& callback); | 256 const TextSurroundingSelectionCallback& callback); |
258 | 257 |
259 static void OnContextLost(); | 258 static void OnContextLost(); |
260 | 259 |
261 private: | 260 private: |
262 void RunAckCallbacks(cc::SurfaceDrawStatus status); | 261 void RunAckCallbacks(); |
263 | 262 |
264 void DestroyDelegatedContent(); | 263 void DestroyDelegatedContent(); |
265 void CheckOutputSurfaceChanged(uint32_t output_surface_id); | 264 void CheckOutputSurfaceChanged(uint32_t output_surface_id); |
266 void SubmitCompositorFrame(cc::CompositorFrame frame_data); | 265 void SubmitCompositorFrame(cc::CompositorFrame frame_data); |
267 void SendReclaimCompositorResources(uint32_t output_surface_id, | 266 void SendReclaimCompositorResources(uint32_t output_surface_id, |
268 bool is_swap_ack); | 267 bool is_swap_ack); |
269 | 268 |
270 void OnFrameMetadataUpdated( | 269 void OnFrameMetadataUpdated( |
271 const cc::CompositorFrameMetadata& frame_metadata); | 270 const cc::CompositorFrameMetadata& frame_metadata); |
272 | 271 |
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
401 gfx::Vector2dF last_scroll_offset_; | 400 gfx::Vector2dF last_scroll_offset_; |
402 | 401 |
403 base::WeakPtrFactory<RenderWidgetHostViewAndroid> weak_ptr_factory_; | 402 base::WeakPtrFactory<RenderWidgetHostViewAndroid> weak_ptr_factory_; |
404 | 403 |
405 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAndroid); | 404 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAndroid); |
406 }; | 405 }; |
407 | 406 |
408 } // namespace content | 407 } // namespace content |
409 | 408 |
410 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_ | 409 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_ |
OLD | NEW |