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

Unified Diff: content/browser/renderer_host/render_widget_host_delegate.h

Issue 1162373002: Make some editing/selection functions accessible to c/b/renderer_host/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed sadrul@'s comments 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/renderer_host/render_widget_host_delegate.h
diff --git a/content/browser/renderer_host/render_widget_host_delegate.h b/content/browser/renderer_host/render_widget_host_delegate.h
index a2eb5e6e379535e4b3776e1243423ec918f716b5..e115d08bb4b4d83270f1cd945a09b4ec725ee3d4 100644
--- a/content/browser/renderer_host/render_widget_host_delegate.h
+++ b/content/browser/renderer_host/render_widget_host_delegate.h
@@ -15,6 +15,10 @@ class WebMouseWheelEvent;
class WebGestureEvent;
}
+namespace gfx {
+class Point;
+}
+
namespace content {
class BrowserAccessibilityManager;
@@ -75,6 +79,18 @@ class CONTENT_EXPORT RenderWidgetHostDelegate {
virtual BrowserAccessibilityManager*
GetOrCreateRootBrowserAccessibilityManager();
+ // Send OS Cut/Copy/Paste actions to the focused frame.
+ virtual void Cut() {}
nasko 2015/06/04 20:18:00 Since these are also present in WebContents.h, I t
mohsen 2015/06/04 23:11:38 Yeah, event if they don't need to, making them pur
+ virtual void Copy() {}
+ virtual void Paste() {}
+
+ // Requests the renderer to move the selection extent to a new position.
+ virtual void MoveRangeSelectionExtent(const gfx::Point& extent) {}
+
+ // Requests the renderer to select the region between two points in the
+ // currently focused frame.
+ virtual void SelectRange(const gfx::Point& base, const gfx::Point& extent) {}
+
#if defined(OS_WIN)
virtual gfx::NativeViewAccessible GetParentNativeViewAccessible();
#endif
« no previous file with comments | « no previous file | content/browser/web_contents/web_contents_impl.h » ('j') | content/browser/web_contents/web_contents_impl.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698