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 1316233007: Remove the old didFirstVisuallyNonEmptyLayout hook. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Missed one more thing to remove. Created 5 years, 3 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 | « Source/web/FrameLoaderClientImpl.h ('k') | Source/web/WebViewImpl.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 472 matching lines...) Expand 10 before | Expand all | Expand 10 after
483 m_webFrame->client()->didFinishLoad(m_webFrame); 483 m_webFrame->client()->didFinishLoad(m_webFrame);
484 484
485 if (observer) 485 if (observer)
486 observer->didFinishLoading(); 486 observer->didFinishLoading();
487 487
488 // Don't clear the redirect chain, this will happen in the middle of client 488 // Don't clear the redirect chain, this will happen in the middle of client
489 // redirects, and we need the context. The chain will be cleared when the 489 // redirects, and we need the context. The chain will be cleared when the
490 // provisional load succeeds or fails, not the "real" one. 490 // provisional load succeeds or fails, not the "real" one.
491 } 491 }
492 492
493 void FrameLoaderClientImpl::dispatchDidFirstVisuallyNonEmptyLayout()
494 {
495 if (m_webFrame->client())
496 m_webFrame->client()->didFirstVisuallyNonEmptyLayout(m_webFrame);
497 }
498
499 void FrameLoaderClientImpl::dispatchDidChangeThemeColor() 493 void FrameLoaderClientImpl::dispatchDidChangeThemeColor()
500 { 494 {
501 if (m_webFrame->client()) 495 if (m_webFrame->client())
502 m_webFrame->client()->didChangeThemeColor(); 496 m_webFrame->client()->didChangeThemeColor();
503 } 497 }
504 498
505 static bool allowCreatingBackgroundTabs() 499 static bool allowCreatingBackgroundTabs()
506 { 500 {
507 501
508 const WebInputEvent* inputEvent = WebViewImpl::currentInputEvent(); 502 const WebInputEvent* inputEvent = WebViewImpl::currentInputEvent();
(...skipping 447 matching lines...) Expand 10 before | Expand all | Expand 10 after
956 950
957 void FrameLoaderClientImpl::suddenTerminationDisablerChanged(bool present, Sudde nTerminationDisablerType type) 951 void FrameLoaderClientImpl::suddenTerminationDisablerChanged(bool present, Sudde nTerminationDisablerType type)
958 { 952 {
959 if (m_webFrame->client()) { 953 if (m_webFrame->client()) {
960 m_webFrame->client()->suddenTerminationDisablerChanged( 954 m_webFrame->client()->suddenTerminationDisablerChanged(
961 present, static_cast<WebFrameClient::SuddenTerminationDisablerType>( type)); 955 present, static_cast<WebFrameClient::SuddenTerminationDisablerType>( type));
962 } 956 }
963 } 957 }
964 958
965 } // namespace blink 959 } // namespace blink
OLDNEW
« no previous file with comments | « Source/web/FrameLoaderClientImpl.h ('k') | Source/web/WebViewImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698