| 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 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 73 class WebContents : public PageNavigator, | 73 class WebContents : public PageNavigator, |
| 74 public IPC::Sender, | 74 public IPC::Sender, |
| 75 public base::SupportsUserData { | 75 public base::SupportsUserData { |
| 76 public: | 76 public: |
| 77 struct CONTENT_EXPORT CreateParams { | 77 struct CONTENT_EXPORT CreateParams { |
| 78 explicit CreateParams(BrowserContext* context); | 78 explicit CreateParams(BrowserContext* context); |
| 79 CreateParams(BrowserContext* context, SiteInstance* site); | 79 CreateParams(BrowserContext* context, SiteInstance* site); |
| 80 | 80 |
| 81 BrowserContext* browser_context; | 81 BrowserContext* browser_context; |
| 82 SiteInstance* site_instance; | 82 SiteInstance* site_instance; |
| 83 WebContents* opener; |
| 83 int routing_id; | 84 int routing_id; |
| 84 int main_frame_routing_id; | 85 int main_frame_routing_id; |
| 85 | 86 |
| 86 // Initial size of the new WebContent's view. Can be (0, 0) if not needed. | 87 // Initial size of the new WebContent's view. Can be (0, 0) if not needed. |
| 87 gfx::Size initial_size; | 88 gfx::Size initial_size; |
| 88 | 89 |
| 89 // Used to specify the location context which display the new view should | 90 // Used to specify the location context which display the new view should |
| 90 // belong. This can be NULL if not needed. | 91 // belong. This can be NULL if not needed. |
| 91 gfx::NativeView context; | 92 gfx::NativeView context; |
| 92 }; | 93 }; |
| (...skipping 359 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 452 | 453 |
| 453 private: | 454 private: |
| 454 // This interface should only be implemented inside content. | 455 // This interface should only be implemented inside content. |
| 455 friend class WebContentsImpl; | 456 friend class WebContentsImpl; |
| 456 WebContents() {} | 457 WebContents() {} |
| 457 }; | 458 }; |
| 458 | 459 |
| 459 } // namespace content | 460 } // namespace content |
| 460 | 461 |
| 461 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_ | 462 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_ |
| OLD | NEW |