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

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

Issue 10789053: Bring up a content settings icon for ungestured registerProtocolHandler call. (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 770 matching lines...) Expand 10 before | Expand all | Expand 10 after
781 Browser::JSOutOfMemoryHelper(tab); 781 Browser::JSOutOfMemoryHelper(tab);
782 } 782 }
783 783
784 void ExternalTabContainerWin::RegisterProtocolHandler( 784 void ExternalTabContainerWin::RegisterProtocolHandler(
785 WebContents* tab, 785 WebContents* tab,
786 const std::string& protocol, 786 const std::string& protocol,
787 const GURL& url, 787 const GURL& url,
788 const string16& title, 788 const string16& title,
789 bool user_gesture) { 789 bool user_gesture) {
790 Browser::RegisterProtocolHandlerHelper(tab, protocol, url, title, 790 Browser::RegisterProtocolHandlerHelper(tab, protocol, url, title,
791 user_gesture); 791 user_gesture, NULL);
792 } 792 }
793 793
794 void ExternalTabContainerWin::RegisterIntentHandler( 794 void ExternalTabContainerWin::RegisterIntentHandler(
795 WebContents* tab, 795 WebContents* tab,
796 const webkit_glue::WebIntentServiceData& data, 796 const webkit_glue::WebIntentServiceData& data,
797 bool user_gesture) { 797 bool user_gesture) {
798 Browser::RegisterIntentHandlerHelper(tab, data, user_gesture); 798 Browser::RegisterIntentHandlerHelper(tab, data, user_gesture);
799 } 799 }
800 800
801 void ExternalTabContainerWin::WebIntentDispatch( 801 void ExternalTabContainerWin::WebIntentDispatch(
(...skipping 448 matching lines...) Expand 10 before | Expand all | Expand 10 after
1250 if (params.disposition == CURRENT_TAB) { 1250 if (params.disposition == CURRENT_TAB) {
1251 DCHECK(route_all_top_level_navigations_); 1251 DCHECK(route_all_top_level_navigations_);
1252 forward_params.disposition = NEW_FOREGROUND_TAB; 1252 forward_params.disposition = NEW_FOREGROUND_TAB;
1253 } 1253 }
1254 WebContents* new_contents = 1254 WebContents* new_contents =
1255 ExternalTabContainerWin::OpenURLFromTab(source, forward_params); 1255 ExternalTabContainerWin::OpenURLFromTab(source, forward_params);
1256 // support only one navigation for a dummy tab before it is killed. 1256 // support only one navigation for a dummy tab before it is killed.
1257 ::DestroyWindow(GetNativeView()); 1257 ::DestroyWindow(GetNativeView());
1258 return new_contents; 1258 return new_contents;
1259 } 1259 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/libgtk2ui/gtk2_ui.cc ('k') | chrome/browser/ui/webui/options2/content_settings_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698