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

Side by Side Diff: ios/chrome/browser/ui/browser_view_controller.mm

Issue 2729563003: Dismiss popups on Tab deselected (Closed)
Patch Set: dismiss popups on tab deselected Created 3 years, 9 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 | « 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/chrome/browser/ui/browser_view_controller.h" 5 #import "ios/chrome/browser/ui/browser_view_controller.h"
6 6
7 #import <AssetsLibrary/AssetsLibrary.h> 7 #import <AssetsLibrary/AssetsLibrary.h>
8 #import <MobileCoreServices/MobileCoreServices.h> 8 #import <MobileCoreServices/MobileCoreServices.h>
9 #import <PassKit/PassKit.h> 9 #import <PassKit/PassKit.h>
10 #import <Photos/Photos.h> 10 #import <Photos/Photos.h>
(...skipping 1473 matching lines...) Expand 10 before | Expand all | Expand 10 after
1484 BOOL loadingSucceeded = [notify.userInfo[kTabModelPageLoadSuccess] boolValue]; 1484 BOOL loadingSucceeded = [notify.userInfo[kTabModelPageLoadSuccess] boolValue];
1485 1485
1486 [self tabLoadComplete:tab withSuccess:loadingSucceeded]; 1486 [self tabLoadComplete:tab withSuccess:loadingSucceeded];
1487 } 1487 }
1488 1488
1489 - (void)tabDeselected:(NSNotification*)notify { 1489 - (void)tabDeselected:(NSNotification*)notify {
1490 DCHECK(notify); 1490 DCHECK(notify);
1491 Tab* tab = notify.userInfo[kTabModelTabKey]; 1491 Tab* tab = notify.userInfo[kTabModelTabKey];
1492 DCHECK(tab); 1492 DCHECK(tab);
1493 [tab wasHidden]; 1493 [tab wasHidden];
1494 [_toolbarController dismissTabHistoryPopup]; 1494 [self dismissPopups];
1495 } 1495 }
1496 1496
1497 - (void)tabWasAdded:(NSNotification*)notify { 1497 - (void)tabWasAdded:(NSNotification*)notify {
1498 Tab* tab = notify.userInfo[kTabModelTabKey]; 1498 Tab* tab = notify.userInfo[kTabModelTabKey];
1499 DCHECK(tab); 1499 DCHECK(tab);
1500 1500
1501 // Update map if a native controller was vended before the tab was added. 1501 // Update map if a native controller was vended before the tab was added.
1502 id<CRWNativeContent> nativeController = 1502 id<CRWNativeContent> nativeController =
1503 [_nativeControllersForTabIDs objectForKey:kNativeControllerTemporaryKey]; 1503 [_nativeControllersForTabIDs objectForKey:kNativeControllerTemporaryKey];
1504 if (nativeController) { 1504 if (nativeController) {
(...skipping 3520 matching lines...) Expand 10 before | Expand all | Expand 10 after
5025 5025
5026 - (UIView*)voiceSearchButton { 5026 - (UIView*)voiceSearchButton {
5027 return _voiceSearchButton; 5027 return _voiceSearchButton;
5028 } 5028 }
5029 5029
5030 - (id<LogoAnimationControllerOwner>)logoAnimationControllerOwner { 5030 - (id<LogoAnimationControllerOwner>)logoAnimationControllerOwner {
5031 return [self currentLogoAnimationControllerOwner]; 5031 return [self currentLogoAnimationControllerOwner];
5032 } 5032 }
5033 5033
5034 @end 5034 @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