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

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

Issue 4758001: Part 2 of reapplying r64637. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Window recompile after rebase? Created 10 years, 1 month 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/chrome.gyp » ('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) 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 "app/l10n_util.h" 9 #include "app/l10n_util.h"
10 #include "app/win/scoped_prop.h" 10 #include "app/win/scoped_prop.h"
(...skipping 14 matching lines...) Expand all
25 #include "chrome/browser/page_info_window.h" 25 #include "chrome/browser/page_info_window.h"
26 #include "chrome/browser/profile.h" 26 #include "chrome/browser/profile.h"
27 #include "chrome/browser/renderer_host/render_process_host.h" 27 #include "chrome/browser/renderer_host/render_process_host.h"
28 #include "chrome/browser/renderer_host/render_view_host.h" 28 #include "chrome/browser/renderer_host/render_view_host.h"
29 #include "chrome/browser/renderer_host/resource_dispatcher_host_request_info.h" 29 #include "chrome/browser/renderer_host/resource_dispatcher_host_request_info.h"
30 #include "chrome/browser/tab_contents/provisional_load_details.h" 30 #include "chrome/browser/tab_contents/provisional_load_details.h"
31 #include "chrome/browser/tab_contents/tab_contents.h" 31 #include "chrome/browser/tab_contents/tab_contents.h"
32 #include "chrome/browser/views/page_info_bubble_view.h" 32 #include "chrome/browser/views/page_info_bubble_view.h"
33 #include "chrome/browser/views/tab_contents/render_view_context_menu_views.h" 33 #include "chrome/browser/views/tab_contents/render_view_context_menu_views.h"
34 #include "chrome/browser/views/tab_contents/tab_contents_container.h" 34 #include "chrome/browser/views/tab_contents/tab_contents_container.h"
35 #include "chrome/common/automation_messages.h"
35 #include "chrome/common/bindings_policy.h" 36 #include "chrome/common/bindings_policy.h"
36 #include "chrome/common/chrome_constants.h" 37 #include "chrome/common/chrome_constants.h"
37 #include "chrome/common/render_messages.h" 38 #include "chrome/common/render_messages.h"
38 #include "chrome/common/render_messages_params.h" 39 #include "chrome/common/render_messages_params.h"
39 #include "chrome/common/native_web_keyboard_event.h" 40 #include "chrome/common/native_web_keyboard_event.h"
40 #include "chrome/common/notification_service.h" 41 #include "chrome/common/notification_service.h"
41 #include "chrome/common/page_transition_types.h" 42 #include "chrome/common/page_transition_types.h"
42 #include "chrome/common/url_constants.h" 43 #include "chrome/common/url_constants.h"
43 #include "chrome/test/automation/automation_messages.h"
44 #include "grit/generated_resources.h" 44 #include "grit/generated_resources.h"
45 #include "grit/locale_settings.h" 45 #include "grit/locale_settings.h"
46 #include "views/grid_layout.h" 46 #include "views/grid_layout.h"
47 #include "views/widget/root_view.h" 47 #include "views/widget/root_view.h"
48 #include "views/window/window.h" 48 #include "views/window/window.h"
49 49
50 static const wchar_t kWindowObjectKey[] = L"ChromeWindowObject"; 50 static const wchar_t kWindowObjectKey[] = L"ChromeWindowObject";
51 51
52 // This class overrides the LinkActivated function in the PageInfoBubbleView 52 // This class overrides the LinkActivated function in the PageInfoBubbleView
53 // class and routes the help center link navigation to the host browser. 53 // class and routes the help center link navigation to the host browser.
(...skipping 1054 matching lines...) Expand 10 before | Expand all | Expand 10 after
1108 1108
1109 if (disposition == CURRENT_TAB) { 1109 if (disposition == CURRENT_TAB) {
1110 DCHECK(route_all_top_level_navigations_); 1110 DCHECK(route_all_top_level_navigations_);
1111 disposition = NEW_FOREGROUND_TAB; 1111 disposition = NEW_FOREGROUND_TAB;
1112 } 1112 }
1113 ExternalTabContainer::OpenURLFromTab(source, url, referrer, disposition, 1113 ExternalTabContainer::OpenURLFromTab(source, url, referrer, disposition,
1114 transition); 1114 transition);
1115 // support only one navigation for a dummy tab before it is killed. 1115 // support only one navigation for a dummy tab before it is killed.
1116 ::DestroyWindow(GetNativeView()); 1116 ::DestroyWindow(GetNativeView());
1117 } 1117 }
OLDNEW
« no previous file with comments | « chrome/browser/extensions/extension_uitest.cc ('k') | chrome/chrome.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698