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