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

Side by Side Diff: ios/chrome/browser/tabs/tab.mm

Issue 2650563002: Pass WebState to NativeAppNavigationController (Closed)
Patch Set: fixed import vs. include Created 3 years, 11 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 | « ios/chrome/browser/native_app_launcher/native_app_navigation_util_unittest.mm ('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 // 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/chrome/browser/tabs/tab.h" 5 #import "ios/chrome/browser/tabs/tab.h"
6 6
7 #import <CoreLocation/CoreLocation.h> 7 #import <CoreLocation/CoreLocation.h>
8 #import <UIKit/UIKit.h> 8 #import <UIKit/UIKit.h>
9 9
10 #include <utility> 10 #include <utility>
(...skipping 2177 matching lines...) Expand 10 before | Expand all | Expand 10 after
2188 2188
2189 - (NativeAppNavigationController*)nativeAppNavigationController { 2189 - (NativeAppNavigationController*)nativeAppNavigationController {
2190 return nativeAppNavigationController_; 2190 return nativeAppNavigationController_;
2191 } 2191 }
2192 2192
2193 - (void)initNativeAppNavigationController { 2193 - (void)initNativeAppNavigationController {
2194 if (browserState_->IsOffTheRecord()) 2194 if (browserState_->IsOffTheRecord())
2195 return; 2195 return;
2196 DCHECK(!nativeAppNavigationController_); 2196 DCHECK(!nativeAppNavigationController_);
2197 nativeAppNavigationController_.reset([[NativeAppNavigationController alloc] 2197 nativeAppNavigationController_.reset([[NativeAppNavigationController alloc]
2198 initWithRequestContextGetter:browserState_->GetRequestContext() 2198 initWithWebState:self.webState
2199 tab:self]); 2199 requestContextGetter:browserState_->GetRequestContext()
2200 tab:self]);
2200 [self.webController addObserver:nativeAppNavigationController_]; 2201 [self.webController addObserver:nativeAppNavigationController_];
2201 DCHECK(nativeAppNavigationController_); 2202 DCHECK(nativeAppNavigationController_);
2202 } 2203 }
2203 2204
2204 - (id<PassKitDialogProvider>)passKitDialogProvider { 2205 - (id<PassKitDialogProvider>)passKitDialogProvider {
2205 return passKitDialogProvider_.get(); 2206 return passKitDialogProvider_.get();
2206 } 2207 }
2207 2208
2208 - (void)setPassKitDialogProvider:(id<PassKitDialogProvider>)provider { 2209 - (void)setPassKitDialogProvider:(id<PassKitDialogProvider>)provider {
2209 passKitDialogProvider_.reset(provider); 2210 passKitDialogProvider_.reset(provider);
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
2266 2267
2267 - (TabModel*)parentTabModel { 2268 - (TabModel*)parentTabModel {
2268 return parentTabModel_; 2269 return parentTabModel_;
2269 } 2270 }
2270 2271
2271 - (FormInputAccessoryViewController*)inputAccessoryViewController { 2272 - (FormInputAccessoryViewController*)inputAccessoryViewController {
2272 return inputAccessoryViewController_.get(); 2273 return inputAccessoryViewController_.get();
2273 } 2274 }
2274 2275
2275 @end 2276 @end
OLDNEW
« no previous file with comments | « ios/chrome/browser/native_app_launcher/native_app_navigation_util_unittest.mm ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698