| 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 194 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 205 if (toNode && toNode->isElementNode() && toElement(toNode)->isLiveLink() &&
toNode->shouldHaveFocusAppearance()) | 205 if (toNode && toNode->isElementNode() && toElement(toNode)->isLiveLink() &&
toNode->shouldHaveFocusAppearance()) |
| 206 focusURL = toElement(toNode)->hrefURL(); | 206 focusURL = toElement(toNode)->hrefURL(); |
| 207 m_webView->client()->setKeyboardFocusURL(focusURL); | 207 m_webView->client()->setKeyboardFocusURL(focusURL); |
| 208 } | 208 } |
| 209 | 209 |
| 210 void ChromeClientImpl::focusedFrameChanged(LocalFrame* frame) | 210 void ChromeClientImpl::focusedFrameChanged(LocalFrame* frame) |
| 211 { | 211 { |
| 212 WebLocalFrameImpl* webframe = WebLocalFrameImpl::fromFrame(frame); | 212 WebLocalFrameImpl* webframe = WebLocalFrameImpl::fromFrame(frame); |
| 213 if (webframe && webframe->client()) | 213 if (webframe && webframe->client()) |
| 214 webframe->client()->frameFocused(); | 214 webframe->client()->frameFocused(); |
| 215 |
| 216 m_webView->client()->focusedFrameChanged(); |
| 215 } | 217 } |
| 216 | 218 |
| 217 bool ChromeClientImpl::hadFormInteraction() const | 219 bool ChromeClientImpl::hadFormInteraction() const |
| 218 { | 220 { |
| 219 return m_webView->pageImportanceSignals() && m_webView->pageImportanceSignal
s()->hadFormInteraction(); | 221 return m_webView->pageImportanceSignals() && m_webView->pageImportanceSignal
s()->hadFormInteraction(); |
| 220 } | 222 } |
| 221 | 223 |
| 222 namespace { | 224 namespace { |
| 223 | 225 |
| 224 void updatePolicyForEvent(const WebInputEvent* inputEvent, NavigationPolicy* pol
icy) | 226 void updatePolicyForEvent(const WebInputEvent* inputEvent, NavigationPolicy* pol
icy) |
| (...skipping 782 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1007 return m_webView->elasticOverscroll(); | 1009 return m_webView->elasticOverscroll(); |
| 1008 } | 1010 } |
| 1009 | 1011 |
| 1010 void ChromeClientImpl::didObserveNonGetFetchFromScript() const | 1012 void ChromeClientImpl::didObserveNonGetFetchFromScript() const |
| 1011 { | 1013 { |
| 1012 if (m_webView->pageImportanceSignals()) | 1014 if (m_webView->pageImportanceSignals()) |
| 1013 m_webView->pageImportanceSignals()->setIssuedNonGetFetchFromScript(); | 1015 m_webView->pageImportanceSignals()->setIssuedNonGetFetchFromScript(); |
| 1014 } | 1016 } |
| 1015 | 1017 |
| 1016 } // namespace blink | 1018 } // namespace blink |
| OLD | NEW |