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 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
173 // the web page, the window has no border. | 173 // the web page, the window has no border. |
174 return windowRect(); | 174 return windowRect(); |
175 } | 175 } |
176 | 176 |
177 void ChromeClientImpl::focus() | 177 void ChromeClientImpl::focus() |
178 { | 178 { |
179 if (m_webView->client()) | 179 if (m_webView->client()) |
180 m_webView->client()->didFocus(); | 180 m_webView->client()->didFocus(); |
181 } | 181 } |
182 | 182 |
183 bool ChromeClientImpl::canTakeFocus(FocusType) | 183 bool ChromeClientImpl::canTakeFocus(WebFocusType) |
184 { | 184 { |
185 // For now the browser can always take focus if we're not running layout | 185 // For now the browser can always take focus if we're not running layout |
186 // tests. | 186 // tests. |
187 return !layoutTestMode(); | 187 return !layoutTestMode(); |
188 } | 188 } |
189 | 189 |
190 void ChromeClientImpl::takeFocus(FocusType type) | 190 void ChromeClientImpl::takeFocus(WebFocusType type) |
191 { | 191 { |
192 if (!m_webView->client()) | 192 if (!m_webView->client()) |
193 return; | 193 return; |
194 if (type == FocusTypeBackward) | 194 if (type == WebFocusTypeBackward) |
195 m_webView->client()->focusPrevious(); | 195 m_webView->client()->focusPrevious(); |
196 else | 196 else |
197 m_webView->client()->focusNext(); | 197 m_webView->client()->focusNext(); |
198 } | 198 } |
199 | 199 |
200 void ChromeClientImpl::focusedNodeChanged(Node* node) | 200 void ChromeClientImpl::focusedNodeChanged(Node* node) |
201 { | 201 { |
202 m_webView->client()->focusedNodeChanged(WebNode(node)); | 202 m_webView->client()->focusedNodeChanged(WebNode(node)); |
203 | 203 |
204 WebURL focusURL; | 204 WebURL focusURL; |
(...skipping 676 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
881 webframe->autofillClient()->dataListOptionsChanged(WebInputElement(&inpu
t)); | 881 webframe->autofillClient()->dataListOptionsChanged(WebInputElement(&inpu
t)); |
882 } | 882 } |
883 | 883 |
884 void ChromeClientImpl::registerViewportLayers() const | 884 void ChromeClientImpl::registerViewportLayers() const |
885 { | 885 { |
886 if (m_webView->rootGraphicsLayer() && m_webView->layerTreeView() && m_webVie
w->pinchVirtualViewportEnabled()) | 886 if (m_webView->rootGraphicsLayer() && m_webView->layerTreeView() && m_webVie
w->pinchVirtualViewportEnabled()) |
887 m_webView->page()->frameHost().pinchViewport().registerLayersWithTreeVie
w(m_webView->layerTreeView()); | 887 m_webView->page()->frameHost().pinchViewport().registerLayersWithTreeVie
w(m_webView->layerTreeView()); |
888 } | 888 } |
889 | 889 |
890 } // namespace blink | 890 } // namespace blink |
OLD | NEW |