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

Side by Side 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 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_DELEGATE_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_DELEGATE_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_DELEGATE_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_DELEGATE_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "build/build_config.h" 9 #include "build/build_config.h"
10 #include "content/common/content_export.h" 10 #include "content/common/content_export.h"
11 #include "ui/gfx/native_widget_types.h" 11 #include "ui/gfx/native_widget_types.h"
12 12
13 namespace blink { 13 namespace blink {
14 class WebMouseWheelEvent; 14 class WebMouseWheelEvent;
15 class WebGestureEvent; 15 class WebGestureEvent;
16 } 16 }
17 17
18 namespace gfx {
19 class Point;
20 }
21
18 namespace content { 22 namespace content {
19 23
20 class BrowserAccessibilityManager; 24 class BrowserAccessibilityManager;
21 class RenderWidgetHostImpl; 25 class RenderWidgetHostImpl;
22 struct NativeWebKeyboardEvent; 26 struct NativeWebKeyboardEvent;
23 27
24 // 28 //
25 // RenderWidgetHostDelegate 29 // RenderWidgetHostDelegate
26 // 30 //
27 // An interface implemented by an object interested in knowing about the state 31 // An interface implemented by an object interested in knowing about the state
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 virtual void DidSendScreenRects(RenderWidgetHostImpl* rwh) {} 72 virtual void DidSendScreenRects(RenderWidgetHostImpl* rwh) {}
69 73
70 // Get the root BrowserAccessibilityManager for this frame tree. 74 // Get the root BrowserAccessibilityManager for this frame tree.
71 virtual BrowserAccessibilityManager* GetRootBrowserAccessibilityManager(); 75 virtual BrowserAccessibilityManager* GetRootBrowserAccessibilityManager();
72 76
73 // Get the root BrowserAccessibilityManager for this frame tree, 77 // Get the root BrowserAccessibilityManager for this frame tree,
74 // or create it if it doesn't exist. 78 // or create it if it doesn't exist.
75 virtual BrowserAccessibilityManager* 79 virtual BrowserAccessibilityManager*
76 GetOrCreateRootBrowserAccessibilityManager(); 80 GetOrCreateRootBrowserAccessibilityManager();
77 81
82 // Send OS Cut/Copy/Paste actions to the focused frame.
83 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
84 virtual void Copy() {}
85 virtual void Paste() {}
86
87 // Requests the renderer to move the selection extent to a new position.
88 virtual void MoveRangeSelectionExtent(const gfx::Point& extent) {}
89
90 // Requests the renderer to select the region between two points in the
91 // currently focused frame.
92 virtual void SelectRange(const gfx::Point& base, const gfx::Point& extent) {}
93
78 #if defined(OS_WIN) 94 #if defined(OS_WIN)
79 virtual gfx::NativeViewAccessible GetParentNativeViewAccessible(); 95 virtual gfx::NativeViewAccessible GetParentNativeViewAccessible();
80 #endif 96 #endif
81 97
82 protected: 98 protected:
83 virtual ~RenderWidgetHostDelegate() {} 99 virtual ~RenderWidgetHostDelegate() {}
84 }; 100 };
85 101
86 } // namespace content 102 } // namespace content
87 103
88 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_DELEGATE_H_ 104 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_DELEGATE_H_
OLDNEW
« 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