| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |