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

Unified Diff: ios/chrome/browser/ui/tab_switcher/tab_switcher_panel_cell.mm

Issue 2608253003: [ios] Moves tab_switcher code out of the ios_internal namespace. (Closed)
Patch Set: Review. 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 side-by-side diff with in-line comments
Download patch
Index: ios/chrome/browser/ui/tab_switcher/tab_switcher_panel_cell.mm
diff --git a/ios/chrome/browser/ui/tab_switcher/tab_switcher_panel_cell.mm b/ios/chrome/browser/ui/tab_switcher/tab_switcher_panel_cell.mm
index d38f324559bd354b401f9c109068192123fed8d9..d0361e391a1f99f3eea3ffc3a83974331ad3d0f6 100644
--- a/ios/chrome/browser/ui/tab_switcher/tab_switcher_panel_cell.mm
+++ b/ios/chrome/browser/ui/tab_switcher/tab_switcher_panel_cell.mm
@@ -239,12 +239,12 @@ CGFloat tabSwitcherLocalSessionCellTopBarHeight() {
}];
}
-- (void)setSessionType:(ios_internal::SessionType)type {
+- (void)setSessionType:(TabSwitcherSessionType)type {
UIColor* topBarBackgroundColor;
UIColor* closeButtonTintColor;
UIColor* textColor;
UIColor* snapshotBackgroundColor;
- if (type == ios_internal::SessionType::OFF_THE_RECORD_SESSION) {
+ if (type == TabSwitcherSessionType::OFF_THE_RECORD_SESSION) {
topBarBackgroundColor = [[MDCPalette greyPalette] tint700];
closeButtonTintColor = [[MDCPalette greyPalette] tint100];
textColor = [[MDCPalette greyPalette] tint100];
@@ -398,7 +398,7 @@ CGFloat tabSwitcherLocalSessionCellTopBarHeight() {
- (void)setSessionGURL:(GURL const&)gurl
withBrowserState:(ios::ChromeBrowserState*)browserState {
- ios_internal::FaviconGetterCompletionBlock block = ^(UIImage* favicon) {
+ TabSwitcherFaviconGetterCompletionBlock block = ^(UIImage* favicon) {
UIColor* imageDominantColor =
DominantColorForImage(gfx::Image(favicon), 1.0);
MDCPalette* dominantPalette =
@@ -424,7 +424,7 @@ CGFloat tabSwitcherLocalSessionCellTopBarHeight() {
};
GURL gurlCopy = gurl;
_faviconObtainer.reset([[NSBlockOperation blockOperationWithBlock:^{
- ios_internal::GetFavicon(gurlCopy, browserState, block);
+ TabSwitcherGetFavicon(gurlCopy, browserState, block);
}] retain]);
NSOperationQueue* operationQueue = [NSOperationQueue mainQueue];
[operationQueue addOperation:_faviconObtainer];

Powered by Google App Engine
This is Rietveld 408576698