| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2011, 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2011, 2012 Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 311 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 322 WebPrerendererClient* prerendererClient) { | 322 WebPrerendererClient* prerendererClient) { |
| 323 DCHECK(m_page); | 323 DCHECK(m_page); |
| 324 providePrerendererClientTo( | 324 providePrerendererClientTo( |
| 325 *m_page, new PrerendererClientImpl(*m_page, prerendererClient)); | 325 *m_page, new PrerendererClientImpl(*m_page, prerendererClient)); |
| 326 } | 326 } |
| 327 | 327 |
| 328 void WebViewImpl::setSpellCheckClient(WebSpellCheckClient* spellCheckClient) { | 328 void WebViewImpl::setSpellCheckClient(WebSpellCheckClient* spellCheckClient) { |
| 329 m_spellCheckClient = spellCheckClient; | 329 m_spellCheckClient = spellCheckClient; |
| 330 } | 330 } |
| 331 | 331 |
| 332 void WebViewImpl::setTextCheckClient(WebTextCheckClient* textCheckClient) { | |
| 333 m_textCheckClient = textCheckClient; | |
| 334 } | |
| 335 | |
| 336 // static | 332 // static |
| 337 HashSet<WebViewImpl*>& WebViewImpl::allInstances() { | 333 HashSet<WebViewImpl*>& WebViewImpl::allInstances() { |
| 338 DEFINE_STATIC_LOCAL(HashSet<WebViewImpl*>, allInstances, ()); | 334 DEFINE_STATIC_LOCAL(HashSet<WebViewImpl*>, allInstances, ()); |
| 339 return allInstances; | 335 return allInstances; |
| 340 } | 336 } |
| 341 | 337 |
| 342 WebViewImpl::WebViewImpl(WebViewClient* client, | 338 WebViewImpl::WebViewImpl(WebViewClient* client, |
| 343 WebPageVisibilityState visibilityState) | 339 WebPageVisibilityState visibilityState) |
| 344 : m_client(client), | 340 : m_client(client), |
| 345 m_spellCheckClient(nullptr), | 341 m_spellCheckClient(nullptr), |
| 346 m_textCheckClient(nullptr), | |
| 347 m_chromeClientImpl(ChromeClientImpl::create(this)), | 342 m_chromeClientImpl(ChromeClientImpl::create(this)), |
| 348 m_contextMenuClientImpl(this), | 343 m_contextMenuClientImpl(this), |
| 349 m_editorClientImpl(this), | 344 m_editorClientImpl(this), |
| 350 m_spellCheckerClientImpl(this), | 345 m_spellCheckerClientImpl(this), |
| 351 m_storageClientImpl(this), | 346 m_storageClientImpl(this), |
| 352 m_shouldAutoResize(false), | 347 m_shouldAutoResize(false), |
| 353 m_zoomLevel(0), | 348 m_zoomLevel(0), |
| 354 m_minimumZoomLevel(zoomFactorToZoomLevel(minTextSizeMultiplier)), | 349 m_minimumZoomLevel(zoomFactorToZoomLevel(minTextSizeMultiplier)), |
| 355 m_maximumZoomLevel(zoomFactorToZoomLevel(maxTextSizeMultiplier)), | 350 m_maximumZoomLevel(zoomFactorToZoomLevel(maxTextSizeMultiplier)), |
| 356 m_zoomFactorForDeviceScaleFactor(0.f), | 351 m_zoomFactorForDeviceScaleFactor(0.f), |
| (...skipping 3875 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4232 if (focusedFrame->localFrameRoot() != mainFrameImpl()->frame()) | 4227 if (focusedFrame->localFrameRoot() != mainFrameImpl()->frame()) |
| 4233 return nullptr; | 4228 return nullptr; |
| 4234 return focusedFrame; | 4229 return focusedFrame; |
| 4235 } | 4230 } |
| 4236 | 4231 |
| 4237 LocalFrame* WebViewImpl::focusedLocalFrameAvailableForIme() const { | 4232 LocalFrame* WebViewImpl::focusedLocalFrameAvailableForIme() const { |
| 4238 return m_imeAcceptEvents ? focusedLocalFrameInWidget() : nullptr; | 4233 return m_imeAcceptEvents ? focusedLocalFrameInWidget() : nullptr; |
| 4239 } | 4234 } |
| 4240 | 4235 |
| 4241 } // namespace blink | 4236 } // namespace blink |
| OLD | NEW |