OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |