OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |