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

Side by Side Diff: content/public/browser/render_frame_host.h

Issue 1526263003: Position autofill popup widgets correctly under --site-per-process (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Mo IOS fixin Created 4 years, 11 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_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 <string> 8 #include <string>
9 9
10 #include "base/callback_forward.h" 10 #include "base/callback_forward.h"
11 #include "build/build_config.h" 11 #include "build/build_config.h"
12 #include "content/common/content_export.h" 12 #include "content/common/content_export.h"
13 #include "content/public/common/console_message_level.h" 13 #include "content/public/common/console_message_level.h"
14 #include "ipc/ipc_listener.h" 14 #include "ipc/ipc_listener.h"
15 #include "ipc/ipc_sender.h" 15 #include "ipc/ipc_sender.h"
16 #include "third_party/WebKit/public/platform/WebPageVisibilityState.h" 16 #include "third_party/WebKit/public/platform/WebPageVisibilityState.h"
17 #include "ui/gfx/geometry/rect.h" 17 #include "ui/gfx/geometry/rect.h"
18 #include "ui/gfx/native_widget_types.h" 18 #include "ui/gfx/native_widget_types.h"
19 #include "url/gurl.h" 19 #include "url/gurl.h"
20 #include "url/origin.h" 20 #include "url/origin.h"
21 21
22 namespace base { 22 namespace base {
23 class Value; 23 class Value;
24 } 24 }
25 25
26 namespace content { 26 namespace content {
27 class RenderProcessHost; 27 class RenderProcessHost;
28 class RenderViewHost; 28 class RenderViewHost;
29 class RenderWidgetHostView;
29 class ServiceRegistry; 30 class ServiceRegistry;
30 class SiteInstance; 31 class SiteInstance;
31 32
32 // The interface provides a communication conduit with a frame in the renderer. 33 // The interface provides a communication conduit with a frame in the renderer.
33 class CONTENT_EXPORT RenderFrameHost : public IPC::Listener, 34 class CONTENT_EXPORT RenderFrameHost : public IPC::Listener,
34 public IPC::Sender { 35 public IPC::Sender {
35 public: 36 public:
36 // Returns the RenderFrameHost given its ID and the ID of its render process. 37 // Returns the RenderFrameHost given its ID and the ID of its render process.
37 // Returns nullptr if the IDs do not correspond to a live RenderFrameHost. 38 // Returns nullptr if the IDs do not correspond to a live RenderFrameHost.
38 static RenderFrameHost* FromID(int render_process_id, int render_frame_id); 39 static RenderFrameHost* FromID(int render_process_id, int render_frame_id);
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after
181 virtual ServiceRegistry* GetServiceRegistry() = 0; 182 virtual ServiceRegistry* GetServiceRegistry() = 0;
182 183
183 // Returns the visibility state of the frame. The different visibility states 184 // Returns the visibility state of the frame. The different visibility states
184 // of a frame are defined in Blink. 185 // of a frame are defined in Blink.
185 virtual blink::WebPageVisibilityState GetVisibilityState() = 0; 186 virtual blink::WebPageVisibilityState GetVisibilityState() = 0;
186 187
187 // Returns whether the RenderFrame in the renderer process has been created 188 // Returns whether the RenderFrame in the renderer process has been created
188 // and still has a connection. This is valid for all frames. 189 // and still has a connection. This is valid for all frames.
189 virtual bool IsRenderFrameLive() = 0; 190 virtual bool IsRenderFrameLive() = 0;
190 191
192 virtual RenderWidgetHostView* GetView() = 0;
Charlie Reis 2016/01/21 00:33:03 nit: Add comment, probably taken from render_frame
kenrb 2016/01/22 18:33:58 Done.
193
191 private: 194 private:
192 // This interface should only be implemented inside content. 195 // This interface should only be implemented inside content.
193 friend class RenderFrameHostImpl; 196 friend class RenderFrameHostImpl;
194 RenderFrameHost() {} 197 RenderFrameHost() {}
195 }; 198 };
196 199
197 } // namespace content 200 } // namespace content
198 201
199 #endif // CONTENT_PUBLIC_BROWSER_RENDER_FRAME_HOST_H_ 202 #endif // CONTENT_PUBLIC_BROWSER_RENDER_FRAME_HOST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698