OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_PUBLIC_BROWSER_RENDER_FRAME_HOST_H_ | 5 #ifndef CONTENT_PUBLIC_BROWSER_RENDER_FRAME_HOST_H_ |
6 #define CONTENT_PUBLIC_BROWSER_RENDER_FRAME_HOST_H_ | 6 #define CONTENT_PUBLIC_BROWSER_RENDER_FRAME_HOST_H_ |
7 | 7 |
8 #include "content/common/content_export.h" | 8 #include "content/common/content_export.h" |
9 #include "ipc/ipc_listener.h" | 9 #include "ipc/ipc_listener.h" |
10 #include "ipc/ipc_sender.h" | 10 #include "ipc/ipc_sender.h" |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
53 virtual gfx::NativeView GetNativeView() = 0; | 53 virtual gfx::NativeView GetNativeView() = 0; |
54 | 54 |
55 // Let the renderer know that the menu has been closed. | 55 // Let the renderer know that the menu has been closed. |
56 virtual void NotifyContextMenuClosed( | 56 virtual void NotifyContextMenuClosed( |
57 const CustomContextMenuContext& context) = 0; | 57 const CustomContextMenuContext& context) = 0; |
58 | 58 |
59 // Executes custom context menu action that was provided from Blink. | 59 // Executes custom context menu action that was provided from Blink. |
60 virtual void ExecuteCustomContextMenuCommand( | 60 virtual void ExecuteCustomContextMenuCommand( |
61 int action, const CustomContextMenuContext& context) = 0; | 61 int action, const CustomContextMenuContext& context) = 0; |
62 | 62 |
| 63 // Edit operations. |
| 64 virtual void Cut() = 0; |
| 65 virtual void Copy() = 0; |
| 66 virtual void Paste() = 0; |
| 67 |
63 // Temporary until we get rid of RenderViewHost. | 68 // Temporary until we get rid of RenderViewHost. |
64 virtual RenderViewHost* GetRenderViewHost() = 0; | 69 virtual RenderViewHost* GetRenderViewHost() = 0; |
65 | 70 |
66 private: | 71 private: |
67 // This interface should only be implemented inside content. | 72 // This interface should only be implemented inside content. |
68 friend class RenderFrameHostImpl; | 73 friend class RenderFrameHostImpl; |
69 RenderFrameHost() {} | 74 RenderFrameHost() {} |
70 }; | 75 }; |
71 | 76 |
72 } // namespace content | 77 } // namespace content |
73 | 78 |
74 #endif // CONTENT_PUBLIC_BROWSER_RENDER_FRAME_HOST_H_ | 79 #endif // CONTENT_PUBLIC_BROWSER_RENDER_FRAME_HOST_H_ |
OLD | NEW |