| 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 444 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 455 void ExternalTabContainer::ForwardMessageToExternalHost( | 455 void ExternalTabContainer::ForwardMessageToExternalHost( |
| 456 const std::string& message, const std::string& origin, | 456 const std::string& message, const std::string& origin, |
| 457 const std::string& target) { | 457 const std::string& target) { |
| 458 if (automation_) { | 458 if (automation_) { |
| 459 automation_->Send( | 459 automation_->Send( |
| 460 new AutomationMsg_ForwardMessageToExternalHost(0, tab_handle_, | 460 new AutomationMsg_ForwardMessageToExternalHost(0, tab_handle_, |
| 461 message, origin, target)); | 461 message, origin, target)); |
| 462 } | 462 } |
| 463 } | 463 } |
| 464 | 464 |
| 465 bool ExternalTabContainer::IsExternalTabContainer() const { |
| 466 return true; |
| 467 } |
| 468 |
| 465 gfx::NativeWindow ExternalTabContainer::GetFrameNativeWindow() { | 469 gfx::NativeWindow ExternalTabContainer::GetFrameNativeWindow() { |
| 466 return hwnd(); | 470 return hwnd(); |
| 467 } | 471 } |
| 468 | 472 |
| 469 bool ExternalTabContainer::TakeFocus(bool reverse) { | 473 bool ExternalTabContainer::TakeFocus(bool reverse) { |
| 470 if (automation_) { | 474 if (automation_) { |
| 471 automation_->Send(new AutomationMsg_TabbedOut(0, tab_handle_, | 475 automation_->Send(new AutomationMsg_TabbedOut(0, tab_handle_, |
| 472 win_util::IsShiftPressed())); | 476 win_util::IsShiftPressed())); |
| 473 } | 477 } |
| 474 | 478 |
| (...skipping 534 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1009 external_tab_view_->SetLayoutManager(layout); | 1013 external_tab_view_->SetLayoutManager(layout); |
| 1010 | 1014 |
| 1011 layout->StartRow(0, 0); | 1015 layout->StartRow(0, 0); |
| 1012 layout->AddView(info_bar_container); | 1016 layout->AddView(info_bar_container); |
| 1013 layout->StartRow(1, 0); | 1017 layout->StartRow(1, 0); |
| 1014 layout->AddView(tab_contents_container_); | 1018 layout->AddView(tab_contents_container_); |
| 1015 SetContentsView(external_tab_view_); | 1019 SetContentsView(external_tab_view_); |
| 1016 // Note that SetTabContents must be called after AddChildView is called | 1020 // Note that SetTabContents must be called after AddChildView is called |
| 1017 tab_contents_container_->ChangeTabContents(tab_contents_); | 1021 tab_contents_container_->ChangeTabContents(tab_contents_); |
| 1018 } | 1022 } |
| OLD | NEW |