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

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

Issue 329943004: Implementation of brand-color (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: 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
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 432 matching lines...) Expand 10 before | Expand all | Expand 10 after
443 // redirects, and we need the context. The chain will be cleared when the 443 // redirects, and we need the context. The chain will be cleared when the
444 // provisional load succeeds or fails, not the "real" one. 444 // provisional load succeeds or fails, not the "real" one.
445 } 445 }
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()
454 {
455 if (m_webFrame->client())
456 m_webFrame->client()->didChangeBrandColor(m_webFrame);
457 }
458
453 NavigationPolicy FrameLoaderClientImpl::decidePolicyForNavigation(const Resource Request& request, DocumentLoader* loader, NavigationPolicy policy) 459 NavigationPolicy FrameLoaderClientImpl::decidePolicyForNavigation(const Resource Request& request, DocumentLoader* loader, NavigationPolicy policy)
454 { 460 {
455 if (!m_webFrame->client()) 461 if (!m_webFrame->client())
456 return NavigationPolicyIgnore; 462 return NavigationPolicyIgnore;
457 WebDataSourceImpl* ds = WebDataSourceImpl::fromDocumentLoader(loader); 463 WebDataSourceImpl* ds = WebDataSourceImpl::fromDocumentLoader(loader);
458 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),
459 ds->navigationType(), static_cast<WebNavigationPolicy>(policy), ds->isRe direct()); 465 ds->navigationType(), static_cast<WebNavigationPolicy>(policy), ds->isRe direct());
460 return static_cast<NavigationPolicy>(webPolicy); 466 return static_cast<NavigationPolicy>(webPolicy);
461 } 467 }
462 468
(...skipping 338 matching lines...) Expand 10 before | Expand all | Expand 10 after
801 m_webFrame->client()->didAbortLoading(m_webFrame); 807 m_webFrame->client()->didAbortLoading(m_webFrame);
802 } 808 }
803 809
804 void FrameLoaderClientImpl::dispatchDidChangeManifest() 810 void FrameLoaderClientImpl::dispatchDidChangeManifest()
805 { 811 {
806 if (m_webFrame->client()) 812 if (m_webFrame->client())
807 m_webFrame->client()->didChangeManifest(m_webFrame); 813 m_webFrame->client()->didChangeManifest(m_webFrame);
808 } 814 }
809 815
810 } // namespace blink 816 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698