| 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 941 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 952 return treeView->haveScrollEventHandlers(); | 952 return treeView->haveScrollEventHandlers(); |
| 953 return false; | 953 return false; |
| 954 } | 954 } |
| 955 | 955 |
| 956 void ChromeClientImpl::setTouchAction(TouchAction touchAction) | 956 void ChromeClientImpl::setTouchAction(TouchAction touchAction) |
| 957 { | 957 { |
| 958 if (WebViewClient* client = m_webView->client()) | 958 if (WebViewClient* client = m_webView->client()) |
| 959 client->setTouchAction(static_cast<WebTouchAction>(touchAction)); | 959 client->setTouchAction(static_cast<WebTouchAction>(touchAction)); |
| 960 } | 960 } |
| 961 | 961 |
| 962 bool ChromeClientImpl::requestPointerLock() | 962 bool ChromeClientImpl::requestPointerLock(LocalFrame* frame) |
| 963 { | 963 { |
| 964 return m_webView->requestPointerLock(); | 964 LocalFrame* localRoot = frame->localFrameRoot(); |
| 965 return WebLocalFrameImpl::fromFrame(localRoot)->frameWidget()->client()->req
uestPointerLock(); |
| 965 } | 966 } |
| 966 | 967 |
| 967 void ChromeClientImpl::requestPointerUnlock() | 968 void ChromeClientImpl::requestPointerUnlock(LocalFrame* frame) |
| 968 { | 969 { |
| 969 return m_webView->requestPointerUnlock(); | 970 LocalFrame* localRoot = frame->localFrameRoot(); |
| 971 return WebLocalFrameImpl::fromFrame(localRoot)->frameWidget()->client()->req
uestPointerUnlock(); |
| 970 } | 972 } |
| 971 | 973 |
| 972 void ChromeClientImpl::annotatedRegionsChanged() | 974 void ChromeClientImpl::annotatedRegionsChanged() |
| 973 { | 975 { |
| 974 if (WebViewClient* client = m_webView->client()) | 976 if (WebViewClient* client = m_webView->client()) |
| 975 client->draggableRegionsChanged(); | 977 client->draggableRegionsChanged(); |
| 976 } | 978 } |
| 977 | 979 |
| 978 void ChromeClientImpl::didAssociateFormControls(const HeapVector<Member<Element>
>& elements, LocalFrame* frame) | 980 void ChromeClientImpl::didAssociateFormControls(const HeapVector<Member<Element>
>& elements, LocalFrame* frame) |
| 979 { | 981 { |
| (...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1115 { | 1117 { |
| 1116 return adoptPtr(m_webView->scheduler()->createFrameScheduler(blameContext).r
elease()); | 1118 return adoptPtr(m_webView->scheduler()->createFrameScheduler(blameContext).r
elease()); |
| 1117 } | 1119 } |
| 1118 | 1120 |
| 1119 double ChromeClientImpl::lastFrameTimeMonotonic() const | 1121 double ChromeClientImpl::lastFrameTimeMonotonic() const |
| 1120 { | 1122 { |
| 1121 return m_webView->lastFrameTimeMonotonic(); | 1123 return m_webView->lastFrameTimeMonotonic(); |
| 1122 } | 1124 } |
| 1123 | 1125 |
| 1124 } // namespace blink | 1126 } // namespace blink |
| OLD | NEW |