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 <string> | 7 #include <string> |
8 | 8 |
9 #include "app/l10n_util.h" | 9 #include "app/l10n_util.h" |
10 #include "app/win_util.h" | 10 #include "app/win_util.h" |
(...skipping 246 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
257 switch (disposition) { | 257 switch (disposition) { |
258 case CURRENT_TAB: | 258 case CURRENT_TAB: |
259 case SINGLETON_TAB: | 259 case SINGLETON_TAB: |
260 case NEW_FOREGROUND_TAB: | 260 case NEW_FOREGROUND_TAB: |
261 case NEW_BACKGROUND_TAB: | 261 case NEW_BACKGROUND_TAB: |
262 case NEW_POPUP: | 262 case NEW_POPUP: |
263 case NEW_WINDOW: | 263 case NEW_WINDOW: |
264 case SAVE_TO_DISK: | 264 case SAVE_TO_DISK: |
265 if (automation_) { | 265 if (automation_) { |
266 automation_->Send(new AutomationMsg_OpenURL(0, tab_handle_, | 266 automation_->Send(new AutomationMsg_OpenURL(0, tab_handle_, |
267 url, disposition)); | 267 url, referrer, |
| 268 disposition)); |
268 } | 269 } |
269 break; | 270 break; |
270 default: | 271 default: |
271 NOTREACHED(); | 272 NOTREACHED(); |
272 break; | 273 break; |
273 } | 274 } |
274 } | 275 } |
275 | 276 |
276 void ExternalTabContainer::NavigationStateChanged(const TabContents* source, | 277 void ExternalTabContainer::NavigationStateChanged(const TabContents* source, |
277 unsigned changed_flags) { | 278 unsigned changed_flags) { |
(...skipping 375 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
653 | 654 |
654 bool ExternalTabContainer::OnGoToEntryOffset(int offset) { | 655 bool ExternalTabContainer::OnGoToEntryOffset(int offset) { |
655 if (load_requests_via_automation_) { | 656 if (load_requests_via_automation_) { |
656 automation_->Send(new AutomationMsg_RequestGoToHistoryEntryOffset( | 657 automation_->Send(new AutomationMsg_RequestGoToHistoryEntryOffset( |
657 0, tab_handle_, offset)); | 658 0, tab_handle_, offset)); |
658 return false; | 659 return false; |
659 } | 660 } |
660 | 661 |
661 return true; | 662 return true; |
662 } | 663 } |
OLD | NEW |