Chromium Code Reviews| 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 // Requests the renderer to insert CSS into the frame. | |
|
nasko
2014/03/06 19:31:55
nit: "into the frame's document."
Avi (use Gerrit)
2014/03/06 21:21:04
Done.
| |
| 64 virtual void InsertCSS(const std::string& css) = 0; | |
| 65 | |
| 63 // Temporary until we get rid of RenderViewHost. | 66 // Temporary until we get rid of RenderViewHost. |
| 64 virtual RenderViewHost* GetRenderViewHost() = 0; | 67 virtual RenderViewHost* GetRenderViewHost() = 0; |
| 65 | 68 |
| 66 private: | 69 private: |
| 67 // This interface should only be implemented inside content. | 70 // This interface should only be implemented inside content. |
| 68 friend class RenderFrameHostImpl; | 71 friend class RenderFrameHostImpl; |
| 69 RenderFrameHost() {} | 72 RenderFrameHost() {} |
| 70 }; | 73 }; |
| 71 | 74 |
| 72 } // namespace content | 75 } // namespace content |
| 73 | 76 |
| 74 #endif // CONTENT_PUBLIC_BROWSER_RENDER_FRAME_HOST_H_ | 77 #endif // CONTENT_PUBLIC_BROWSER_RENDER_FRAME_HOST_H_ |
| OLD | NEW |