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

Unified Diff: content/browser/web_contents/web_contents_view_aura.h

Issue 698253004: Reland: Implement Aura side of unified touch text selection for contents (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Without RenderWidgetHostDelegate part (on top of crrev.com/1162373002) Created 5 years, 6 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 side-by-side diff with in-line comments
Download patch
Index: content/browser/web_contents/web_contents_view_aura.h
diff --git a/content/browser/web_contents/web_contents_view_aura.h b/content/browser/web_contents/web_contents_view_aura.h
index f184fb226b2675ec72b36ca31832aecbbc3c6c9e..1a0d6b2bfa3bb6ae309f5bd5e1a7dd0424c799b3 100644
--- a/content/browser/web_contents/web_contents_view_aura.h
+++ b/content/browser/web_contents/web_contents_view_aura.h
@@ -23,6 +23,7 @@ class Window;
namespace ui {
class DropTargetEvent;
+class TouchSelectionController;
}
namespace content {
@@ -31,7 +32,7 @@ class OverscrollNavigationOverlay;
class RenderWidgetHostImpl;
class RenderWidgetHostViewAura;
class ShadowLayerDelegate;
-class TouchEditableImplAura;
+class TouchSelectionControllerClientAura;
class WebContentsViewDelegate;
class WebContentsImpl;
class WebDragDestDelegate;
@@ -47,9 +48,6 @@ class WebContentsViewAura
WebContentsViewAura(WebContentsImpl* web_contents,
WebContentsViewDelegate* delegate);
- CONTENT_EXPORT void SetTouchEditableForTest(
- TouchEditableImplAura* touch_editable);
-
private:
class WindowObserver;
@@ -70,10 +68,11 @@ class WebContentsViewAura
// animates in, or the content window animates out).
void CompleteOverscrollNavigation(OverscrollMode mode);
- void AttachTouchEditableToRenderView();
-
void OverscrollUpdateForWebContentsDelegate(float delta_y);
+ ui::TouchSelectionController* GetSelectionController() const;
+ TouchSelectionControllerClientAura* GetSelectionControllerClient() const;
+
// Overridden from WebContentsView:
gfx::NativeView GetNativeView() const override;
gfx::NativeView GetContentNativeView() const override;
@@ -192,7 +191,6 @@ class WebContentsViewAura
// navigation triggered by the overscroll gesture.
scoped_ptr<OverscrollNavigationOverlay> navigation_overlay_;
- scoped_ptr<TouchEditableImplAura> touch_editable_;
scoped_ptr<GestureNavSimple> gesture_nav_simple_;
// On Windows we can run into problems if resources get released within the

Powered by Google App Engine
This is Rietveld 408576698