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

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

Issue 179293007: Remove deprecated focusedNode APIs (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 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 | « no previous file | Source/web/WebViewImpl.h » ('j') | 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 178 matching lines...) Expand 10 before | Expand all | Expand 10 after
189 WebURL WebDocument::completeURL(const WebString& partialURL) const 189 WebURL WebDocument::completeURL(const WebString& partialURL) const
190 { 190 {
191 return constUnwrap<Document>()->completeURL(partialURL); 191 return constUnwrap<Document>()->completeURL(partialURL);
192 } 192 }
193 193
194 WebElement WebDocument::getElementById(const WebString& id) const 194 WebElement WebDocument::getElementById(const WebString& id) const
195 { 195 {
196 return WebElement(constUnwrap<Document>()->getElementById(id)); 196 return WebElement(constUnwrap<Document>()->getElementById(id));
197 } 197 }
198 198
199 WebNode WebDocument::focusedNode() const
200 {
201 return WebNode(constUnwrap<Document>()->focusedElement());
202 }
203
204 WebElement WebDocument::focusedElement() const 199 WebElement WebDocument::focusedElement() const
205 { 200 {
206 return WebElement(constUnwrap<Document>()->focusedElement()); 201 return WebElement(constUnwrap<Document>()->focusedElement());
207 } 202 }
208 203
209 WebDocumentType WebDocument::doctype() const 204 WebDocumentType WebDocument::doctype() const
210 { 205 {
211 return WebDocumentType(constUnwrap<Document>()->doctype()); 206 return WebDocumentType(constUnwrap<Document>()->doctype());
212 } 207 }
213 208
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
315 m_private = elem; 310 m_private = elem;
316 return *this; 311 return *this;
317 } 312 }
318 313
319 WebDocument::operator PassRefPtr<Document>() const 314 WebDocument::operator PassRefPtr<Document>() const
320 { 315 {
321 return toDocument(m_private.get()); 316 return toDocument(m_private.get());
322 } 317 }
323 318
324 } // namespace blink 319 } // namespace blink
OLDNEW
« no previous file with comments | « no previous file | Source/web/WebViewImpl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698