Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(10)

Side by Side Diff: content/public/renderer/render_frame.h

Issue 1211003006: [Extensions OOPI] Update app window bindings for OOPI (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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(int routing_id);
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
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_
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/options/options_handlers_helper.cc ('k') | content/renderer/render_frame_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698