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

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

Issue 12045037: Refactor modality-specific behavior from ConstrainedWindowViews to WebContentsModalDialogManager (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix Android link error Created 7 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) 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/constrained_web_dialog_delegate_base.h" 5 #include "chrome/browser/ui/webui/constrained_web_dialog_delegate_base.h"
6 6
7 #include "base/utf_string_conversions.h" 7 #include "base/utf_string_conversions.h"
8 #include "chrome/browser/ui/views/constrained_window_views.h" 8 #include "chrome/browser/ui/views/constrained_window_views.h"
9 #include "chrome/browser/ui/views/unhandled_keyboard_event_handler.h" 9 #include "chrome/browser/ui/views/unhandled_keyboard_event_handler.h"
10 #include "content/public/browser/native_web_keyboard_event.h" 10 #include "content/public/browser/native_web_keyboard_event.h"
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after
191 191
192 ConstrainedWebDialogDelegate* CreateConstrainedWebDialog( 192 ConstrainedWebDialogDelegate* CreateConstrainedWebDialog(
193 content::BrowserContext* browser_context, 193 content::BrowserContext* browser_context,
194 WebDialogDelegate* delegate, 194 WebDialogDelegate* delegate,
195 WebDialogWebContentsDelegate* tab_delegate, 195 WebDialogWebContentsDelegate* tab_delegate,
196 content::WebContents* web_contents) { 196 content::WebContents* web_contents) {
197 ConstrainedWebDialogDelegateViewViews* constrained_delegate = 197 ConstrainedWebDialogDelegateViewViews* constrained_delegate =
198 new ConstrainedWebDialogDelegateViewViews( 198 new ConstrainedWebDialogDelegateViewViews(
199 browser_context, delegate, tab_delegate); 199 browser_context, delegate, tab_delegate);
200 WebContentsModalDialog* web_contents_modal_dialog = 200 WebContentsModalDialog* web_contents_modal_dialog =
201 new ConstrainedWindowViews(web_contents, constrained_delegate); 201 ConstrainedWindowViews::Create(web_contents, constrained_delegate);
202 constrained_delegate->set_window(web_contents_modal_dialog); 202 constrained_delegate->set_window(web_contents_modal_dialog);
203 return constrained_delegate; 203 return constrained_delegate;
204 } 204 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/collected_cookies_views.cc ('k') | chrome/browser/ui/views/constrained_window_views.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698