| 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 223 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 234 bool HasValidFrame() const; | 234 bool HasValidFrame() const; |
| 235 | 235 |
| 236 void MoveCaret(const gfx::Point& point); | 236 void MoveCaret(const gfx::Point& point); |
| 237 void DismissTextHandles(); | 237 void DismissTextHandles(); |
| 238 void SetTextHandlesTemporarilyHidden(bool hidden); | 238 void SetTextHandlesTemporarilyHidden(bool hidden); |
| 239 void OnShowingPastePopup(const gfx::PointF& point); | 239 void OnShowingPastePopup(const gfx::PointF& point); |
| 240 void OnShowUnhandledTapUIIfNeeded(int x_dip, int y_dip); | 240 void OnShowUnhandledTapUIIfNeeded(int x_dip, int y_dip); |
| 241 | 241 |
| 242 void SynchronousFrameMetadata(cc::CompositorFrameMetadata frame_metadata); | 242 void SynchronousFrameMetadata(cc::CompositorFrameMetadata frame_metadata); |
| 243 | 243 |
| 244 void SetOverlayVideoMode(bool enabled); | |
| 245 | |
| 246 static void OnContextLost(); | 244 static void OnContextLost(); |
| 247 | 245 |
| 248 private: | 246 private: |
| 249 void RunAckCallbacks(); | 247 void RunAckCallbacks(); |
| 250 | 248 |
| 251 void CheckOutputSurfaceChanged(uint32_t output_surface_id); | 249 void CheckOutputSurfaceChanged(uint32_t output_surface_id); |
| 252 void SubmitCompositorFrame(cc::CompositorFrame frame_data); | 250 void SubmitCompositorFrame(cc::CompositorFrame frame_data); |
| 253 void SendReclaimCompositorResources(uint32_t output_surface_id, | 251 void SendReclaimCompositorResources(uint32_t output_surface_id, |
| 254 bool is_swap_ack); | 252 bool is_swap_ack); |
| 255 | 253 |
| 256 void OnFrameMetadataUpdated( | 254 void OnFrameMetadataUpdated(const cc::CompositorFrameMetadata& frame_metadata, |
| 257 const cc::CompositorFrameMetadata& frame_metadata); | 255 bool is_transparent); |
| 258 | 256 |
| 259 void ShowInternal(); | 257 void ShowInternal(); |
| 260 void HideInternal(); | 258 void HideInternal(); |
| 261 void AttachLayers(); | 259 void AttachLayers(); |
| 262 void RemoveLayers(); | 260 void RemoveLayers(); |
| 263 | 261 |
| 264 void UpdateBackgroundColor(SkColor color); | 262 void UpdateBackgroundColor(SkColor color); |
| 265 | 263 |
| 266 // Called after async screenshot task completes. Scales and crops the result | 264 // Called after async screenshot task completes. Scales and crops the result |
| 267 // of the copy. | 265 // of the copy. |
| (...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 384 gfx::Vector2dF last_scroll_offset_; | 382 gfx::Vector2dF last_scroll_offset_; |
| 385 | 383 |
| 386 base::WeakPtrFactory<RenderWidgetHostViewAndroid> weak_ptr_factory_; | 384 base::WeakPtrFactory<RenderWidgetHostViewAndroid> weak_ptr_factory_; |
| 387 | 385 |
| 388 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAndroid); | 386 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAndroid); |
| 389 }; | 387 }; |
| 390 | 388 |
| 391 } // namespace content | 389 } // namespace content |
| 392 | 390 |
| 393 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_ | 391 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_ |
| OLD | NEW |