OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2009 Google Inc. All rights reserved. | 2 * Copyright (C) 2009 Google Inc. All rights reserved. |
3 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). | 3 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). |
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 513 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
524 { | 524 { |
525 return m_webView->client() ? m_webView->client()->screenInfo() : WebScreenIn
fo(); | 525 return m_webView->client() ? m_webView->client()->screenInfo() : WebScreenIn
fo(); |
526 } | 526 } |
527 | 527 |
528 void ChromeClientImpl::contentsSizeChanged(LocalFrame* frame, const IntSize& siz
e) const | 528 void ChromeClientImpl::contentsSizeChanged(LocalFrame* frame, const IntSize& siz
e) const |
529 { | 529 { |
530 m_webView->didChangeContentsSize(); | 530 m_webView->didChangeContentsSize(); |
531 | 531 |
532 WebLocalFrameImpl* webframe = WebLocalFrameImpl::fromFrame(frame); | 532 WebLocalFrameImpl* webframe = WebLocalFrameImpl::fromFrame(frame); |
533 webframe->didChangeContentsSize(size); | 533 webframe->didChangeContentsSize(size); |
534 if (webframe->client()) | |
535 webframe->client()->didChangeContentsSize(webframe, size); | |
536 | 534 |
537 frame->loader().restoreScrollPositionAndViewState(); | 535 frame->loader().restoreScrollPositionAndViewState(); |
538 } | 536 } |
539 | 537 |
540 void ChromeClientImpl::deviceOrPageScaleFactorChanged() const | 538 void ChromeClientImpl::deviceOrPageScaleFactorChanged() const |
541 { | 539 { |
542 m_webView->deviceOrPageScaleFactorChanged(); | 540 m_webView->deviceOrPageScaleFactorChanged(); |
543 } | 541 } |
544 | 542 |
545 void ChromeClientImpl::layoutUpdated(LocalFrame* frame) const | 543 void ChromeClientImpl::layoutUpdated(LocalFrame* frame) const |
(...skipping 357 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
903 { | 901 { |
904 return static_cast<NavigatorContentUtilsClient::CustomHandlersState>(m_webVi
ew->client()->isProtocolHandlerRegistered(scheme, baseURL, url)); | 902 return static_cast<NavigatorContentUtilsClient::CustomHandlersState>(m_webVi
ew->client()->isProtocolHandlerRegistered(scheme, baseURL, url)); |
905 } | 903 } |
906 | 904 |
907 void NavigatorContentUtilsClientImpl::unregisterProtocolHandler(const String& sc
heme, const WebCore::KURL& baseURL, const WebCore::KURL& url) | 905 void NavigatorContentUtilsClientImpl::unregisterProtocolHandler(const String& sc
heme, const WebCore::KURL& baseURL, const WebCore::KURL& url) |
908 { | 906 { |
909 m_webView->client()->unregisterProtocolHandler(scheme, baseURL, url); | 907 m_webView->client()->unregisterProtocolHandler(scheme, baseURL, url); |
910 } | 908 } |
911 | 909 |
912 } // namespace blink | 910 } // namespace blink |
OLD | NEW |