| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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_ |
| OLD | NEW |