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

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

Issue 272573005: <webview>: Move NewWindow API to chrome (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@guestview_manager_rename
Patch Set: Merge with ToT Created 6 years, 7 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
« no previous file with comments | « content/public/browser/content_browser_client.h ('k') | content/public/browser/web_contents.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_WEB_CONTENTS_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_
6 #define CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_ 6 #define CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_
7 7
8 #include <set> 8 #include <set>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 ~CreateParams(); 86 ~CreateParams();
87 CreateParams(BrowserContext* context, SiteInstance* site); 87 CreateParams(BrowserContext* context, SiteInstance* site);
88 88
89 BrowserContext* browser_context; 89 BrowserContext* browser_context;
90 90
91 // Specifying a SiteInstance here is optional. It can be set to avoid an 91 // Specifying a SiteInstance here is optional. It can be set to avoid an
92 // extra process swap if the first navigation is expected to require a 92 // extra process swap if the first navigation is expected to require a
93 // privileged process. 93 // privileged process.
94 SiteInstance* site_instance; 94 SiteInstance* site_instance;
95 95
96 // The opener WebContents is the WebContents that initiated this request,
97 // if any.
96 WebContents* opener; 98 WebContents* opener;
99
100 // If the opener is suppressed, then the new WebContents doesn't hold a
101 // reference to its opener.
102 bool opener_suppressed;
97 int routing_id; 103 int routing_id;
98 int main_frame_routing_id; 104 int main_frame_routing_id;
99 105
100 // Initial size of the new WebContent's view. Can be (0, 0) if not needed. 106 // Initial size of the new WebContent's view. Can be (0, 0) if not needed.
101 gfx::Size initial_size; 107 gfx::Size initial_size;
102 108
103 // True if the contents should be initially hidden. 109 // True if the contents should be initially hidden.
104 bool initially_hidden; 110 bool initially_hidden;
105 111
106 // If this instance ID is non-zero then it indicates that this WebContents 112 // If this instance ID is non-zero then it indicates that this WebContents
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
187 virtual void ForEachFrame( 193 virtual void ForEachFrame(
188 const base::Callback<void(RenderFrameHost*)>& on_frame) = 0; 194 const base::Callback<void(RenderFrameHost*)>& on_frame) = 0;
189 195
190 // Sends the given IPC to all frames in the currently active view. This is a 196 // Sends the given IPC to all frames in the currently active view. This is a
191 // convenience method instead of calling ForEach. 197 // convenience method instead of calling ForEach.
192 virtual void SendToAllFrames(IPC::Message* message) = 0; 198 virtual void SendToAllFrames(IPC::Message* message) = 0;
193 199
194 // Gets the current RenderViewHost for this tab. 200 // Gets the current RenderViewHost for this tab.
195 virtual RenderViewHost* GetRenderViewHost() const = 0; 201 virtual RenderViewHost* GetRenderViewHost() const = 0;
196 202
197 // Returns the WebContents embedding this WebContents, if any.
198 // If this is a top-level WebContents then it returns NULL.
199 virtual WebContents* GetEmbedderWebContents() const = 0;
200
201 // Gets the instance ID of the current WebContents if it is embedded
202 // within a BrowserPlugin. The instance ID of a WebContents uniquely
203 // identifies it within its embedder WebContents.
204 virtual int GetEmbeddedInstanceID() const = 0;
205
206 // Gets the current RenderViewHost's routing id. Returns 203 // Gets the current RenderViewHost's routing id. Returns
207 // MSG_ROUTING_NONE when there is no RenderViewHost. 204 // MSG_ROUTING_NONE when there is no RenderViewHost.
208 virtual int GetRoutingID() const = 0; 205 virtual int GetRoutingID() const = 0;
209 206
210 // Returns the currently active RenderWidgetHostView. This may change over 207 // Returns the currently active RenderWidgetHostView. This may change over
211 // time and can be NULL (during setup and teardown). 208 // time and can be NULL (during setup and teardown).
212 virtual RenderWidgetHostView* GetRenderWidgetHostView() const = 0; 209 virtual RenderWidgetHostView* GetRenderWidgetHostView() const = 0;
213 210
214 // Returns the currently active fullscreen widget. If there is none, returns 211 // Returns the currently active fullscreen widget. If there is none, returns
215 // NULL. 212 // NULL.
(...skipping 389 matching lines...) Expand 10 before | Expand all | Expand 10 after
605 602
606 private: 603 private:
607 // This interface should only be implemented inside content. 604 // This interface should only be implemented inside content.
608 friend class WebContentsImpl; 605 friend class WebContentsImpl;
609 WebContents() {} 606 WebContents() {}
610 }; 607 };
611 608
612 } // namespace content 609 } // namespace content
613 610
614 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_ 611 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_
OLDNEW
« no previous file with comments | « content/public/browser/content_browser_client.h ('k') | content/public/browser/web_contents.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698