| 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 239 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 250 void SynchronousFrameMetadata( | 250 void SynchronousFrameMetadata( |
| 251 const cc::CompositorFrameMetadata& frame_metadata); | 251 const cc::CompositorFrameMetadata& frame_metadata); |
| 252 | 252 |
| 253 void SetOverlayVideoMode(bool enabled); | 253 void SetOverlayVideoMode(bool enabled); |
| 254 | 254 |
| 255 typedef base::Callback< | 255 typedef base::Callback< |
| 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 | |
| 261 void OnDidEnterFullscreen(); | |
| 262 void OnDidExitFullscreen(); | |
| 263 | |
| 264 private: | 260 private: |
| 265 // TouchSelectionControllerClient implementation. | 261 // TouchSelectionControllerClient implementation. |
| 266 virtual bool SupportsAnimation() const OVERRIDE; | 262 virtual bool SupportsAnimation() const OVERRIDE; |
| 267 virtual void SetNeedsAnimate() OVERRIDE; | 263 virtual void SetNeedsAnimate() OVERRIDE; |
| 268 virtual void MoveCaret(const gfx::PointF& position) OVERRIDE; | 264 virtual void MoveCaret(const gfx::PointF& position) OVERRIDE; |
| 269 virtual void SelectBetweenCoordinates(const gfx::PointF& start, | 265 virtual void SelectBetweenCoordinates(const gfx::PointF& start, |
| 270 const gfx::PointF& end) OVERRIDE; | 266 const gfx::PointF& end) OVERRIDE; |
| 271 virtual void OnSelectionEvent(SelectionEventType event, | 267 virtual void OnSelectionEvent(SelectionEventType event, |
| 272 const gfx::PointF& anchor_position) OVERRIDE; | 268 const gfx::PointF& anchor_position) OVERRIDE; |
| 273 virtual scoped_ptr<TouchHandleDrawable> CreateDrawable() OVERRIDE; | 269 virtual scoped_ptr<TouchHandleDrawable> CreateDrawable() OVERRIDE; |
| (...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 417 gfx::Vector2dF last_scroll_offset_; | 413 gfx::Vector2dF last_scroll_offset_; |
| 418 | 414 |
| 419 base::WeakPtrFactory<RenderWidgetHostViewAndroid> weak_ptr_factory_; | 415 base::WeakPtrFactory<RenderWidgetHostViewAndroid> weak_ptr_factory_; |
| 420 | 416 |
| 421 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAndroid); | 417 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAndroid); |
| 422 }; | 418 }; |
| 423 | 419 |
| 424 } // namespace content | 420 } // namespace content |
| 425 | 421 |
| 426 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_ | 422 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_ |
| OLD | NEW |