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

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

Issue 339133004: Removed the frame parameter from didChangeBrandColor (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Send notification unconditionally Created 6 years, 6 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | Source/web/tests/WebFrameTest.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 435 matching lines...) Expand 10 before | Expand all | Expand 10 after
446 446
447 void FrameLoaderClientImpl::dispatchDidFirstVisuallyNonEmptyLayout() 447 void FrameLoaderClientImpl::dispatchDidFirstVisuallyNonEmptyLayout()
448 { 448 {
449 if (m_webFrame->client()) 449 if (m_webFrame->client())
450 m_webFrame->client()->didFirstVisuallyNonEmptyLayout(m_webFrame); 450 m_webFrame->client()->didFirstVisuallyNonEmptyLayout(m_webFrame);
451 } 451 }
452 452
453 void FrameLoaderClientImpl::dispatchDidChangeBrandColor() 453 void FrameLoaderClientImpl::dispatchDidChangeBrandColor()
454 { 454 {
455 if (m_webFrame->client()) 455 if (m_webFrame->client())
456 m_webFrame->client()->didChangeBrandColor(m_webFrame); 456 m_webFrame->client()->didChangeBrandColor();
457 } 457 }
458 458
459 NavigationPolicy FrameLoaderClientImpl::decidePolicyForNavigation(const Resource Request& request, DocumentLoader* loader, NavigationPolicy policy) 459 NavigationPolicy FrameLoaderClientImpl::decidePolicyForNavigation(const Resource Request& request, DocumentLoader* loader, NavigationPolicy policy)
460 { 460 {
461 if (!m_webFrame->client()) 461 if (!m_webFrame->client())
462 return NavigationPolicyIgnore; 462 return NavigationPolicyIgnore;
463 WebDataSourceImpl* ds = WebDataSourceImpl::fromDocumentLoader(loader); 463 WebDataSourceImpl* ds = WebDataSourceImpl::fromDocumentLoader(loader);
464 WebNavigationPolicy webPolicy = m_webFrame->client()->decidePolicyForNavigat ion(m_webFrame, ds->extraData(), WrappedResourceRequest(request), 464 WebNavigationPolicy webPolicy = m_webFrame->client()->decidePolicyForNavigat ion(m_webFrame, ds->extraData(), WrappedResourceRequest(request),
465 ds->navigationType(), static_cast<WebNavigationPolicy>(policy), ds->isRe direct()); 465 ds->navigationType(), static_cast<WebNavigationPolicy>(policy), ds->isRe direct());
466 return static_cast<NavigationPolicy>(webPolicy); 466 return static_cast<NavigationPolicy>(webPolicy);
(...skipping 340 matching lines...) Expand 10 before | Expand all | Expand 10 after
807 m_webFrame->client()->didAbortLoading(m_webFrame); 807 m_webFrame->client()->didAbortLoading(m_webFrame);
808 } 808 }
809 809
810 void FrameLoaderClientImpl::dispatchDidChangeManifest() 810 void FrameLoaderClientImpl::dispatchDidChangeManifest()
811 { 811 {
812 if (m_webFrame->client()) 812 if (m_webFrame->client())
813 m_webFrame->client()->didChangeManifest(m_webFrame); 813 m_webFrame->client()->didChangeManifest(m_webFrame);
814 } 814 }
815 815
816 } // namespace blink 816 } // namespace blink
OLDNEW
« no previous file with comments | « no previous file | Source/web/tests/WebFrameTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698