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

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: Cleanup and fix tests 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
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 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 WebContents* opener; 96 WebContents* opener;
97 bool opener_suppressed;
lazyboy 2014/05/12 23:00:20 Add desc.
Fady Samuel 2014/05/13 18:59:02 Done.
97 int routing_id; 98 int routing_id;
98 int main_frame_routing_id; 99 int main_frame_routing_id;
99 100
100 // Initial size of the new WebContent's view. Can be (0, 0) if not needed. 101 // Initial size of the new WebContent's view. Can be (0, 0) if not needed.
101 gfx::Size initial_size; 102 gfx::Size initial_size;
102 103
103 // True if the contents should be initially hidden. 104 // True if the contents should be initially hidden.
104 bool initially_hidden; 105 bool initially_hidden;
105 106
106 // If this instance ID is non-zero then it indicates that this WebContents 107 // 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( 188 virtual void ForEachFrame(
188 const base::Callback<void(RenderFrameHost*)>& on_frame) = 0; 189 const base::Callback<void(RenderFrameHost*)>& on_frame) = 0;
189 190
190 // Sends the given IPC to all frames in the currently active view. This is a 191 // Sends the given IPC to all frames in the currently active view. This is a
191 // convenience method instead of calling ForEach. 192 // convenience method instead of calling ForEach.
192 virtual void SendToAllFrames(IPC::Message* message) = 0; 193 virtual void SendToAllFrames(IPC::Message* message) = 0;
193 194
194 // Gets the current RenderViewHost for this tab. 195 // Gets the current RenderViewHost for this tab.
195 virtual RenderViewHost* GetRenderViewHost() const = 0; 196 virtual RenderViewHost* GetRenderViewHost() const = 0;
196 197
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 198 // Gets the instance ID of the current WebContents if it is embedded
202 // within a BrowserPlugin. The instance ID of a WebContents uniquely 199 // within a BrowserPlugin. The instance ID of a WebContents uniquely
203 // identifies it within its embedder WebContents. 200 // identifies it within its embedder WebContents.
204 virtual int GetEmbeddedInstanceID() const = 0; 201 virtual int GetEmbeddedInstanceID() const = 0;
205 202
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
(...skipping 394 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

Powered by Google App Engine
This is Rietveld 408576698