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/callback_forward.h" | 8 #include "base/callback_forward.h" |
9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
10 #include "base/strings/string16.h" | 10 #include "base/strings/string16.h" |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
48 | 48 |
49 // This interface wraps functionality, which is specific to frames, such as | 49 // This interface wraps functionality, which is specific to frames, such as |
50 // navigation. It provides communication with a corresponding RenderFrameHost | 50 // navigation. It provides communication with a corresponding RenderFrameHost |
51 // in the browser process. | 51 // in the browser process. |
52 class CONTENT_EXPORT RenderFrame : public IPC::Listener, | 52 class CONTENT_EXPORT RenderFrame : public IPC::Listener, |
53 public IPC::Sender { | 53 public IPC::Sender { |
54 public: | 54 public: |
55 // Returns the RenderFrame given a WebFrame. | 55 // Returns the RenderFrame given a WebFrame. |
56 static RenderFrame* FromWebFrame(blink::WebFrame* web_frame); | 56 static RenderFrame* FromWebFrame(blink::WebFrame* web_frame); |
57 | 57 |
58 // Returns the RenderFrame given a routing id. | |
59 static RenderFrame* FromRoutingID(int32 routing_id); | |
Charlie Reis
2015/07/08 22:52:18
Is there a reason to explicitly use int32 here rat
Devlin
2015/07/09 20:09:11
Apparently I copied the one place it was int32 (th
| |
60 | |
58 // Returns the RenderView associated with this frame. | 61 // Returns the RenderView associated with this frame. |
59 virtual RenderView* GetRenderView() = 0; | 62 virtual RenderView* GetRenderView() = 0; |
60 | 63 |
61 // Get the routing ID of the frame. | 64 // Get the routing ID of the frame. |
62 virtual int GetRoutingID() = 0; | 65 virtual int GetRoutingID() = 0; |
63 | 66 |
64 // Returns the associated WebFrame. | 67 // Returns the associated WebFrame. |
65 virtual blink::WebLocalFrame* GetWebFrame() = 0; | 68 virtual blink::WebLocalFrame* GetWebFrame() = 0; |
66 | 69 |
67 // Gets the focused element. If no such element exists then | 70 // Gets the focused element. If no such element exists then |
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
153 | 156 |
154 private: | 157 private: |
155 // This interface should only be implemented inside content. | 158 // This interface should only be implemented inside content. |
156 friend class RenderFrameImpl; | 159 friend class RenderFrameImpl; |
157 RenderFrame() {} | 160 RenderFrame() {} |
158 }; | 161 }; |
159 | 162 |
160 } // namespace content | 163 } // namespace content |
161 | 164 |
162 #endif // CONTENT_PUBLIC_RENDERER_RENDER_FRAME_H_ | 165 #endif // CONTENT_PUBLIC_RENDERER_RENDER_FRAME_H_ |
OLD | NEW |