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

Side by Side Diff: sky/engine/web/WebDocument.cpp

Issue 871383002: Merge HTMLDocument into Document (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 10 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 | « sky/engine/public/web/WebDocument.h ('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 /* 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 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 WebURL WebDocument::openSearchDescriptionURL() const 75 WebURL WebDocument::openSearchDescriptionURL() const
76 { 76 {
77 return const_cast<Document*>(constUnwrap<Document>())->openSearchDescription URL(); 77 return const_cast<Document*>(constUnwrap<Document>())->openSearchDescription URL();
78 } 78 }
79 79
80 WebLocalFrame* WebDocument::frame() const 80 WebLocalFrame* WebDocument::frame() const
81 { 81 {
82 return WebLocalFrameImpl::fromFrame(constUnwrap<Document>()->frame()); 82 return WebLocalFrameImpl::fromFrame(constUnwrap<Document>()->frame());
83 } 83 }
84 84
85 bool WebDocument::isHTMLDocument() const
86 {
87 return constUnwrap<Document>()->isHTMLDocument();
88 }
89
90 WebElement WebDocument::documentElement() const 85 WebElement WebDocument::documentElement() const
91 { 86 {
92 return WebElement(constUnwrap<Document>()->documentElement()); 87 return WebElement(constUnwrap<Document>()->documentElement());
93 } 88 }
94 89
95 WebString WebDocument::title() const 90 WebString WebDocument::title() const
96 { 91 {
97 return WebString(constUnwrap<Document>()->title()); 92 return WebString(constUnwrap<Document>()->title());
98 } 93 }
99 94
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
141 m_private = elem; 136 m_private = elem;
142 return *this; 137 return *this;
143 } 138 }
144 139
145 WebDocument::operator PassRefPtr<Document>() const 140 WebDocument::operator PassRefPtr<Document>() const
146 { 141 {
147 return toDocument(m_private.get()); 142 return toDocument(m_private.get());
148 } 143 }
149 144
150 } // namespace blink 145 } // namespace blink
OLDNEW
« no previous file with comments | « sky/engine/public/web/WebDocument.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698