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 178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
189 // within a BrowserPlugin. The instance ID of a WebContents uniquely | 189 // within a BrowserPlugin. The instance ID of a WebContents uniquely |
190 // identifies it within its embedder WebContents. | 190 // identifies it within its embedder WebContents. |
191 virtual int GetEmbeddedInstanceID() const = 0; | 191 virtual int GetEmbeddedInstanceID() const = 0; |
192 | 192 |
193 // Gets the current RenderViewHost's routing id. Returns | 193 // Gets the current RenderViewHost's routing id. Returns |
194 // MSG_ROUTING_NONE when there is no RenderViewHost. | 194 // MSG_ROUTING_NONE when there is no RenderViewHost. |
195 virtual int GetRoutingID() const = 0; | 195 virtual int GetRoutingID() const = 0; |
196 | 196 |
197 // Returns the currently active RenderWidgetHostView. This may change over | 197 // Returns the currently active RenderWidgetHostView. This may change over |
198 // time and can be NULL (during setup and teardown). | 198 // time and can be NULL (during setup and teardown). |
199 virtual content::RenderWidgetHostView* GetRenderWidgetHostView() const = 0; | 199 virtual RenderWidgetHostView* GetRenderWidgetHostView() const = 0; |
| 200 |
| 201 // Returns the currently active fullscreen widget. If there is none, returns |
| 202 // NULL. |
| 203 virtual RenderWidgetHostView* GetFullscreenRenderWidgetHostView() const = 0; |
200 | 204 |
201 // The WebContentsView will never change and is guaranteed non-NULL. | 205 // The WebContentsView will never change and is guaranteed non-NULL. |
202 virtual WebContentsView* GetView() const = 0; | 206 virtual WebContentsView* GetView() const = 0; |
203 | 207 |
204 // Create a WebUI page for the given url. In most cases, this doesn't need to | 208 // Create a WebUI page for the given url. In most cases, this doesn't need to |
205 // be called by embedders since content will create its own WebUI objects as | 209 // be called by embedders since content will create its own WebUI objects as |
206 // necessary. However if the embedder wants to create its own WebUI object and | 210 // necessary. However if the embedder wants to create its own WebUI object and |
207 // keep track of it manually, it can use this. | 211 // keep track of it manually, it can use this. |
208 virtual WebUI* CreateWebUI(const GURL& url) = 0; | 212 virtual WebUI* CreateWebUI(const GURL& url) = 0; |
209 | 213 |
(...skipping 250 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
460 | 464 |
461 private: | 465 private: |
462 // This interface should only be implemented inside content. | 466 // This interface should only be implemented inside content. |
463 friend class WebContentsImpl; | 467 friend class WebContentsImpl; |
464 WebContents() {} | 468 WebContents() {} |
465 }; | 469 }; |
466 | 470 |
467 } // namespace content | 471 } // namespace content |
468 | 472 |
469 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_ | 473 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_ |
OLD | NEW |