| 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 289 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 300 | 300 |
| 301 void ChromeClientImpl::show(NavigationPolicy navigationPolicy) | 301 void ChromeClientImpl::show(NavigationPolicy navigationPolicy) |
| 302 { | 302 { |
| 303 if (!m_webView->client()) | 303 if (!m_webView->client()) |
| 304 return; | 304 return; |
| 305 | 305 |
| 306 WebNavigationPolicy policy = effectiveNavigationPolicy(navigationPolicy, m_w
indowFeatures); | 306 WebNavigationPolicy policy = effectiveNavigationPolicy(navigationPolicy, m_w
indowFeatures); |
| 307 m_webView->client()->show(policy); | 307 m_webView->client()->show(policy); |
| 308 } | 308 } |
| 309 | 309 |
| 310 void ChromeClientImpl::didOverscroll(const FloatSize& unusedDelta, const FloatSi
ze& accumulatedRootOverScroll, const FloatPoint& position, const FloatSize& velo
city) |
| 311 { |
| 312 if (!m_webView->client()) |
| 313 return; |
| 314 |
| 315 m_webView->client()->didOverscroll(unusedDelta, accumulatedRootOverScroll, p
osition, velocity); |
| 316 } |
| 317 |
| 310 void ChromeClientImpl::setToolbarsVisible(bool value) | 318 void ChromeClientImpl::setToolbarsVisible(bool value) |
| 311 { | 319 { |
| 312 m_windowFeatures.toolBarVisible = value; | 320 m_windowFeatures.toolBarVisible = value; |
| 313 } | 321 } |
| 314 | 322 |
| 315 bool ChromeClientImpl::toolbarsVisible() | 323 bool ChromeClientImpl::toolbarsVisible() |
| 316 { | 324 { |
| 317 return m_windowFeatures.toolBarVisible; | 325 return m_windowFeatures.toolBarVisible; |
| 318 } | 326 } |
| 319 | 327 |
| (...skipping 605 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 925 if (m_webView->rootGraphicsLayer() && m_webView->layerTreeView()) | 933 if (m_webView->rootGraphicsLayer() && m_webView->layerTreeView()) |
| 926 m_webView->page()->frameHost().pinchViewport().registerLayersWithTreeVie
w(m_webView->layerTreeView()); | 934 m_webView->page()->frameHost().pinchViewport().registerLayersWithTreeVie
w(m_webView->layerTreeView()); |
| 927 } | 935 } |
| 928 | 936 |
| 929 void ChromeClientImpl::didUpdateTopControls() const | 937 void ChromeClientImpl::didUpdateTopControls() const |
| 930 { | 938 { |
| 931 m_webView->didUpdateTopControls(); | 939 m_webView->didUpdateTopControls(); |
| 932 } | 940 } |
| 933 | 941 |
| 934 } // namespace blink | 942 } // namespace blink |
| OLD | NEW |