| 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 290 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 301 | 301 |
| 302 void ChromeClientImpl::show(NavigationPolicy navigationPolicy) | 302 void ChromeClientImpl::show(NavigationPolicy navigationPolicy) |
| 303 { | 303 { |
| 304 if (!m_webView->client()) | 304 if (!m_webView->client()) |
| 305 return; | 305 return; |
| 306 | 306 |
| 307 WebNavigationPolicy policy = effectiveNavigationPolicy(navigationPolicy, m_w
indowFeatures); | 307 WebNavigationPolicy policy = effectiveNavigationPolicy(navigationPolicy, m_w
indowFeatures); |
| 308 m_webView->client()->show(policy); | 308 m_webView->client()->show(policy); |
| 309 } | 309 } |
| 310 | 310 |
| 311 void ChromeClientImpl::didOverscroll(const FloatSize& unusedDelta, const FloatSi
ze& accumulatedRootOverScroll, const FloatPoint& position, const FloatSize& velo
city) |
| 312 { |
| 313 if (!m_webView->client()) |
| 314 return; |
| 315 |
| 316 m_webView->client()->didOverscroll(unusedDelta, accumulatedRootOverScroll, p
osition, velocity); |
| 317 } |
| 318 |
| 311 void ChromeClientImpl::setToolbarsVisible(bool value) | 319 void ChromeClientImpl::setToolbarsVisible(bool value) |
| 312 { | 320 { |
| 313 m_windowFeatures.toolBarVisible = value; | 321 m_windowFeatures.toolBarVisible = value; |
| 314 } | 322 } |
| 315 | 323 |
| 316 bool ChromeClientImpl::toolbarsVisible() | 324 bool ChromeClientImpl::toolbarsVisible() |
| 317 { | 325 { |
| 318 return m_windowFeatures.toolBarVisible; | 326 return m_windowFeatures.toolBarVisible; |
| 319 } | 327 } |
| 320 | 328 |
| (...skipping 631 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 952 } | 960 } |
| 953 | 961 |
| 954 void ChromeClientImpl::notifyPopupOpeningObservers() const | 962 void ChromeClientImpl::notifyPopupOpeningObservers() const |
| 955 { | 963 { |
| 956 const Vector<PopupOpeningObserver*> observers(m_popupOpeningObservers); | 964 const Vector<PopupOpeningObserver*> observers(m_popupOpeningObservers); |
| 957 for (size_t i = 0; i < observers.size(); ++i) | 965 for (size_t i = 0; i < observers.size(); ++i) |
| 958 observers[i]->willOpenPopup(); | 966 observers[i]->willOpenPopup(); |
| 959 } | 967 } |
| 960 | 968 |
| 961 } // namespace blink | 969 } // namespace blink |
| OLD | NEW |