Commit 389ab3f2 authored by Chris Lu's avatar Chris Lu Committed by Commit Bot

[ios] Create FindInPageManager in CRWWebController

Creates an instance of FindInPageManager for every WebState.

Bug: 919685
Change-Id: I17f3fe7f10268c586e7aca2dbe1f0a5e3d65cc8f
Reviewed-on: https://chromium-review.googlesource.com/c/1450624
Commit-Queue: Chris Lu <thegreenfrog@chromium.org>
Reviewed-by: default avatarMike Dougherty <michaeldo@chromium.org>
Reviewed-by: default avatarEugene But <eugenebut@chromium.org>
Cr-Commit-Position: refs/heads/master@{#628581}
parent 9beff323
...@@ -14,6 +14,7 @@ source_set("ui") { ...@@ -14,6 +14,7 @@ source_set("ui") {
"//base", "//base",
"//ios/net", "//ios/net",
"//ios/web:core", "//ios/web:core",
"//ios/web/find_in_page",
"//ios/web/interstitials", "//ios/web/interstitials",
"//ios/web/navigation", "//ios/web/navigation",
"//ios/web/navigation:core", "//ios/web/navigation:core",
......
...@@ -40,6 +40,7 @@ ...@@ -40,6 +40,7 @@
#include "base/values.h" #include "base/values.h"
#include "crypto/symmetric_key.h" #include "crypto/symmetric_key.h"
#import "ios/net/http_response_headers_util.h" #import "ios/net/http_response_headers_util.h"
#import "ios/web/find_in_page/find_in_page_manager_impl.h"
#include "ios/web/history_state_util.h" #include "ios/web/history_state_util.h"
#import "ios/web/interstitials/web_interstitial_impl.h" #import "ios/web/interstitials/web_interstitial_impl.h"
#import "ios/web/navigation/crw_navigation_item_holder.h" #import "ios/web/navigation/crw_navigation_item_holder.h"
...@@ -958,6 +959,7 @@ GURL URLEscapedForHistory(const GURL& url) { ...@@ -958,6 +959,7 @@ GURL URLEscapedForHistory(const GURL& url) {
std::make_unique<CertVerificationErrorsCacheType>(kMaxCertErrorsCount); std::make_unique<CertVerificationErrorsCacheType>(kMaxCertErrorsCount);
_navigationStates = [[CRWWKNavigationStates alloc] init]; _navigationStates = [[CRWWKNavigationStates alloc] init];
web::WebFramesManagerImpl::CreateForWebState(_webStateImpl); web::WebFramesManagerImpl::CreateForWebState(_webStateImpl);
web::FindInPageManagerImpl::CreateForWebState(_webStateImpl);
[[NSNotificationCenter defaultCenter] [[NSNotificationCenter defaultCenter]
addObserver:self addObserver:self
selector:@selector(orientationDidChange) selector:@selector(orientationDidChange)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment