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_RENDERER_RENDER_FRAME_H_ | 5 #ifndef CONTENT_PUBLIC_RENDERER_RENDER_FRAME_H_ |
6 #define CONTENT_PUBLIC_RENDERER_RENDER_FRAME_H_ | 6 #define CONTENT_PUBLIC_RENDERER_RENDER_FRAME_H_ |
7 | 7 |
8 #include "base/strings/string16.h" | 8 #include "base/strings/string16.h" |
9 #include "content/common/content_export.h" | 9 #include "content/common/content_export.h" |
10 #include "ipc/ipc_listener.h" | 10 #include "ipc/ipc_listener.h" |
(...skipping 27 matching lines...) Expand all Loading... |
38 // Returns the RenderFrame given a WebFrame. | 38 // Returns the RenderFrame given a WebFrame. |
39 static RenderFrame* FromWebFrame(blink::WebFrame* web_frame); | 39 static RenderFrame* FromWebFrame(blink::WebFrame* web_frame); |
40 | 40 |
41 // Returns the RenderView associated with this frame. | 41 // Returns the RenderView associated with this frame. |
42 virtual RenderView* GetRenderView() = 0; | 42 virtual RenderView* GetRenderView() = 0; |
43 | 43 |
44 // Get the routing ID of the frame. | 44 // Get the routing ID of the frame. |
45 virtual int GetRoutingID() = 0; | 45 virtual int GetRoutingID() = 0; |
46 | 46 |
47 // Returns the associated WebFrame. | 47 // Returns the associated WebFrame. |
48 virtual blink::WebFrame* GetWebFrame() = 0; | 48 virtual blink::WebLocalFrame* GetWebFrame() = 0; |
49 | 49 |
50 // Gets WebKit related preferences associated with this frame. | 50 // Gets WebKit related preferences associated with this frame. |
51 virtual WebPreferences& GetWebkitPreferences() = 0; | 51 virtual WebPreferences& GetWebkitPreferences() = 0; |
52 | 52 |
53 // Shows a context menu with the given information. The given client will | 53 // Shows a context menu with the given information. The given client will |
54 // be called with the result. | 54 // be called with the result. |
55 // | 55 // |
56 // The request ID will be returned by this function. This is passed to the | 56 // The request ID will be returned by this function. This is passed to the |
57 // client functions for identification. | 57 // client functions for identification. |
58 // | 58 // |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
104 | 104 |
105 private: | 105 private: |
106 // This interface should only be implemented inside content. | 106 // This interface should only be implemented inside content. |
107 friend class RenderFrameImpl; | 107 friend class RenderFrameImpl; |
108 RenderFrame() {} | 108 RenderFrame() {} |
109 }; | 109 }; |
110 | 110 |
111 } // namespace content | 111 } // namespace content |
112 | 112 |
113 #endif // CONTENT_PUBLIC_RENDERER_RENDER_FRAME_H_ | 113 #endif // CONTENT_PUBLIC_RENDERER_RENDER_FRAME_H_ |
OLD | NEW |