OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 #include "chrome/browser/tab_contents/tab_contents.h" | 5 #include "chrome/browser/tab_contents/tab_contents.h" |
6 | 6 |
7 #if defined(OS_CHROMEOS) | 7 #if defined(OS_CHROMEOS) |
8 // For GdkScreen | 8 // For GdkScreen |
9 #include <gdk/gdk.h> | 9 #include <gdk/gdk.h> |
10 #endif // defined(OS_CHROMEOS) | 10 #endif // defined(OS_CHROMEOS) |
(...skipping 797 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
808 NotificationType::TAB_CONTENTS_HIDDEN, | 808 NotificationType::TAB_CONTENTS_HIDDEN, |
809 Source<TabContents>(this), | 809 Source<TabContents>(this), |
810 NotificationService::NoDetails()); | 810 NotificationService::NoDetails()); |
811 } | 811 } |
812 | 812 |
813 void TabContents::Activate() { | 813 void TabContents::Activate() { |
814 if (delegate_) | 814 if (delegate_) |
815 delegate_->ActivateContents(this); | 815 delegate_->ActivateContents(this); |
816 } | 816 } |
817 | 817 |
| 818 void TabContents::Deactivate() { |
| 819 if (delegate_) |
| 820 delegate_->DeactivateContents(this); |
| 821 } |
| 822 |
818 void TabContents::ShowContents() { | 823 void TabContents::ShowContents() { |
819 RenderWidgetHostView* rwhv = GetRenderWidgetHostView(); | 824 RenderWidgetHostView* rwhv = GetRenderWidgetHostView(); |
820 if (rwhv) | 825 if (rwhv) |
821 rwhv->DidBecomeSelected(); | 826 rwhv->DidBecomeSelected(); |
822 } | 827 } |
823 | 828 |
824 void TabContents::HideContents() { | 829 void TabContents::HideContents() { |
825 // TODO(pkasting): http://b/1239839 Right now we purposefully don't call | 830 // TODO(pkasting): http://b/1239839 Right now we purposefully don't call |
826 // our superclass HideContents(), because some callers want to be very picky | 831 // our superclass HideContents(), because some callers want to be very picky |
827 // about the order in which these get called. In addition to making the code | 832 // about the order in which these get called. In addition to making the code |
(...skipping 2470 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3298 AddInfoBar(new SavePasswordInfoBarDelegate(this, form_to_save)); | 3303 AddInfoBar(new SavePasswordInfoBarDelegate(this, form_to_save)); |
3299 } | 3304 } |
3300 | 3305 |
3301 Profile* TabContents::GetProfileForPasswordManager() { | 3306 Profile* TabContents::GetProfileForPasswordManager() { |
3302 return profile(); | 3307 return profile(); |
3303 } | 3308 } |
3304 | 3309 |
3305 bool TabContents::DidLastPageLoadEncounterSSLErrors() { | 3310 bool TabContents::DidLastPageLoadEncounterSSLErrors() { |
3306 return controller().ssl_manager()->ProcessedSSLErrorFromRequest(); | 3311 return controller().ssl_manager()->ProcessedSSLErrorFromRequest(); |
3307 } | 3312 } |
OLD | NEW |