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

Side by Side Diff: ios/web/web_state/ui/crw_web_controller.mm

Issue 2454773002: asdf (Closed)
Patch Set: rebase Created 4 years, 1 month 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 | « no previous file | 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 // Copyright 2012 The Chromium Authors. All rights reserved. 1 // Copyright 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #import "ios/web/web_state/ui/crw_web_controller.h" 5 #import "ios/web/web_state/ui/crw_web_controller.h"
6 6
7 #import <WebKit/WebKit.h> 7 #import <WebKit/WebKit.h>
8 8
9 #import <objc/runtime.h> 9 #import <objc/runtime.h>
10 #include <stddef.h> 10 #include <stddef.h>
(...skipping 1084 matching lines...) Expand 10 before | Expand all | Expand 10 after
1095 [self.nativeController setDelegate:self]; 1095 [self.nativeController setDelegate:self];
1096 else 1096 else
1097 [self.nativeController setDelegate:nil]; 1097 [self.nativeController setDelegate:nil];
1098 } 1098 }
1099 } 1099 }
1100 1100
1101 - (void)dealloc { 1101 - (void)dealloc {
1102 DCHECK([NSThread isMainThread]); 1102 DCHECK([NSThread isMainThread]);
1103 DCHECK(_isBeingDestroyed); // 'close' must have been called already. 1103 DCHECK(_isBeingDestroyed); // 'close' must have been called already.
1104 DCHECK(!_webView); 1104 DCHECK(!_webView);
1105 [_containerView setDelegate:nil];
1106 _touchTrackingRecognizer.get().touchTrackingDelegate = nil; 1105 _touchTrackingRecognizer.get().touchTrackingDelegate = nil;
1107 [[_webViewProxy scrollViewProxy] removeObserver:self]; 1106 [[_webViewProxy scrollViewProxy] removeObserver:self];
1108 [[NSNotificationCenter defaultCenter] removeObserver:self]; 1107 [[NSNotificationCenter defaultCenter] removeObserver:self];
1109 } 1108 }
1110 1109
1111 - (void)dismissKeyboard { 1110 - (void)dismissKeyboard {
1112 [_webView endEditing:YES]; 1111 [_webView endEditing:YES];
1113 if ([self.nativeController respondsToSelector:@selector(dismissKeyboard)]) 1112 if ([self.nativeController respondsToSelector:@selector(dismissKeyboard)])
1114 [self.nativeController dismissKeyboard]; 1113 [self.nativeController dismissKeyboard];
1115 } 1114 }
(...skipping 4598 matching lines...) Expand 10 before | Expand all | Expand 10 after
5714 } 5713 }
5715 5714
5716 return web::WEB_VIEW_DOCUMENT_TYPE_GENERIC; 5715 return web::WEB_VIEW_DOCUMENT_TYPE_GENERIC;
5717 } 5716 }
5718 5717
5719 - (NSString*)refererFromNavigationAction:(WKNavigationAction*)action { 5718 - (NSString*)refererFromNavigationAction:(WKNavigationAction*)action {
5720 return [action.request valueForHTTPHeaderField:@"Referer"]; 5719 return [action.request valueForHTTPHeaderField:@"Referer"];
5721 } 5720 }
5722 5721
5723 @end 5722 @end
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698