OLD | NEW |
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" |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
68 virtual void DidSendScreenRects(RenderWidgetHostImpl* rwh) {} | 68 virtual void DidSendScreenRects(RenderWidgetHostImpl* rwh) {} |
69 | 69 |
70 // Get the root BrowserAccessibilityManager for this frame tree. | 70 // Get the root BrowserAccessibilityManager for this frame tree. |
71 virtual BrowserAccessibilityManager* GetRootBrowserAccessibilityManager(); | 71 virtual BrowserAccessibilityManager* GetRootBrowserAccessibilityManager(); |
72 | 72 |
73 // Get the root BrowserAccessibilityManager for this frame tree, | 73 // Get the root BrowserAccessibilityManager for this frame tree, |
74 // or create it if it doesn't exist. | 74 // or create it if it doesn't exist. |
75 virtual BrowserAccessibilityManager* | 75 virtual BrowserAccessibilityManager* |
76 GetOrCreateRootBrowserAccessibilityManager(); | 76 GetOrCreateRootBrowserAccessibilityManager(); |
77 | 77 |
| 78 // Send the OS Undo action to the focused frame. |
| 79 virtual void Undo(); |
| 80 |
| 81 // Send the OS Redo action to the focused frame. |
| 82 virtual void Redo(); |
| 83 |
| 84 // Send the OS Cut action to the focused frame. |
| 85 virtual void Cut(); |
| 86 |
| 87 // Send the OS Copy action to the focused frame. |
| 88 virtual void Copy(); |
| 89 |
| 90 // Send the OS CopyToFindPboard action to the focused frame. |
| 91 virtual void CopyToFindPboard(); |
| 92 |
| 93 // Send the OS Paste action to the focused frame. |
| 94 virtual void Paste(); |
| 95 |
| 96 // Send the OS PasteAndMatchStyle action to the focused frame. |
| 97 virtual void PasteAndMatchStyle(); |
| 98 |
| 99 // Send the OS SelectAll action to the focused frame. |
| 100 virtual void SelectAll(); |
| 101 |
78 #if defined(OS_WIN) | 102 #if defined(OS_WIN) |
79 virtual gfx::NativeViewAccessible GetParentNativeViewAccessible(); | 103 virtual gfx::NativeViewAccessible GetParentNativeViewAccessible(); |
80 #endif | 104 #endif |
81 | 105 |
82 protected: | 106 protected: |
83 virtual ~RenderWidgetHostDelegate() {} | 107 virtual ~RenderWidgetHostDelegate() {} |
84 }; | 108 }; |
85 | 109 |
86 } // namespace content | 110 } // namespace content |
87 | 111 |
88 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_DELEGATE_H_ | 112 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_DELEGATE_H_ |
OLD | NEW |