Chromium Code Reviews| 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 932 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 943 void ChromeClientImpl::numWheelEventHandlersChanged(unsigned numberOfWheelHandle rs) | 943 void ChromeClientImpl::numWheelEventHandlersChanged(unsigned numberOfWheelHandle rs) |
| 944 { | 944 { |
| 945 m_webView->numberOfWheelEventHandlersChanged(numberOfWheelHandlers); | 945 m_webView->numberOfWheelEventHandlersChanged(numberOfWheelHandlers); |
| 946 } | 946 } |
| 947 | 947 |
| 948 void ChromeClientImpl::needTouchEvents(bool needsTouchEvents) | 948 void ChromeClientImpl::needTouchEvents(bool needsTouchEvents) |
| 949 { | 949 { |
| 950 m_webView->hasTouchEventHandlers(needsTouchEvents); | 950 m_webView->hasTouchEventHandlers(needsTouchEvents); |
| 951 } | 951 } |
| 952 | 952 |
| 953 void ChromeClientImpl::setTouchAction(int touchId, TouchAction touchAction) | |
| 954 { | |
| 955 WebViewClient* client = m_webView->client(); | |
| 956 if (client) { | |
| 957 WebWidgetClient::TouchAction webTouchAction; | |
| 958 switch (touchAction) { | |
| 959 case TouchActionNone: | |
| 960 webTouchAction = WebWidgetClient::TouchActionNone; | |
| 961 break; | |
| 962 case TouchActionAuto: | |
| 963 webTouchAction = WebWidgetClient::TouchActionAuto; | |
| 964 break; | |
| 965 default: | |
| 966 ASSERT_NOT_REACHED(); | |
| 967 webTouchAction = WebWidgetClient::TouchActionAuto; | |
| 968 } | |
| 969 | |
| 970 client->setTouchAction(touchId, webTouchAction); | |
|
abarth-chromium
2013/11/18 21:16:59
Usually we just use a static_cast and COMPILE_ASSE
Rick Byers
2013/11/19 21:24:21
Done.
| |
| 971 } | |
| 972 } | |
| 973 | |
| 953 bool ChromeClientImpl::requestPointerLock() | 974 bool ChromeClientImpl::requestPointerLock() |
| 954 { | 975 { |
| 955 return m_webView->requestPointerLock(); | 976 return m_webView->requestPointerLock(); |
| 956 } | 977 } |
| 957 | 978 |
| 958 void ChromeClientImpl::requestPointerUnlock() | 979 void ChromeClientImpl::requestPointerUnlock() |
| 959 { | 980 { |
| 960 return m_webView->requestPointerUnlock(); | 981 return m_webView->requestPointerUnlock(); |
| 961 } | 982 } |
| 962 | 983 |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 994 { | 1015 { |
| 995 } | 1016 } |
| 996 | 1017 |
| 997 void NavigatorContentUtilsClientImpl::registerProtocolHandler(const String& sche me, const String& baseURL, const String& url, const String& title) | 1018 void NavigatorContentUtilsClientImpl::registerProtocolHandler(const String& sche me, const String& baseURL, const String& url, const String& title) |
| 998 { | 1019 { |
| 999 m_webView->client()->registerProtocolHandler(scheme, baseURL, url, title); | 1020 m_webView->client()->registerProtocolHandler(scheme, baseURL, url, title); |
| 1000 } | 1021 } |
| 1001 #endif | 1022 #endif |
| 1002 | 1023 |
| 1003 } // namespace blink | 1024 } // namespace blink |
| OLD | NEW |