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

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

Issue 322793004: Content size notification was only used for the Mac overlay navigation code, which no longer needs … (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
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
« no previous file with comments | « no previous file | public/web/WebFrameClient.h » ('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 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
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
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
OLDNEW
« no previous file with comments | « no previous file | public/web/WebFrameClient.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698