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

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

Issue 2807063006: [ios] Reduce access to private //ios/web API. (Closed)
Patch Set: 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
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 1190 matching lines...) Expand 10 before | Expand all | Expand 10 after
1201 } 1201 }
1202 1202
1203 if (!navigation->IsErrorPage()) { 1203 if (!navigation->IsErrorPage()) {
1204 [self addCurrentEntryToHistoryDB]; 1204 [self addCurrentEntryToHistoryDB];
1205 [self countMainFrameLoad]; 1205 [self countMainFrameLoad];
1206 } 1206 }
1207 1207
1208 [parentTabModel_ notifyTabChanged:self]; 1208 [parentTabModel_ notifyTabChanged:self];
1209 } 1209 }
1210 1210
1211 // Records the state (scroll position, form values, whatever can be
1212 // harvested) from the current page into the current session entry.
1213 - (void)recordStateInHistory {
1214 // Link-loading prerender tab may not have correct zoom value during the load.
1215 if (!self.isLinkLoadingPrerenderTab)
1216 [self.webController recordStateInHistory];
1217 }
1218
1219 // Records metric for the interface's orientation. 1211 // Records metric for the interface's orientation.
1220 - (void)recordInterfaceOrientation { 1212 - (void)recordInterfaceOrientation {
1221 switch ([[UIApplication sharedApplication] statusBarOrientation]) { 1213 switch ([[UIApplication sharedApplication] statusBarOrientation]) {
1222 case UIInterfaceOrientationPortrait: 1214 case UIInterfaceOrientationPortrait:
1223 case UIInterfaceOrientationPortraitUpsideDown: 1215 case UIInterfaceOrientationPortraitUpsideDown:
1224 UMA_HISTOGRAM_BOOLEAN("Tab.PageLoadInPortrait", YES); 1216 UMA_HISTOGRAM_BOOLEAN("Tab.PageLoadInPortrait", YES);
1225 break; 1217 break;
1226 case UIInterfaceOrientationLandscapeLeft: 1218 case UIInterfaceOrientationLandscapeLeft:
1227 case UIInterfaceOrientationLandscapeRight: 1219 case UIInterfaceOrientationLandscapeRight:
1228 UMA_HISTOGRAM_BOOLEAN("Tab.PageLoadInPortrait", NO); 1220 UMA_HISTOGRAM_BOOLEAN("Tab.PageLoadInPortrait", NO);
(...skipping 731 matching lines...) Expand 10 before | Expand all | Expand 10 after
1960 1952
1961 - (TabModel*)parentTabModel { 1953 - (TabModel*)parentTabModel {
1962 return parentTabModel_; 1954 return parentTabModel_;
1963 } 1955 }
1964 1956
1965 - (FormInputAccessoryViewController*)inputAccessoryViewController { 1957 - (FormInputAccessoryViewController*)inputAccessoryViewController {
1966 return inputAccessoryViewController_.get(); 1958 return inputAccessoryViewController_.get();
1967 } 1959 }
1968 1960
1969 @end 1961 @end
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698