Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(344)

Side by Side Diff: chrome/browser/external_tab_container.cc

Issue 274071: When Chrome hands off a URL to be opened by the external host by the ViewHost... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/browser/extensions/extension_uitest.cc ('k') | chrome/renderer/render_view.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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 }
OLDNEW
« no previous file with comments | « chrome/browser/extensions/extension_uitest.cc ('k') | chrome/renderer/render_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698