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_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ | 5 #ifndef CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ |
6 #define CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ | 6 #define CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
48 virtual SiteInstance* GetSiteInstance() OVERRIDE; | 48 virtual SiteInstance* GetSiteInstance() OVERRIDE; |
49 virtual RenderProcessHost* GetProcess() OVERRIDE; | 49 virtual RenderProcessHost* GetProcess() OVERRIDE; |
50 virtual RenderFrameHost* GetParent() OVERRIDE; | 50 virtual RenderFrameHost* GetParent() OVERRIDE; |
51 virtual bool IsCrossProcessSubframe() OVERRIDE; | 51 virtual bool IsCrossProcessSubframe() OVERRIDE; |
52 virtual GURL GetLastCommittedURL() OVERRIDE; | 52 virtual GURL GetLastCommittedURL() OVERRIDE; |
53 virtual gfx::NativeView GetNativeView() OVERRIDE; | 53 virtual gfx::NativeView GetNativeView() OVERRIDE; |
54 virtual void NotifyContextMenuClosed( | 54 virtual void NotifyContextMenuClosed( |
55 const CustomContextMenuContext& context) OVERRIDE; | 55 const CustomContextMenuContext& context) OVERRIDE; |
56 virtual void ExecuteCustomContextMenuCommand( | 56 virtual void ExecuteCustomContextMenuCommand( |
57 int action, const CustomContextMenuContext& context) OVERRIDE; | 57 int action, const CustomContextMenuContext& context) OVERRIDE; |
| 58 virtual void Cut() OVERRIDE; |
| 59 virtual void Copy() OVERRIDE; |
| 60 virtual void Paste() OVERRIDE; |
58 virtual RenderViewHost* GetRenderViewHost() OVERRIDE; | 61 virtual RenderViewHost* GetRenderViewHost() OVERRIDE; |
59 | 62 |
60 // IPC::Sender | 63 // IPC::Sender |
61 virtual bool Send(IPC::Message* msg) OVERRIDE; | 64 virtual bool Send(IPC::Message* msg) OVERRIDE; |
62 | 65 |
63 // IPC::Listener | 66 // IPC::Listener |
64 virtual bool OnMessageReceived(const IPC::Message& msg) OVERRIDE; | 67 virtual bool OnMessageReceived(const IPC::Message& msg) OVERRIDE; |
65 | 68 |
66 void Init(); | 69 void Init(); |
67 int routing_id() const { return routing_id_; } | 70 int routing_id() const { return routing_id_; } |
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
142 FrameTreeNode* frame_tree_node, | 145 FrameTreeNode* frame_tree_node, |
143 int routing_id, | 146 int routing_id, |
144 bool is_swapped_out); | 147 bool is_swapped_out); |
145 | 148 |
146 private: | 149 private: |
147 friend class TestRenderFrameHost; | 150 friend class TestRenderFrameHost; |
148 friend class TestRenderViewHost; | 151 friend class TestRenderViewHost; |
149 | 152 |
150 // IPC Message handlers. | 153 // IPC Message handlers. |
151 void OnDetach(); | 154 void OnDetach(); |
| 155 void OnFrameFocused(); |
152 void OnOpenURL(const FrameHostMsg_OpenURL_Params& params); | 156 void OnOpenURL(const FrameHostMsg_OpenURL_Params& params); |
153 void OnDidStartProvisionalLoadForFrame(int parent_routing_id, | 157 void OnDidStartProvisionalLoadForFrame(int parent_routing_id, |
154 bool main_frame, | 158 bool main_frame, |
155 const GURL& url); | 159 const GURL& url); |
156 void OnDidFailProvisionalLoadWithError( | 160 void OnDidFailProvisionalLoadWithError( |
157 const FrameHostMsg_DidFailProvisionalLoadWithError_Params& params); | 161 const FrameHostMsg_DidFailProvisionalLoadWithError_Params& params); |
158 void OnDidFailLoadWithError( | 162 void OnDidFailLoadWithError( |
159 const GURL& url, | 163 const GURL& url, |
160 bool is_main_frame, | 164 bool is_main_frame, |
161 int error_code, | 165 int error_code, |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
205 | 209 |
206 int routing_id_; | 210 int routing_id_; |
207 bool is_swapped_out_; | 211 bool is_swapped_out_; |
208 | 212 |
209 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl); | 213 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl); |
210 }; | 214 }; |
211 | 215 |
212 } // namespace content | 216 } // namespace content |
213 | 217 |
214 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ | 218 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ |
OLD | NEW |