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

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

Issue 829913004: WIP: Plumbing through text selection granularity control support (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@unified_text_selection_diff
Patch Set: Missing file. Created 5 years, 11 months 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 193 matching lines...) Expand 10 before | Expand all | Expand 10 after
204 // StylusTextSelectorClient implementation. 204 // StylusTextSelectorClient implementation.
205 void OnStylusSelectBegin(float x0, float y0, float x1, float y1) override; 205 void OnStylusSelectBegin(float x0, float y0, float x1, float y1) override;
206 void OnStylusSelectUpdate(float x, float y) override; 206 void OnStylusSelectUpdate(float x, float y) override;
207 void OnStylusSelectEnd() override; 207 void OnStylusSelectEnd() override;
208 void OnStylusSelectTap(base::TimeTicks time, float x, float y) override; 208 void OnStylusSelectTap(base::TimeTicks time, float x, float y) override;
209 209
210 // ui::TouchSelectionControllerClient implementation. 210 // ui::TouchSelectionControllerClient implementation.
211 virtual bool SupportsAnimation() const override; 211 virtual bool SupportsAnimation() const override;
212 virtual void SetNeedsAnimate() override; 212 virtual void SetNeedsAnimate() override;
213 virtual void MoveCaret(const gfx::PointF& position) override; 213 virtual void MoveCaret(const gfx::PointF& position) override;
214 virtual void MoveRangeSelectionExtent(const gfx::PointF& extent) override; 214 virtual void MoveRangeSelectionExtent(
215 const gfx::PointF& extent,
216 ui::TextSelectionGranularity granularity) override;
215 virtual void SelectBetweenCoordinates(const gfx::PointF& base, 217 virtual void SelectBetweenCoordinates(const gfx::PointF& base,
216 const gfx::PointF& extent) override; 218 const gfx::PointF& extent) override;
217 virtual void OnSelectionEvent(ui::SelectionEventType event, 219 virtual void OnSelectionEvent(ui::SelectionEventType event,
218 const gfx::PointF& anchor_position) override; 220 const gfx::PointF& anchor_position) override;
219 virtual scoped_ptr<ui::TouchHandleDrawable> CreateDrawable() override; 221 virtual scoped_ptr<ui::TouchHandleDrawable> CreateDrawable() override;
220 222
221 // Non-virtual methods 223 // Non-virtual methods
222 void SetContentViewCore(ContentViewCoreImpl* content_view_core); 224 void SetContentViewCore(ContentViewCoreImpl* content_view_core);
223 SkColor GetCachedBackgroundColor() const; 225 SkColor GetCachedBackgroundColor() const;
224 void SendKeyEvent(const NativeWebKeyboardEvent& event); 226 void SendKeyEvent(const NativeWebKeyboardEvent& event);
(...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after
415 gfx::Vector2dF last_scroll_offset_; 417 gfx::Vector2dF last_scroll_offset_;
416 418
417 base::WeakPtrFactory<RenderWidgetHostViewAndroid> weak_ptr_factory_; 419 base::WeakPtrFactory<RenderWidgetHostViewAndroid> weak_ptr_factory_;
418 420
419 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAndroid); 421 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAndroid);
420 }; 422 };
421 423
422 } // namespace content 424 } // namespace content
423 425
424 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_ 426 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_ANDROID_H_
OLDNEW
« no previous file with comments | « content/browser/android/content_view_core_impl.cc ('k') | content/browser/renderer_host/render_widget_host_view_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698