| 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 206 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 217 virtual int GetRoutingID() const = 0; | 217 virtual int GetRoutingID() const = 0; |
| 218 | 218 |
| 219 // Returns the currently active RenderWidgetHostView. This may change over | 219 // Returns the currently active RenderWidgetHostView. This may change over |
| 220 // time and can be nullptr (during setup and teardown). | 220 // time and can be nullptr (during setup and teardown). |
| 221 virtual RenderWidgetHostView* GetRenderWidgetHostView() const = 0; | 221 virtual RenderWidgetHostView* GetRenderWidgetHostView() const = 0; |
| 222 | 222 |
| 223 // Returns the currently active fullscreen widget. If there is none, returns | 223 // Returns the currently active fullscreen widget. If there is none, returns |
| 224 // nullptr. | 224 // nullptr. |
| 225 virtual RenderWidgetHostView* GetFullscreenRenderWidgetHostView() const = 0; | 225 virtual RenderWidgetHostView* GetFullscreenRenderWidgetHostView() const = 0; |
| 226 | 226 |
| 227 // Returns the theme color for the underlying content as set by the |
| 228 // theme-color meta tag. |
| 229 virtual SkColor GetThemeColor() const = 0; |
| 230 |
| 227 // Create a WebUI page for the given url. In most cases, this doesn't need to | 231 // Create a WebUI page for the given url. In most cases, this doesn't need to |
| 228 // be called by embedders since content will create its own WebUI objects as | 232 // be called by embedders since content will create its own WebUI objects as |
| 229 // necessary. However if the embedder wants to create its own WebUI object and | 233 // necessary. However if the embedder wants to create its own WebUI object and |
| 230 // keep track of it manually, it can use this. | 234 // keep track of it manually, it can use this. |
| 231 virtual WebUI* CreateWebUI(const GURL& url) = 0; | 235 virtual WebUI* CreateWebUI(const GURL& url) = 0; |
| 232 | 236 |
| 233 // Returns the committed WebUI if one exists, otherwise the pending one. | 237 // Returns the committed WebUI if one exists, otherwise the pending one. |
| 234 virtual WebUI* GetWebUI() const = 0; | 238 virtual WebUI* GetWebUI() const = 0; |
| 235 virtual WebUI* GetCommittedWebUI() const = 0; | 239 virtual WebUI* GetCommittedWebUI() const = 0; |
| 236 | 240 |
| (...skipping 387 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 624 | 628 |
| 625 private: | 629 private: |
| 626 // This interface should only be implemented inside content. | 630 // This interface should only be implemented inside content. |
| 627 friend class WebContentsImpl; | 631 friend class WebContentsImpl; |
| 628 WebContents() {} | 632 WebContents() {} |
| 629 }; | 633 }; |
| 630 | 634 |
| 631 } // namespace content | 635 } // namespace content |
| 632 | 636 |
| 633 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_ | 637 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_ |
| OLD | NEW |