| 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 #import "chrome/browser/ui/cocoa/tab_contents_controller.h" | 5 #import "chrome/browser/ui/cocoa/tab_contents_controller.h" |
| 6 | 6 |
| 7 #include "base/mac_util.h" | |
| 8 #include "base/scoped_nsobject.h" | 7 #include "base/scoped_nsobject.h" |
| 9 #include "chrome/browser/renderer_host/render_view_host.h" | 8 #include "chrome/browser/renderer_host/render_view_host.h" |
| 10 #include "chrome/browser/renderer_host/render_widget_host_view.h" | 9 #include "chrome/browser/renderer_host/render_widget_host_view.h" |
| 11 #include "chrome/browser/tab_contents/navigation_controller.h" | 10 #include "chrome/browser/tab_contents/navigation_controller.h" |
| 12 #include "chrome/browser/tab_contents/tab_contents.h" | 11 #include "chrome/browser/tab_contents/tab_contents.h" |
| 13 #include "chrome/common/notification_details.h" | 12 #include "chrome/common/notification_details.h" |
| 14 #include "chrome/common/notification_observer.h" | 13 #include "chrome/common/notification_observer.h" |
| 15 #include "chrome/common/notification_registrar.h" | 14 #include "chrome/common/notification_registrar.h" |
| 16 #include "chrome/common/notification_source.h" | 15 #include "chrome/common/notification_source.h" |
| 17 #include "chrome/common/notification_type.h" | 16 #include "chrome/common/notification_type.h" |
| (...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 203 // the view may have, so avoid changing the view hierarchy unless | 202 // the view may have, so avoid changing the view hierarchy unless |
| 204 // the view is different. | 203 // the view is different. |
| 205 if ([self tabContents] != updatedContents) { | 204 if ([self tabContents] != updatedContents) { |
| 206 [self changeTabContents:updatedContents]; | 205 [self changeTabContents:updatedContents]; |
| 207 if ([self tabContents]) | 206 if ([self tabContents]) |
| 208 [self ensureContentsVisible]; | 207 [self ensureContentsVisible]; |
| 209 } | 208 } |
| 210 } | 209 } |
| 211 | 210 |
| 212 @end | 211 @end |
| OLD | NEW |