| 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 324 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 335 return allInstances; | 335 return allInstances; |
| 336 } | 336 } |
| 337 | 337 |
| 338 WebViewImpl::WebViewImpl(WebViewClient* client, | 338 WebViewImpl::WebViewImpl(WebViewClient* client, |
| 339 WebPageVisibilityState visibilityState) | 339 WebPageVisibilityState visibilityState) |
| 340 : m_client(client), | 340 : m_client(client), |
| 341 m_spellCheckClient(nullptr), | 341 m_spellCheckClient(nullptr), |
| 342 m_chromeClientImpl(ChromeClientImpl::create(this)), | 342 m_chromeClientImpl(ChromeClientImpl::create(this)), |
| 343 m_contextMenuClientImpl(this), | 343 m_contextMenuClientImpl(this), |
| 344 m_editorClientImpl(this), | 344 m_editorClientImpl(this), |
| 345 m_spellCheckerClientImpl(this), | 345 m_textCheckerClientImpl(this), |
| 346 m_spellCheckerClientImpl(this, &m_textCheckerClientImpl), |
| 346 m_storageClientImpl(this), | 347 m_storageClientImpl(this), |
| 347 m_shouldAutoResize(false), | 348 m_shouldAutoResize(false), |
| 348 m_zoomLevel(0), | 349 m_zoomLevel(0), |
| 349 m_minimumZoomLevel(zoomFactorToZoomLevel(minTextSizeMultiplier)), | 350 m_minimumZoomLevel(zoomFactorToZoomLevel(minTextSizeMultiplier)), |
| 350 m_maximumZoomLevel(zoomFactorToZoomLevel(maxTextSizeMultiplier)), | 351 m_maximumZoomLevel(zoomFactorToZoomLevel(maxTextSizeMultiplier)), |
| 351 m_zoomFactorForDeviceScaleFactor(0.f), | 352 m_zoomFactorForDeviceScaleFactor(0.f), |
| 352 m_maximumLegibleScale(1), | 353 m_maximumLegibleScale(1), |
| 353 m_doubleTapZoomPageScaleFactor(0), | 354 m_doubleTapZoomPageScaleFactor(0), |
| 354 m_doubleTapZoomPending(false), | 355 m_doubleTapZoomPending(false), |
| 355 m_enableFakePageScaleAnimationForTesting(false), | 356 m_enableFakePageScaleAnimationForTesting(false), |
| (...skipping 3810 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4166 if (focusedFrame->localFrameRoot() != mainFrameImpl()->frame()) | 4167 if (focusedFrame->localFrameRoot() != mainFrameImpl()->frame()) |
| 4167 return nullptr; | 4168 return nullptr; |
| 4168 return focusedFrame; | 4169 return focusedFrame; |
| 4169 } | 4170 } |
| 4170 | 4171 |
| 4171 LocalFrame* WebViewImpl::focusedLocalFrameAvailableForIme() const { | 4172 LocalFrame* WebViewImpl::focusedLocalFrameAvailableForIme() const { |
| 4172 return m_imeAcceptEvents ? focusedLocalFrameInWidget() : nullptr; | 4173 return m_imeAcceptEvents ? focusedLocalFrameInWidget() : nullptr; |
| 4173 } | 4174 } |
| 4174 | 4175 |
| 4175 } // namespace blink | 4176 } // namespace blink |
| OLD | NEW |