| 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 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 122 return; | 122 return; |
| 123 if (type == FocusTypeBackward) | 123 if (type == FocusTypeBackward) |
| 124 m_webView->client()->focusPrevious(); | 124 m_webView->client()->focusPrevious(); |
| 125 else | 125 else |
| 126 m_webView->client()->focusNext(); | 126 m_webView->client()->focusNext(); |
| 127 } | 127 } |
| 128 | 128 |
| 129 void ChromeClientImpl::focusedNodeChanged(Node* node) | 129 void ChromeClientImpl::focusedNodeChanged(Node* node) |
| 130 { | 130 { |
| 131 m_webView->client()->focusedNodeChanged(WebNode(node)); | 131 m_webView->client()->focusedNodeChanged(WebNode(node)); |
| 132 | |
| 133 WebURL focusURL; | |
| 134 if (node && node->isElementNode() && toElement(node)->isLiveLink()) | |
| 135 focusURL = toElement(node)->hrefURL(); | |
| 136 m_webView->client()->setKeyboardFocusURL(focusURL); | |
| 137 } | 132 } |
| 138 | 133 |
| 139 void ChromeClientImpl::focusedFrameChanged(LocalFrame* frame) | 134 void ChromeClientImpl::focusedFrameChanged(LocalFrame* frame) |
| 140 { | 135 { |
| 141 WebLocalFrameImpl* webframe = WebLocalFrameImpl::fromFrame(frame); | 136 WebLocalFrameImpl* webframe = WebLocalFrameImpl::fromFrame(frame); |
| 142 if (webframe && webframe->client()) | 137 if (webframe && webframe->client()) |
| 143 webframe->client()->frameFocused(); | 138 webframe->client()->frameFocused(); |
| 144 } | 139 } |
| 145 | 140 |
| 146 WebNavigationPolicy ChromeClientImpl::getNavigationPolicy() | 141 WebNavigationPolicy ChromeClientImpl::getNavigationPolicy() |
| (...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 227 void ChromeClientImpl::setCursor(const WebCursorInfo& cursor) | 222 void ChromeClientImpl::setCursor(const WebCursorInfo& cursor) |
| 228 { | 223 { |
| 229 } | 224 } |
| 230 | 225 |
| 231 String ChromeClientImpl::acceptLanguages() | 226 String ChromeClientImpl::acceptLanguages() |
| 232 { | 227 { |
| 233 return m_webView->client()->acceptLanguages(); | 228 return m_webView->client()->acceptLanguages(); |
| 234 } | 229 } |
| 235 | 230 |
| 236 } // namespace blink | 231 } // namespace blink |
| OLD | NEW |