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

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

Issue 2547753002: [Extensions] Extension Port Ids and Initialization 2.0 (Closed)
Patch Set: rkaplow Created 4 years 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 | « extensions/renderer/messaging_bindings.cc ('k') | third_party/WebKit/public/web/WebDocument.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 188 matching lines...) Expand 10 before | Expand all | Expand 10 after
199 void WebDocument::watchCSSSelectors(const WebVector<WebString>& webSelectors) { 199 void WebDocument::watchCSSSelectors(const WebVector<WebString>& webSelectors) {
200 Document* document = unwrap<Document>(); 200 Document* document = unwrap<Document>();
201 CSSSelectorWatch* watch = CSSSelectorWatch::fromIfExists(*document); 201 CSSSelectorWatch* watch = CSSSelectorWatch::fromIfExists(*document);
202 if (!watch && webSelectors.isEmpty()) 202 if (!watch && webSelectors.isEmpty())
203 return; 203 return;
204 Vector<String> selectors; 204 Vector<String> selectors;
205 selectors.append(webSelectors.data(), webSelectors.size()); 205 selectors.append(webSelectors.data(), webSelectors.size());
206 CSSSelectorWatch::from(*document).watchCSSSelectors(selectors); 206 CSSSelectorWatch::from(*document).watchCSSSelectors(selectors);
207 } 207 }
208 208
209 bool WebDocument::unloadStartedDoNotUse() const {
210 return constUnwrap<Document>()->unloadStarted();
211 }
212
213 bool WebDocument::processingBeforeUnloadDoNotUse() const {
214 return constUnwrap<Document>()->processingBeforeUnload();
215 }
216
217 WebReferrerPolicy WebDocument::getReferrerPolicy() const { 209 WebReferrerPolicy WebDocument::getReferrerPolicy() const {
218 return static_cast<WebReferrerPolicy>( 210 return static_cast<WebReferrerPolicy>(
219 constUnwrap<Document>()->getReferrerPolicy()); 211 constUnwrap<Document>()->getReferrerPolicy());
220 } 212 }
221 213
222 WebString WebDocument::outgoingReferrer() { 214 WebString WebDocument::outgoingReferrer() {
223 return WebString(unwrap<Document>()->outgoingReferrer()); 215 return WebString(unwrap<Document>()->outgoingReferrer());
224 } 216 }
225 217
226 WebAXObject WebDocument::accessibilityObject() const { 218 WebAXObject WebDocument::accessibilityObject() const {
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
309 WebDocument& WebDocument::operator=(Document* elem) { 301 WebDocument& WebDocument::operator=(Document* elem) {
310 m_private = elem; 302 m_private = elem;
311 return *this; 303 return *this;
312 } 304 }
313 305
314 WebDocument::operator Document*() const { 306 WebDocument::operator Document*() const {
315 return toDocument(m_private.get()); 307 return toDocument(m_private.get());
316 } 308 }
317 309
318 } // namespace blink 310 } // namespace blink
OLDNEW
« no previous file with comments | « extensions/renderer/messaging_bindings.cc ('k') | third_party/WebKit/public/web/WebDocument.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698