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

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

Issue 8068020: Converts usage of GetBrowserViewForNativeWindow to (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Incorporate review feedback, and make ShowPageInfo platform specific Created 9 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
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/debug/trace_event.h" 9 #include "base/debug/trace_event.h"
10 #include "base/i18n/rtl.h" 10 #include "base/i18n/rtl.h"
11 #include "base/logging.h" 11 #include "base/logging.h"
12 #include "base/utf_string_conversions.h" 12 #include "base/utf_string_conversions.h"
13 #include "base/win/win_util.h" 13 #include "base/win/win_util.h"
14 #include "chrome/app/chrome_command_ids.h" 14 #include "chrome/app/chrome_command_ids.h"
15 #include "chrome/app/chrome_dll_resource.h" 15 #include "chrome/app/chrome_dll_resource.h"
16 #include "chrome/browser/automation/automation_provider.h" 16 #include "chrome/browser/automation/automation_provider.h"
17 #include "chrome/browser/debugger/devtools_toggle_action.h" 17 #include "chrome/browser/debugger/devtools_toggle_action.h"
18 #include "chrome/browser/debugger/devtools_window.h" 18 #include "chrome/browser/debugger/devtools_window.h"
19 #include "chrome/browser/google/google_util.h" 19 #include "chrome/browser/google/google_util.h"
20 #include "chrome/browser/history/history_types.h" 20 #include "chrome/browser/history/history_types.h"
21 #include "chrome/browser/history/history_tab_helper.h" 21 #include "chrome/browser/history/history_tab_helper.h"
22 #include "chrome/browser/infobars/infobar_tab_helper.h" 22 #include "chrome/browser/infobars/infobar_tab_helper.h"
23 #include "chrome/browser/page_info_window.h"
24 #include "chrome/browser/profiles/profile.h" 23 #include "chrome/browser/profiles/profile.h"
25 #include "chrome/browser/ui/app_modal_dialogs/message_box_handler.h" 24 #include "chrome/browser/ui/app_modal_dialogs/message_box_handler.h"
26 #include "chrome/browser/ui/blocked_content/blocked_content_tab_helper.h" 25 #include "chrome/browser/ui/blocked_content/blocked_content_tab_helper.h"
27 #include "chrome/browser/ui/browser.h" 26 #include "chrome/browser/ui/browser.h"
28 #include "chrome/browser/ui/browser_window.h" 27 #include "chrome/browser/ui/browser_window.h"
29 #include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h" 28 #include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h"
30 #include "chrome/browser/ui/views/browser_dialogs.h" 29 #include "chrome/browser/ui/views/browser_dialogs.h"
31 #include "chrome/browser/ui/views/infobars/infobar_container_view.h" 30 #include "chrome/browser/ui/views/infobars/infobar_container_view.h"
32 #include "chrome/browser/ui/views/page_info_bubble_view.h" 31 #include "chrome/browser/ui/views/page_info_bubble_view.h"
33 #include "chrome/browser/ui/views/tab_contents/render_view_context_menu_views.h" 32 #include "chrome/browser/ui/views/tab_contents/render_view_context_menu_views.h"
(...skipping 1177 matching lines...) Expand 10 before | Expand all | Expand 10 after
1211 if (params.disposition == CURRENT_TAB) { 1210 if (params.disposition == CURRENT_TAB) {
1212 DCHECK(route_all_top_level_navigations_); 1211 DCHECK(route_all_top_level_navigations_);
1213 forward_params.disposition = NEW_FOREGROUND_TAB; 1212 forward_params.disposition = NEW_FOREGROUND_TAB;
1214 } 1213 }
1215 TabContents* new_contents = 1214 TabContents* new_contents =
1216 ExternalTabContainer::OpenURLFromTab(source, forward_params); 1215 ExternalTabContainer::OpenURLFromTab(source, forward_params);
1217 // support only one navigation for a dummy tab before it is killed. 1216 // support only one navigation for a dummy tab before it is killed.
1218 ::DestroyWindow(GetNativeView()); 1217 ::DestroyWindow(GetNativeView());
1219 return new_contents; 1218 return new_contents;
1220 } 1219 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698