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

Side by Side Diff: chrome/browser/ui/webui/html_dialog_ui.cc

Issue 9225053: Add a blocking version of the sync promo dialog (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: address review comments Created 8 years, 10 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/ui/webui/html_dialog_ui.h" 5 #include "chrome/browser/ui/webui/html_dialog_ui.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/bind_helpers.h" 8 #include "base/bind_helpers.h"
9 #include "base/lazy_instance.h" 9 #include "base/lazy_instance.h"
10 #include "base/property_bag.h" 10 #include "base/property_bag.h"
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 // that are scoped in duration to the dialogs existence. 99 // that are scoped in duration to the dialogs existence.
100 web_ui->SetBindings(web_ui->GetBindings() & ~content::BINDINGS_POLICY_WEB_UI); 100 web_ui->SetBindings(web_ui->GetBindings() & ~content::BINDINGS_POLICY_WEB_UI);
101 } 101 }
102 102
103 ExternalHtmlDialogUI::~ExternalHtmlDialogUI() { 103 ExternalHtmlDialogUI::~ExternalHtmlDialogUI() {
104 } 104 }
105 105
106 bool HtmlDialogUIDelegate::HandleContextMenu(const ContextMenuParams& params) { 106 bool HtmlDialogUIDelegate::HandleContextMenu(const ContextMenuParams& params) {
107 return false; 107 return false;
108 } 108 }
109
110 bool HtmlDialogUIDelegate::HandleOpenURLFromTab(
111 content::WebContents* source,
112 const content::OpenURLParams& params,
113 content::WebContents** out_new_contents) {
114 return false;
Dan Beam 2012/01/30 18:10:05 Why do we do this? To implement an interface and
sail 2012/01/30 21:52:36 Yea, this is the same as the HandleContextMenu cas
115 }
116
117 bool HtmlDialogUIDelegate::HandleAddNewContents(
118 content::WebContents* source,
119 content::WebContents* new_contents,
120 WindowOpenDisposition disposition,
121 const gfx::Rect& initial_pos,
122 bool user_gesture) {
123 return false;
124 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698