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

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

Issue 9749003: Revert 127660 - WebUI TaskManager: Add method to set minimum window size on HTMLDialog. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 9 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/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 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 // Non-file based UI needs to not have access to the Web UI bindings 97 // Non-file based UI needs to not have access to the Web UI bindings
98 // for security reasons. The code hosting the dialog should provide 98 // for security reasons. The code hosting the dialog should provide
99 // dialog specific functionality through other bindings and methods 99 // dialog specific functionality through other bindings and methods
100 // that are scoped in duration to the dialogs existence. 100 // that are scoped in duration to the dialogs existence.
101 web_ui->SetBindings(web_ui->GetBindings() & ~content::BINDINGS_POLICY_WEB_UI); 101 web_ui->SetBindings(web_ui->GetBindings() & ~content::BINDINGS_POLICY_WEB_UI);
102 } 102 }
103 103
104 ExternalHtmlDialogUI::~ExternalHtmlDialogUI() { 104 ExternalHtmlDialogUI::~ExternalHtmlDialogUI() {
105 } 105 }
106 106
107 std::string HtmlDialogUIDelegate::GetDialogName() const {
108 return std::string();
109 }
110
111 void HtmlDialogUIDelegate::GetMinimumDialogSize(gfx::Size* size) const {
112 GetDialogSize(size);
113 }
114
115 bool HtmlDialogUIDelegate::HandleContextMenu( 107 bool HtmlDialogUIDelegate::HandleContextMenu(
116 const content::ContextMenuParams& params) { 108 const content::ContextMenuParams& params) {
117 return false; 109 return false;
118 } 110 }
119 111
120 bool HtmlDialogUIDelegate::HandleOpenURLFromTab( 112 bool HtmlDialogUIDelegate::HandleOpenURLFromTab(
121 content::WebContents* source, 113 content::WebContents* source,
122 const content::OpenURLParams& params, 114 const content::OpenURLParams& params,
123 content::WebContents** out_new_contents) { 115 content::WebContents** out_new_contents) {
124 return false; 116 return false;
125 } 117 }
126 118
127 bool HtmlDialogUIDelegate::HandleAddNewContents( 119 bool HtmlDialogUIDelegate::HandleAddNewContents(
128 content::WebContents* source, 120 content::WebContents* source,
129 content::WebContents* new_contents, 121 content::WebContents* new_contents,
130 WindowOpenDisposition disposition, 122 WindowOpenDisposition disposition,
131 const gfx::Rect& initial_pos, 123 const gfx::Rect& initial_pos,
132 bool user_gesture) { 124 bool user_gesture) {
133 return false; 125 return false;
134 } 126 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/html_dialog_ui.h ('k') | chrome/browser/ui/webui/task_manager/task_manager_dialog.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698