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

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

Issue 23129015: Initialize RenderWidget(Host)(View)s with correct visibility state (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 4 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 | Annotate | Revision Log
« no previous file with comments | « content/content_renderer.gypi ('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 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 // privileged process. 85 // privileged process.
86 SiteInstance* site_instance; 86 SiteInstance* site_instance;
87 87
88 WebContents* opener; 88 WebContents* opener;
89 int routing_id; 89 int routing_id;
90 int main_frame_routing_id; 90 int main_frame_routing_id;
91 91
92 // Initial size of the new WebContent's view. Can be (0, 0) if not needed. 92 // Initial size of the new WebContent's view. Can be (0, 0) if not needed.
93 gfx::Size initial_size; 93 gfx::Size initial_size;
94 94
95 // True if the contents should be initially hidden.
96 bool initially_hidden;
97
95 // Used to specify the location context which display the new view should 98 // Used to specify the location context which display the new view should
96 // belong. This can be NULL if not needed. 99 // belong. This can be NULL if not needed.
97 gfx::NativeView context; 100 gfx::NativeView context;
98 }; 101 };
99 102
100 // Creates a new WebContents. 103 // Creates a new WebContents.
101 CONTENT_EXPORT static WebContents* Create(const CreateParams& params); 104 CONTENT_EXPORT static WebContents* Create(const CreateParams& params);
102 105
103 // Similar to Create() above but should be used when you need to prepopulate 106 // Similar to Create() above but should be used when you need to prepopulate
104 // the SessionStorageNamespaceMap of the WebContents. This can happen if 107 // the SessionStorageNamespaceMap of the WebContents. This can happen if
(...skipping 353 matching lines...) Expand 10 before | Expand all | Expand 10 after
458 461
459 private: 462 private:
460 // This interface should only be implemented inside content. 463 // This interface should only be implemented inside content.
461 friend class WebContentsImpl; 464 friend class WebContentsImpl;
462 WebContents() {} 465 WebContents() {}
463 }; 466 };
464 467
465 } // namespace content 468 } // namespace content
466 469
467 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_ 470 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_
OLDNEW
« no previous file with comments | « content/content_renderer.gypi ('k') | content/public/browser/web_contents.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698