Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(30)

Side by Side Diff: content/public/browser/web_contents.h

Issue 975293004: Start caching the theme color in web_contents (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Made the default transparent and started caching last sent Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « content/public/android/java/src/org/chromium/content_public/browser/WebContents.java ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « content/public/android/java/src/org/chromium/content_public/browser/WebContents.java ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698