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 // Requests the renderer to insert CSS into the frame's document. | 68 // Requests the renderer to insert CSS into the frame's document. |
64 virtual void InsertCSS(const std::string& css) = 0; | 69 virtual void InsertCSS(const std::string& css) = 0; |
65 | 70 |
66 // Temporary until we get rid of RenderViewHost. | 71 // Temporary until we get rid of RenderViewHost. |
67 virtual RenderViewHost* GetRenderViewHost() = 0; | 72 virtual RenderViewHost* GetRenderViewHost() = 0; |
68 | 73 |
69 private: | 74 private: |
70 // This interface should only be implemented inside content. | 75 // This interface should only be implemented inside content. |
71 friend class RenderFrameHostImpl; | 76 friend class RenderFrameHostImpl; |
72 RenderFrameHost() {} | 77 RenderFrameHost() {} |
73 }; | 78 }; |
74 | 79 |
75 } // namespace content | 80 } // namespace content |
76 | 81 |
77 #endif // CONTENT_PUBLIC_BROWSER_RENDER_FRAME_HOST_H_ | 82 #endif // CONTENT_PUBLIC_BROWSER_RENDER_FRAME_HOST_H_ |
OLD | NEW |