| 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/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 707 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 718 } | 718 } |
| 719 | 719 |
| 720 - (CRWWebController*)webController { | 720 - (CRWWebController*)webController { |
| 721 return webStateImpl_ ? webStateImpl_->GetWebController() : nil; | 721 return webStateImpl_ ? webStateImpl_->GetWebController() : nil; |
| 722 } | 722 } |
| 723 | 723 |
| 724 - (id<TabDialogDelegate>)dialogDelegate { | 724 - (id<TabDialogDelegate>)dialogDelegate { |
| 725 return dialogDelegate_; | 725 return dialogDelegate_; |
| 726 } | 726 } |
| 727 | 727 |
| 728 - (BOOL)loadFinished { |
| 729 return [self.webController loadPhase] == web::PAGE_LOADED; |
| 730 } |
| 731 |
| 728 - (void)setDialogDelegate:(id<TabDialogDelegate>)dialogDelegate { | 732 - (void)setDialogDelegate:(id<TabDialogDelegate>)dialogDelegate { |
| 729 dialogDelegate_.reset(dialogDelegate); | 733 dialogDelegate_.reset(dialogDelegate); |
| 730 } | 734 } |
| 731 | 735 |
| 732 - (void)setIsVoiceSearchResultsTab:(BOOL)isVoiceSearchResultsTab { | 736 - (void)setIsVoiceSearchResultsTab:(BOOL)isVoiceSearchResultsTab { |
| 733 // There is intentionally no equality check in this setter, as we want the | 737 // There is intentionally no equality check in this setter, as we want the |
| 734 // notificaiton to be sent regardless of whether the value has changed. | 738 // notificaiton to be sent regardless of whether the value has changed. |
| 735 isVoiceSearchResultsTab_ = isVoiceSearchResultsTab; | 739 isVoiceSearchResultsTab_ = isVoiceSearchResultsTab; |
| 736 [parentTabModel_ notifyTabChanged:self]; | 740 [parentTabModel_ notifyTabChanged:self]; |
| 737 } | 741 } |
| (...skipping 1473 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2211 | 2215 |
| 2212 - (TabModel*)parentTabModel { | 2216 - (TabModel*)parentTabModel { |
| 2213 return parentTabModel_; | 2217 return parentTabModel_; |
| 2214 } | 2218 } |
| 2215 | 2219 |
| 2216 - (FormInputAccessoryViewController*)inputAccessoryViewController { | 2220 - (FormInputAccessoryViewController*)inputAccessoryViewController { |
| 2217 return inputAccessoryViewController_.get(); | 2221 return inputAccessoryViewController_.get(); |
| 2218 } | 2222 } |
| 2219 | 2223 |
| 2220 @end | 2224 @end |
| OLD | NEW |