| 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/external_tab_container_win.h" | 5 #include "chrome/browser/external_tab_container_win.h" |
| 6 | 6 |
| 7 #include <string> | 7 #include <string> |
| 8 | 8 |
| 9 #include "base/i18n/rtl.h" | 9 #include "base/i18n/rtl.h" |
| 10 #include "base/logging.h" | 10 #include "base/logging.h" |
| (...skipping 385 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 396 RegisterRenderViewHostForAutomation(rvh, true); | 396 RegisterRenderViewHostForAutomation(rvh, true); |
| 397 } | 397 } |
| 398 | 398 |
| 399 bool ExternalTabContainer::infobars_enabled() { | 399 bool ExternalTabContainer::infobars_enabled() { |
| 400 return infobars_enabled_; | 400 return infobars_enabled_; |
| 401 } | 401 } |
| 402 | 402 |
| 403 void ExternalTabContainer::ActivateContents(TabContents* contents) { | 403 void ExternalTabContainer::ActivateContents(TabContents* contents) { |
| 404 } | 404 } |
| 405 | 405 |
| 406 void ExternalTabContainer::DeactivateContents(TabContents* contents) { |
| 407 } |
| 408 |
| 406 void ExternalTabContainer::LoadingStateChanged(TabContents* source) { | 409 void ExternalTabContainer::LoadingStateChanged(TabContents* source) { |
| 407 } | 410 } |
| 408 | 411 |
| 409 void ExternalTabContainer::CloseContents(TabContents* source) { | 412 void ExternalTabContainer::CloseContents(TabContents* source) { |
| 410 static const int kExternalTabCloseContentsDelayMS = 100; | 413 static const int kExternalTabCloseContentsDelayMS = 100; |
| 411 | 414 |
| 412 if (waiting_for_unload_event_) { | 415 if (waiting_for_unload_event_) { |
| 413 PostMessage(notification_window_, notification_message_, 0, 0); | 416 PostMessage(notification_window_, notification_message_, 0, 0); |
| 414 waiting_for_unload_event_ = false; | 417 waiting_for_unload_event_ = false; |
| 415 } else { | 418 } else { |
| (...skipping 559 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 975 external_tab_view_->SetLayoutManager(layout); | 978 external_tab_view_->SetLayoutManager(layout); |
| 976 | 979 |
| 977 layout->StartRow(0, 0); | 980 layout->StartRow(0, 0); |
| 978 layout->AddView(info_bar_container); | 981 layout->AddView(info_bar_container); |
| 979 layout->StartRow(1, 0); | 982 layout->StartRow(1, 0); |
| 980 layout->AddView(tab_contents_container_); | 983 layout->AddView(tab_contents_container_); |
| 981 SetContentsView(external_tab_view_); | 984 SetContentsView(external_tab_view_); |
| 982 // Note that SetTabContents must be called after AddChildView is called | 985 // Note that SetTabContents must be called after AddChildView is called |
| 983 tab_contents_container_->ChangeTabContents(tab_contents_); | 986 tab_contents_container_->ChangeTabContents(tab_contents_); |
| 984 } | 987 } |
| OLD | NEW |