| 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 329 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 340 } | 340 } |
| 341 | 341 |
| 342 WebViewImpl::WebViewImpl(WebViewClient* client, | 342 WebViewImpl::WebViewImpl(WebViewClient* client, |
| 343 WebPageVisibilityState visibilityState) | 343 WebPageVisibilityState visibilityState) |
| 344 : m_client(client), | 344 : m_client(client), |
| 345 m_spellCheckClient(nullptr), | 345 m_spellCheckClient(nullptr), |
| 346 m_textCheckClient(nullptr), | 346 m_textCheckClient(nullptr), |
| 347 m_chromeClientImpl(ChromeClientImpl::create(this)), | 347 m_chromeClientImpl(ChromeClientImpl::create(this)), |
| 348 m_contextMenuClientImpl(this), | 348 m_contextMenuClientImpl(this), |
| 349 m_editorClientImpl(this), | 349 m_editorClientImpl(this), |
| 350 m_textCheckerClientImpl(this), | 350 m_spellCheckerClientImpl(this), |
| 351 m_spellCheckerClientImpl(this, &m_textCheckerClientImpl), | |
| 352 m_storageClientImpl(this), | 351 m_storageClientImpl(this), |
| 353 m_shouldAutoResize(false), | 352 m_shouldAutoResize(false), |
| 354 m_zoomLevel(0), | 353 m_zoomLevel(0), |
| 355 m_minimumZoomLevel(zoomFactorToZoomLevel(minTextSizeMultiplier)), | 354 m_minimumZoomLevel(zoomFactorToZoomLevel(minTextSizeMultiplier)), |
| 356 m_maximumZoomLevel(zoomFactorToZoomLevel(maxTextSizeMultiplier)), | 355 m_maximumZoomLevel(zoomFactorToZoomLevel(maxTextSizeMultiplier)), |
| 357 m_zoomFactorForDeviceScaleFactor(0.f), | 356 m_zoomFactorForDeviceScaleFactor(0.f), |
| 358 m_maximumLegibleScale(1), | 357 m_maximumLegibleScale(1), |
| 359 m_doubleTapZoomPageScaleFactor(0), | 358 m_doubleTapZoomPageScaleFactor(0), |
| 360 m_doubleTapZoomPending(false), | 359 m_doubleTapZoomPending(false), |
| 361 m_enableFakePageScaleAnimationForTesting(false), | 360 m_enableFakePageScaleAnimationForTesting(false), |
| (...skipping 3869 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4231 if (focusedFrame->localFrameRoot() != mainFrameImpl()->frame()) | 4230 if (focusedFrame->localFrameRoot() != mainFrameImpl()->frame()) |
| 4232 return nullptr; | 4231 return nullptr; |
| 4233 return focusedFrame; | 4232 return focusedFrame; |
| 4234 } | 4233 } |
| 4235 | 4234 |
| 4236 LocalFrame* WebViewImpl::focusedLocalFrameAvailableForIme() const { | 4235 LocalFrame* WebViewImpl::focusedLocalFrameAvailableForIme() const { |
| 4237 return m_imeAcceptEvents ? focusedLocalFrameInWidget() : nullptr; | 4236 return m_imeAcceptEvents ? focusedLocalFrameInWidget() : nullptr; |
| 4238 } | 4237 } |
| 4239 | 4238 |
| 4240 } // namespace blink | 4239 } // namespace blink |
| OLD | NEW |