Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(148)

Side by Side Diff: third_party/WebKit/Source/web/WebViewImpl.cpp

Issue 2796473002: Split TextCheckerClientImpl off SpellCheckerClientImpl (Closed)
Patch Set: Remove explicit Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « third_party/WebKit/Source/web/WebViewImpl.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/web/WebViewImpl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698