| 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 273 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 284 return; | 284 return; |
| 285 | 285 |
| 286 WebNavigationPolicy policy = static_cast<WebNavigationPolicy>(navigationPoli
cy); | 286 WebNavigationPolicy policy = static_cast<WebNavigationPolicy>(navigationPoli
cy); |
| 287 if (policy == WebNavigationPolicyIgnore) | 287 if (policy == WebNavigationPolicyIgnore) |
| 288 policy = getNavigationPolicy(m_windowFeatures); | 288 policy = getNavigationPolicy(m_windowFeatures); |
| 289 else if (policy == WebNavigationPolicyNewBackgroundTab && getNavigationPolic
y(m_windowFeatures) != WebNavigationPolicyNewBackgroundTab) | 289 else if (policy == WebNavigationPolicyNewBackgroundTab && getNavigationPolic
y(m_windowFeatures) != WebNavigationPolicyNewBackgroundTab) |
| 290 policy = WebNavigationPolicyNewForegroundTab; | 290 policy = WebNavigationPolicyNewForegroundTab; |
| 291 m_webView->client()->show(policy); | 291 m_webView->client()->show(policy); |
| 292 } | 292 } |
| 293 | 293 |
| 294 void ChromeClientImpl::didOverscroll(const FloatSize& unusedDelta, const FloatSi
ze& accumulatedRootOverScroll, const FloatPoint& position, const FloatSize& velo
city) |
| 295 { |
| 296 if (!m_webView->client()) |
| 297 return; |
| 298 |
| 299 m_webView->client()->didOverscroll(unusedDelta, accumulatedRootOverScroll, p
osition, velocity); |
| 300 } |
| 301 |
| 294 void ChromeClientImpl::setToolbarsVisible(bool value) | 302 void ChromeClientImpl::setToolbarsVisible(bool value) |
| 295 { | 303 { |
| 296 m_windowFeatures.toolBarVisible = value; | 304 m_windowFeatures.toolBarVisible = value; |
| 297 } | 305 } |
| 298 | 306 |
| 299 bool ChromeClientImpl::toolbarsVisible() | 307 bool ChromeClientImpl::toolbarsVisible() |
| 300 { | 308 { |
| 301 return m_windowFeatures.toolBarVisible; | 309 return m_windowFeatures.toolBarVisible; |
| 302 } | 310 } |
| 303 | 311 |
| (...skipping 605 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 909 if (m_webView->rootGraphicsLayer() && m_webView->layerTreeView()) | 917 if (m_webView->rootGraphicsLayer() && m_webView->layerTreeView()) |
| 910 m_webView->page()->frameHost().pinchViewport().registerLayersWithTreeVie
w(m_webView->layerTreeView()); | 918 m_webView->page()->frameHost().pinchViewport().registerLayersWithTreeVie
w(m_webView->layerTreeView()); |
| 911 } | 919 } |
| 912 | 920 |
| 913 void ChromeClientImpl::didUpdateTopControls() const | 921 void ChromeClientImpl::didUpdateTopControls() const |
| 914 { | 922 { |
| 915 m_webView->didUpdateTopControls(); | 923 m_webView->didUpdateTopControls(); |
| 916 } | 924 } |
| 917 | 925 |
| 918 } // namespace blink | 926 } // namespace blink |
| OLD | NEW |