Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(53)

Side by Side Diff: content/browser/renderer_host/render_widget_host_view_android.h

Issue 657803002: Update touch selection to only modify one selection point at a time. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 251 matching lines...) Expand 10 before | Expand all | Expand 10 after
262 void(const base::string16& content, int start_offset, int end_offset)> 262 void(const base::string16& content, int start_offset, int end_offset)>
263 TextSurroundingSelectionCallback; 263 TextSurroundingSelectionCallback;
264 void SetTextSurroundingSelectionCallback( 264 void SetTextSurroundingSelectionCallback(
265 const TextSurroundingSelectionCallback& callback); 265 const TextSurroundingSelectionCallback& callback);
266 266
267 private: 267 private:
268 // TouchSelectionControllerClient implementation. 268 // TouchSelectionControllerClient implementation.
269 virtual bool SupportsAnimation() const override; 269 virtual bool SupportsAnimation() const override;
270 virtual void SetNeedsAnimate() override; 270 virtual void SetNeedsAnimate() override;
271 virtual void MoveCaret(const gfx::PointF& position) override; 271 virtual void MoveCaret(const gfx::PointF& position) override;
272 virtual void SelectBetweenCoordinates(const gfx::PointF& start, 272 virtual void MoveRangeSelectionExtent(const gfx::PointF& extent) override;
273 const gfx::PointF& end) override; 273 virtual void SelectBetweenCoordinates(const gfx::PointF& base,
274 const gfx::PointF& extent) override;
274 virtual void OnSelectionEvent(SelectionEventType event, 275 virtual void OnSelectionEvent(SelectionEventType event,
275 const gfx::PointF& anchor_position) override; 276 const gfx::PointF& anchor_position) override;
276 virtual scoped_ptr<TouchHandleDrawable> CreateDrawable() override; 277 virtual scoped_ptr<TouchHandleDrawable> CreateDrawable() override;
277 278
278 void RunAckCallbacks(); 279 void RunAckCallbacks();
279 280
280 void DestroyDelegatedContent(); 281 void DestroyDelegatedContent();
281 void SwapDelegatedFrame(uint32 output_surface_id, 282 void SwapDelegatedFrame(uint32 output_surface_id,
282 scoped_ptr<cc::DelegatedFrameData> frame_data); 283 scoped_ptr<cc::DelegatedFrameData> frame_data);
283 void SendDelegatedFrameAck(uint32 output_surface_id); 284 void SendDelegatedFrameAck(uint32 output_surface_id);
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after
420 gfx::Vector2dF last_scroll_offset_; 421 gfx::Vector2dF last_scroll_offset_;
421 422
422 base::WeakPtrFactory<RenderWidgetHostViewAndroid> weak_ptr_factory_; 423 base::WeakPtrFactory<RenderWidgetHostViewAndroid> weak_ptr_factory_;
423 424
424 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAndroid); 425 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAndroid);
425 }; 426 };
426 427
427 } // namespace content 428 } // namespace content
428 429
429 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_ 430 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698