| 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 253 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 264 const cc::CompositorFrameMetadata& frame_metadata); | 264 const cc::CompositorFrameMetadata& frame_metadata); |
| 265 | 265 |
| 266 void SetOverlayVideoMode(bool enabled); | 266 void SetOverlayVideoMode(bool enabled); |
| 267 | 267 |
| 268 typedef base::Callback< | 268 typedef base::Callback< |
| 269 void(const base::string16& content, int start_offset, int end_offset)> | 269 void(const base::string16& content, int start_offset, int end_offset)> |
| 270 TextSurroundingSelectionCallback; | 270 TextSurroundingSelectionCallback; |
| 271 void SetTextSurroundingSelectionCallback( | 271 void SetTextSurroundingSelectionCallback( |
| 272 const TextSurroundingSelectionCallback& callback); | 272 const TextSurroundingSelectionCallback& callback); |
| 273 | 273 |
| 274 void OnDidEnterFullscreen(); |
| 275 void OnDidExitFullscreen(); |
| 276 |
| 274 private: | 277 private: |
| 275 // TouchSelectionControllerClient implementation. | 278 // TouchSelectionControllerClient implementation. |
| 276 virtual bool SupportsAnimation() const OVERRIDE; | 279 virtual bool SupportsAnimation() const OVERRIDE; |
| 277 virtual void SetNeedsAnimate() OVERRIDE; | 280 virtual void SetNeedsAnimate() OVERRIDE; |
| 278 virtual void MoveCaret(const gfx::PointF& position) OVERRIDE; | 281 virtual void MoveCaret(const gfx::PointF& position) OVERRIDE; |
| 279 virtual void SelectBetweenCoordinates(const gfx::PointF& start, | 282 virtual void SelectBetweenCoordinates(const gfx::PointF& start, |
| 280 const gfx::PointF& end) OVERRIDE; | 283 const gfx::PointF& end) OVERRIDE; |
| 281 virtual void OnSelectionEvent(SelectionEventType event, | 284 virtual void OnSelectionEvent(SelectionEventType event, |
| 282 const gfx::PointF& anchor_position) OVERRIDE; | 285 const gfx::PointF& anchor_position) OVERRIDE; |
| 283 virtual scoped_ptr<TouchHandleDrawable> CreateDrawable() OVERRIDE; | 286 virtual scoped_ptr<TouchHandleDrawable> CreateDrawable() OVERRIDE; |
| (...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 427 gfx::Vector2dF last_scroll_offset_; | 430 gfx::Vector2dF last_scroll_offset_; |
| 428 | 431 |
| 429 base::WeakPtrFactory<RenderWidgetHostViewAndroid> weak_ptr_factory_; | 432 base::WeakPtrFactory<RenderWidgetHostViewAndroid> weak_ptr_factory_; |
| 430 | 433 |
| 431 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAndroid); | 434 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAndroid); |
| 432 }; | 435 }; |
| 433 | 436 |
| 434 } // namespace content | 437 } // namespace content |
| 435 | 438 |
| 436 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_ | 439 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_ |
| OLD | NEW |