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 279 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
290 ASSERT(frame->document()); | 290 ASSERT(frame->document()); |
291 Fullscreen::fullyExitFullscreen(*frame->document()); | 291 Fullscreen::fullyExitFullscreen(*frame->document()); |
292 | 292 |
293 WebViewImpl* newView = toWebViewImpl( | 293 WebViewImpl* newView = toWebViewImpl( |
294 m_webView->client()->createView(WebLocalFrameImpl::fromFrame(frame), Wra
ppedResourceRequest(r.resourceRequest()), features, r.frameName(), policy, shoul
dSendReferrer == NeverSendReferrer)); | 294 m_webView->client()->createView(WebLocalFrameImpl::fromFrame(frame), Wra
ppedResourceRequest(r.resourceRequest()), features, r.frameName(), policy, shoul
dSendReferrer == NeverSendReferrer)); |
295 if (!newView) | 295 if (!newView) |
296 return nullptr; | 296 return nullptr; |
297 return newView->page(); | 297 return newView->page(); |
298 } | 298 } |
299 | 299 |
| 300 void ChromeClientImpl::didOverscroll(const FloatSize& unusedDelta, const FloatSi
ze& accumulatedRootOverScroll, const FloatPoint& position, const FloatSize& velo
city) |
| 301 { |
| 302 if (!m_webView->client()) |
| 303 return; |
| 304 |
| 305 m_webView->client()->didOverscroll(unusedDelta, accumulatedRootOverScroll, p
osition, velocity); |
| 306 } |
| 307 |
300 void ChromeClientImpl::show(NavigationPolicy navigationPolicy) | 308 void ChromeClientImpl::show(NavigationPolicy navigationPolicy) |
301 { | 309 { |
302 if (m_webView->client()) | 310 if (m_webView->client()) |
303 m_webView->client()->show(effectiveNavigationPolicy(navigationPolicy, m_
windowFeatures)); | 311 m_webView->client()->show(effectiveNavigationPolicy(navigationPolicy, m_
windowFeatures)); |
304 } | 312 } |
305 | 313 |
306 void ChromeClientImpl::setToolbarsVisible(bool value) | 314 void ChromeClientImpl::setToolbarsVisible(bool value) |
307 { | 315 { |
308 m_windowFeatures.toolBarVisible = value; | 316 m_windowFeatures.toolBarVisible = value; |
309 } | 317 } |
(...skipping 632 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
942 } | 950 } |
943 | 951 |
944 void ChromeClientImpl::notifyPopupOpeningObservers() const | 952 void ChromeClientImpl::notifyPopupOpeningObservers() const |
945 { | 953 { |
946 const Vector<PopupOpeningObserver*> observers(m_popupOpeningObservers); | 954 const Vector<PopupOpeningObserver*> observers(m_popupOpeningObservers); |
947 for (const auto& observer : observers) | 955 for (const auto& observer : observers) |
948 observer->willOpenPopup(); | 956 observer->willOpenPopup(); |
949 } | 957 } |
950 | 958 |
951 } // namespace blink | 959 } // namespace blink |
OLD | NEW |