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

Side by Side Diff: Source/web/WebDocument.cpp

Issue 329943004: Implementation of brand-color (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 6 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 | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2009 Google Inc. All rights reserved. 2 * Copyright (C) 2009 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 WebString WebDocument::contentLanguage() const 91 WebString WebDocument::contentLanguage() const
92 { 92 {
93 return constUnwrap<Document>()->contentLanguage(); 93 return constUnwrap<Document>()->contentLanguage();
94 } 94 }
95 95
96 WebString WebDocument::referrer() const 96 WebString WebDocument::referrer() const
97 { 97 {
98 return constUnwrap<Document>()->referrer(); 98 return constUnwrap<Document>()->referrer();
99 } 99 }
100 100
101 WebColor WebDocument::brandColor() const
102 {
103 return constUnwrap<Document>()->brandColor().rgb();
104 }
105
101 WebURL WebDocument::openSearchDescriptionURL() const 106 WebURL WebDocument::openSearchDescriptionURL() const
102 { 107 {
103 return const_cast<Document*>(constUnwrap<Document>())->openSearchDescription URL(); 108 return const_cast<Document*>(constUnwrap<Document>())->openSearchDescription URL();
104 } 109 }
105 110
106 WebLocalFrame* WebDocument::frame() const 111 WebLocalFrame* WebDocument::frame() const
107 { 112 {
108 return WebLocalFrameImpl::fromFrame(constUnwrap<Document>()->frame()); 113 return WebLocalFrameImpl::fromFrame(constUnwrap<Document>()->frame());
109 } 114 }
110 115
(...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after
312 m_private = elem; 317 m_private = elem;
313 return *this; 318 return *this;
314 } 319 }
315 320
316 WebDocument::operator PassRefPtrWillBeRawPtr<Document>() const 321 WebDocument::operator PassRefPtrWillBeRawPtr<Document>() const
317 { 322 {
318 return toDocument(m_private.get()); 323 return toDocument(m_private.get());
319 } 324 }
320 325
321 } // namespace blink 326 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698