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

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

Issue 18371008: Add a WebDocument::watchCssSelectors(selectors) (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@pinned
Patch Set: Add a test for watching dynamic attribute changes Created 7 years, 4 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 | « Source/web/FrameLoaderClientImpl.h ('k') | Source/web/WebDocument.cpp » ('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, 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2009, 2012 Google Inc. All rights reserved.
3 * Copyright (C) 2011 Apple Inc. All rights reserved. 3 * Copyright (C) 2011 Apple Inc. All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are 6 * modification, are permitted provided that the following conditions are
7 * met: 7 * met:
8 * 8 *
9 * * Redistributions of source code must retain the above copyright 9 * * Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 574 matching lines...) Expand 10 before | Expand all | Expand 10 after
585 if (m_webFrame->client()) 585 if (m_webFrame->client())
586 m_webFrame->client()->didDetectXSS(m_webFrame, insecureURL, didBlockEnti rePage); 586 m_webFrame->client()->didDetectXSS(m_webFrame, insecureURL, didBlockEnti rePage);
587 } 587 }
588 588
589 void FrameLoaderClientImpl::didDispatchPingLoader(const KURL& url) 589 void FrameLoaderClientImpl::didDispatchPingLoader(const KURL& url)
590 { 590 {
591 if (m_webFrame->client()) 591 if (m_webFrame->client())
592 m_webFrame->client()->didDispatchPingLoader(m_webFrame, url); 592 m_webFrame->client()->didDispatchPingLoader(m_webFrame, url);
593 } 593 }
594 594
595 void FrameLoaderClientImpl::selectorMatchChanged(const Vector<String>& addedSele ctors, const Vector<String>& removedSelectors)
596 {
597 if (m_webFrame->client()) {
598 m_webFrame->client()->didMatchCSS(m_webFrame, WebVector<WebString>(added Selectors), WebVector<WebString>(removedSelectors));
599 }
600 }
601
595 ResourceError FrameLoaderClientImpl::interruptedForPolicyChangeError( 602 ResourceError FrameLoaderClientImpl::interruptedForPolicyChangeError(
596 const ResourceRequest& request) 603 const ResourceRequest& request)
597 { 604 {
598 return ResourceError(internalErrorDomain, PolicyChangeError, 605 return ResourceError(internalErrorDomain, PolicyChangeError,
599 request.url().string(), String()); 606 request.url().string(), String());
600 } 607 }
601 608
602 PassRefPtr<DocumentLoader> FrameLoaderClientImpl::createDocumentLoader( 609 PassRefPtr<DocumentLoader> FrameLoaderClientImpl::createDocumentLoader(
603 const ResourceRequest& request, 610 const ResourceRequest& request,
604 const SubstituteData& data) 611 const SubstituteData& data)
(...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after
808 m_webFrame->client()->didLoseWebGLContext(m_webFrame, arbRobustnessConte xtLostReason); 815 m_webFrame->client()->didLoseWebGLContext(m_webFrame, arbRobustnessConte xtLostReason);
809 } 816 }
810 817
811 void FrameLoaderClientImpl::dispatchWillInsertBody() 818 void FrameLoaderClientImpl::dispatchWillInsertBody()
812 { 819 {
813 if (m_webFrame->client()) 820 if (m_webFrame->client())
814 m_webFrame->client()->willInsertBody(m_webFrame); 821 m_webFrame->client()->willInsertBody(m_webFrame);
815 } 822 }
816 823
817 } // namespace WebKit 824 } // namespace WebKit
OLDNEW
« no previous file with comments | « Source/web/FrameLoaderClientImpl.h ('k') | Source/web/WebDocument.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698