OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/bind.h" | 9 #include "base/bind.h" |
10 #include "base/bind_helpers.h" | 10 #include "base/bind_helpers.h" |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
50 #include "content/public/browser/web_contents.h" | 50 #include "content/public/browser/web_contents.h" |
51 #include "content/public/browser/web_intents_dispatcher.h" | 51 #include "content/public/browser/web_intents_dispatcher.h" |
52 #include "content/public/common/bindings_policy.h" | 52 #include "content/public/common/bindings_policy.h" |
53 #include "content/public/common/frame_navigate_params.h" | 53 #include "content/public/common/frame_navigate_params.h" |
54 #include "content/public/common/page_transition_types.h" | 54 #include "content/public/common/page_transition_types.h" |
55 #include "content/public/common/page_zoom.h" | 55 #include "content/public/common/page_zoom.h" |
56 #include "content/public/common/renderer_preferences.h" | 56 #include "content/public/common/renderer_preferences.h" |
57 #include "content/public/common/ssl_status.h" | 57 #include "content/public/common/ssl_status.h" |
58 #include "grit/generated_resources.h" | 58 #include "grit/generated_resources.h" |
59 #include "grit/locale_settings.h" | 59 #include "grit/locale_settings.h" |
60 #include "third_party/WebKit/Source/WebKit/chromium/public/WebReferrerPolicy.h" | |
61 #include "third_party/WebKit/Source/WebKit/chromium/public/WebSecurityPolicy.h" | 60 #include "third_party/WebKit/Source/WebKit/chromium/public/WebSecurityPolicy.h" |
62 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebCString.h
" | 61 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebCString.h
" |
| 62 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebReferrerP
olicy.h" |
63 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebString.h" | 63 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebString.h" |
64 #include "ui/base/l10n/l10n_util.h" | 64 #include "ui/base/l10n/l10n_util.h" |
65 #include "ui/base/models/menu_model.h" | 65 #include "ui/base/models/menu_model.h" |
66 #include "ui/base/view_prop.h" | 66 #include "ui/base/view_prop.h" |
67 #include "ui/views/layout/grid_layout.h" | 67 #include "ui/views/layout/grid_layout.h" |
68 | 68 |
69 using content::BrowserThread; | 69 using content::BrowserThread; |
70 using content::LoadNotificationDetails; | 70 using content::LoadNotificationDetails; |
71 using content::NavigationController; | 71 using content::NavigationController; |
72 using content::NavigationEntry; | 72 using content::NavigationEntry; |
(...skipping 1135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1208 if (params.disposition == CURRENT_TAB) { | 1208 if (params.disposition == CURRENT_TAB) { |
1209 DCHECK(route_all_top_level_navigations_); | 1209 DCHECK(route_all_top_level_navigations_); |
1210 forward_params.disposition = NEW_FOREGROUND_TAB; | 1210 forward_params.disposition = NEW_FOREGROUND_TAB; |
1211 } | 1211 } |
1212 WebContents* new_contents = | 1212 WebContents* new_contents = |
1213 ExternalTabContainer::OpenURLFromTab(source, forward_params); | 1213 ExternalTabContainer::OpenURLFromTab(source, forward_params); |
1214 // support only one navigation for a dummy tab before it is killed. | 1214 // support only one navigation for a dummy tab before it is killed. |
1215 ::DestroyWindow(GetNativeView()); | 1215 ::DestroyWindow(GetNativeView()); |
1216 return new_contents; | 1216 return new_contents; |
1217 } | 1217 } |
OLD | NEW |