| 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 245 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 256 void(const base::string16& content, int start_offset, int end_offset)> | 256 void(const base::string16& content, int start_offset, int end_offset)> |
| 257 TextSurroundingSelectionCallback; | 257 TextSurroundingSelectionCallback; |
| 258 void SetTextSurroundingSelectionCallback( | 258 void SetTextSurroundingSelectionCallback( |
| 259 const TextSurroundingSelectionCallback& callback); | 259 const TextSurroundingSelectionCallback& callback); |
| 260 | 260 |
| 261 private: | 261 private: |
| 262 // TouchSelectionControllerClient implementation. | 262 // TouchSelectionControllerClient implementation. |
| 263 virtual bool SupportsAnimation() const override; | 263 virtual bool SupportsAnimation() const override; |
| 264 virtual void SetNeedsAnimate() override; | 264 virtual void SetNeedsAnimate() override; |
| 265 virtual void MoveCaret(const gfx::PointF& position) override; | 265 virtual void MoveCaret(const gfx::PointF& position) override; |
| 266 virtual void MoveSelectionExtent(const gfx::PointF& position) override; |
| 266 virtual void SelectBetweenCoordinates(const gfx::PointF& start, | 267 virtual void SelectBetweenCoordinates(const gfx::PointF& start, |
| 267 const gfx::PointF& end) override; | 268 const gfx::PointF& end) override; |
| 268 virtual void OnSelectionEvent(SelectionEventType event, | 269 virtual void OnSelectionEvent(SelectionEventType event, |
| 269 const gfx::PointF& anchor_position) override; | 270 const gfx::PointF& anchor_position) override; |
| 270 virtual scoped_ptr<TouchHandleDrawable> CreateDrawable() override; | 271 virtual scoped_ptr<TouchHandleDrawable> CreateDrawable() override; |
| 271 | 272 |
| 272 void RunAckCallbacks(); | 273 void RunAckCallbacks(); |
| 273 | 274 |
| 274 void DestroyDelegatedContent(); | 275 void DestroyDelegatedContent(); |
| 275 void SwapDelegatedFrame(uint32 output_surface_id, | 276 void SwapDelegatedFrame(uint32 output_surface_id, |
| (...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 414 gfx::Vector2dF last_scroll_offset_; | 415 gfx::Vector2dF last_scroll_offset_; |
| 415 | 416 |
| 416 base::WeakPtrFactory<RenderWidgetHostViewAndroid> weak_ptr_factory_; | 417 base::WeakPtrFactory<RenderWidgetHostViewAndroid> weak_ptr_factory_; |
| 417 | 418 |
| 418 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAndroid); | 419 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAndroid); |
| 419 }; | 420 }; |
| 420 | 421 |
| 421 } // namespace content | 422 } // namespace content |
| 422 | 423 |
| 423 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_ | 424 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_ |
| OLD | NEW |