| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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.h" | 5 #include "chrome/browser/external_tab_container.h" |
| 6 | 6 |
| 7 #include "app/l10n_util.h" | 7 #include "app/l10n_util.h" |
| 8 #include "app/win_util.h" | 8 #include "app/win_util.h" |
| 9 #include "base/logging.h" | 9 #include "base/logging.h" |
| 10 #include "base/win_util.h" | 10 #include "base/win_util.h" |
| (...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 221 | 221 |
| 222 void ExternalTabContainer::UpdateTargetURL(TabContents* source, | 222 void ExternalTabContainer::UpdateTargetURL(TabContents* source, |
| 223 const GURL& url) { | 223 const GURL& url) { |
| 224 if (automation_) { | 224 if (automation_) { |
| 225 std::wstring url_string = CA2W(url.spec().c_str()); | 225 std::wstring url_string = CA2W(url.spec().c_str()); |
| 226 automation_->Send( | 226 automation_->Send( |
| 227 new AutomationMsg_UpdateTargetUrl(0, tab_handle_, url_string)); | 227 new AutomationMsg_UpdateTargetUrl(0, tab_handle_, url_string)); |
| 228 } | 228 } |
| 229 } | 229 } |
| 230 | 230 |
| 231 void ExternalTabContainer::ContentsZoomChange(bool zoom_in) { | 231 void ExternalTabContainer::ContentsZoomChange(PageZoom::Function zoom_type) { |
| 232 } | 232 } |
| 233 | 233 |
| 234 void ExternalTabContainer::ToolbarSizeChanged(TabContents* source, | 234 void ExternalTabContainer::ToolbarSizeChanged(TabContents* source, |
| 235 bool finished) { | 235 bool finished) { |
| 236 } | 236 } |
| 237 | 237 |
| 238 void ExternalTabContainer::ForwardMessageToExternalHost( | 238 void ExternalTabContainer::ForwardMessageToExternalHost( |
| 239 const std::string& message, const std::string& origin, | 239 const std::string& message, const std::string& origin, |
| 240 const std::string& target) { | 240 const std::string& target) { |
| 241 if(automation_) { | 241 if (automation_) { |
| 242 automation_->Send( | 242 automation_->Send( |
| 243 new AutomationMsg_ForwardMessageToExternalHost(0, tab_handle_, | 243 new AutomationMsg_ForwardMessageToExternalHost(0, tab_handle_, |
| 244 message, origin, target)); | 244 message, origin, target)); |
| 245 } | 245 } |
| 246 } | 246 } |
| 247 | 247 |
| 248 ExtensionFunctionDispatcher* ExternalTabContainer:: | 248 ExtensionFunctionDispatcher* ExternalTabContainer:: |
| 249 CreateExtensionFunctionDispatcher(RenderViewHost* render_view_host, | 249 CreateExtensionFunctionDispatcher(RenderViewHost* render_view_host, |
| 250 const std::string& extension_id) { | 250 const std::string& extension_id) { |
| 251 return new ExtensionFunctionDispatcher(render_view_host, NULL, extension_id); | 251 return new ExtensionFunctionDispatcher(render_view_host, NULL, extension_id); |
| (...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 412 if (tab_contents_) { | 412 if (tab_contents_) { |
| 413 NotificationService::current()->Notify( | 413 NotificationService::current()->Notify( |
| 414 NotificationType::EXTERNAL_TAB_CLOSED, | 414 NotificationType::EXTERNAL_TAB_CLOSED, |
| 415 Source<NavigationController>(&tab_contents_->controller()), | 415 Source<NavigationController>(&tab_contents_->controller()), |
| 416 Details<ExternalTabContainer>(this)); | 416 Details<ExternalTabContainer>(this)); |
| 417 | 417 |
| 418 delete tab_contents_; | 418 delete tab_contents_; |
| 419 tab_contents_ = NULL; | 419 tab_contents_ = NULL; |
| 420 } | 420 } |
| 421 } | 421 } |
| OLD | NEW |