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

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

Issue 10703061: chrome/browser/ui: Put browser_dialogs.h into chrome namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 5 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) 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/ui/views/external_tab_container_win.h" 5 #include "chrome/browser/ui/views/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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
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/Platform/chromium/public/WebReferrerPolicy.h " 60 #include "third_party/WebKit/Source/Platform/chromium/public/WebReferrerPolicy.h "
61 #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 "
63 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebString.h" 62 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebString.h"
63 #include "third_party/WebKit/Source/WebKit/chromium/public/WebSecurityPolicy.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/controls/webview/webview.h" 67 #include "ui/views/controls/webview/webview.h"
68 #include "ui/views/layout/grid_layout.h" 68 #include "ui/views/layout/grid_layout.h"
69 69
70 using content::BrowserThread; 70 using content::BrowserThread;
71 using content::LoadNotificationDetails; 71 using content::LoadNotificationDetails;
72 using content::NativeWebKeyboardEvent; 72 using content::NativeWebKeyboardEvent;
73 using content::NavigationController; 73 using content::NavigationController;
(...skipping 676 matching lines...) Expand 10 before | Expand all | Expand 10 after
750 750
751 if (!proceed) { 751 if (!proceed) {
752 AutomationMsg_RunUnloadHandlers::WriteReplyParams(unload_reply_message_, 752 AutomationMsg_RunUnloadHandlers::WriteReplyParams(unload_reply_message_,
753 false); 753 false);
754 automation_->Send(unload_reply_message_); 754 automation_->Send(unload_reply_message_);
755 unload_reply_message_ = NULL; 755 unload_reply_message_ = NULL;
756 *proceed_to_fire_unload = false; 756 *proceed_to_fire_unload = false;
757 } 757 }
758 } 758 }
759 759
760 void ExternalTabContainerWin::ShowRepostFormWarningDialog( 760 void ExternalTabContainerWin::ShowRepostFormWarningDialog(WebContents* source) {
761 WebContents* source) { 761 chrome::ShowTabModalConfirmDialog(new RepostFormWarningController(source),
762 browser::ShowTabModalConfirmDialog( 762 TabContents::FromWebContents(source));
763 new RepostFormWarningController(source),
764 TabContents::FromWebContents(source));
765 } 763 }
766 764
767 void ExternalTabContainerWin::RunFileChooser( 765 void ExternalTabContainerWin::RunFileChooser(
768 WebContents* tab, 766 WebContents* tab,
769 const content::FileChooserParams& params) { 767 const content::FileChooserParams& params) {
770 FileSelectHelper::RunFileChooser(tab, params); 768 FileSelectHelper::RunFileChooser(tab, params);
771 } 769 }
772 770
773 void ExternalTabContainerWin::EnumerateDirectory(WebContents* tab, 771 void ExternalTabContainerWin::EnumerateDirectory(WebContents* tab,
774 int request_id, 772 int request_id,
(...skipping 467 matching lines...) Expand 10 before | Expand all | Expand 10 after
1242 if (params.disposition == CURRENT_TAB) { 1240 if (params.disposition == CURRENT_TAB) {
1243 DCHECK(route_all_top_level_navigations_); 1241 DCHECK(route_all_top_level_navigations_);
1244 forward_params.disposition = NEW_FOREGROUND_TAB; 1242 forward_params.disposition = NEW_FOREGROUND_TAB;
1245 } 1243 }
1246 WebContents* new_contents = 1244 WebContents* new_contents =
1247 ExternalTabContainerWin::OpenURLFromTab(source, forward_params); 1245 ExternalTabContainerWin::OpenURLFromTab(source, forward_params);
1248 // support only one navigation for a dummy tab before it is killed. 1246 // support only one navigation for a dummy tab before it is killed.
1249 ::DestroyWindow(GetNativeView()); 1247 ::DestroyWindow(GetNativeView());
1250 return new_contents; 1248 return new_contents;
1251 } 1249 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/extensions/extension_installed_bubble.cc ('k') | chrome/browser/ui/views/hung_renderer_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698