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 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
10 #include "base/callback_forward.h" | 10 #include "base/callback_forward.h" |
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
91 virtual void SetViewType(content::ViewType type) = 0; | 91 virtual void SetViewType(content::ViewType type) = 0; |
92 virtual content::ViewType GetViewType() const = 0; | 92 virtual content::ViewType GetViewType() const = 0; |
93 | 93 |
94 // Gets the URL that is currently being displayed, if there is one. | 94 // Gets the URL that is currently being displayed, if there is one. |
95 virtual const GURL& GetURL() const = 0; | 95 virtual const GURL& GetURL() const = 0; |
96 | 96 |
97 // Return the currently active RenderProcessHost and RenderViewHost. Each of | 97 // Return the currently active RenderProcessHost and RenderViewHost. Each of |
98 // these may change over time. | 98 // these may change over time. |
99 virtual RenderProcessHost* GetRenderProcessHost() const = 0; | 99 virtual RenderProcessHost* GetRenderProcessHost() const = 0; |
100 | 100 |
101 // Gets the pending RenderProcessHost for this tab. | |
102 virtual RenderProcessHost* GetPendingRenderProcessHost() const = 0; | |
jam
2012/05/11 22:06:43
1) only stuff used by embedders of content should
Fady Samuel
2012/05/11 22:08:01
Yup, just got rid of it. This is not absolutely ne
jam
2012/05/14 04:48:15
what I meant by 2 is that the whole concept of pen
| |
103 | |
101 // Gets the current RenderViewHost for this tab. | 104 // Gets the current RenderViewHost for this tab. |
102 virtual RenderViewHost* GetRenderViewHost() const = 0; | 105 virtual RenderViewHost* GetRenderViewHost() const = 0; |
103 | 106 |
107 // Gets the pending RenderViewHost for this tab. | |
108 virtual RenderViewHost* GetPendingRenderViewHost() const = 0; | |
109 | |
104 // Returns the currently active RenderWidgetHostView. This may change over | 110 // Returns the currently active RenderWidgetHostView. This may change over |
105 // time and can be NULL (during setup and teardown). | 111 // time and can be NULL (during setup and teardown). |
106 virtual content::RenderWidgetHostView* GetRenderWidgetHostView() const = 0; | 112 virtual content::RenderWidgetHostView* GetRenderWidgetHostView() const = 0; |
107 | 113 |
108 // The WebContentsView will never change and is guaranteed non-NULL. | 114 // The WebContentsView will never change and is guaranteed non-NULL. |
109 virtual WebContentsView* GetView() const = 0; | 115 virtual WebContentsView* GetView() const = 0; |
110 | 116 |
111 // Create a WebUI page for the given url. In most cases, this doesn't need to | 117 // Create a WebUI page for the given url. In most cases, this doesn't need to |
112 // be called by embedders since content will create its own WebUI objects as | 118 // be called by embedders since content will create its own WebUI objects as |
113 // necessary. However if the embedder wants to create its own WebUI object and | 119 // necessary. However if the embedder wants to create its own WebUI object and |
(...skipping 258 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
372 // Focuses the location bar. | 378 // Focuses the location bar. |
373 virtual void SetFocusToLocationBar(bool select_all) = 0; | 379 virtual void SetFocusToLocationBar(bool select_all) = 0; |
374 | 380 |
375 // Does this have an opener associated with it? | 381 // Does this have an opener associated with it? |
376 virtual bool HasOpener() const = 0; | 382 virtual bool HasOpener() const = 0; |
377 }; | 383 }; |
378 | 384 |
379 } // namespace content | 385 } // namespace content |
380 | 386 |
381 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_ | 387 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_ |
OLD | NEW |