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

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

Issue 666533007: Move JavaScriptDialogManager, JavascriptAppModalDialogViews to components/app_modal_dialogs (Closed) Base URL: https://chromium.googlesource.com/chromium/src@master
Patch Set: Created 6 years, 1 month 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
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #include "chrome/browser/ui/app_modal_dialogs/chrome_javascript_dialog_manager_c lient.h"
6
7 #include "components/app_modal_dialogs/views/javascript_app_modal_dialog_views.h "
8 #include "components/constrained_window/constrained_window_views.h"
9 #include "ui/views/widget/widget.h"
10
11 #if defined(USE_X11) && !defined(OS_CHROMEOS)
12 #include "chrome/browser/ui/views/javascript_app_modal_dialog_views_x11.h"
13 #endif
14
15 // static
16 NativeAppModalDialog*
17 ChromeJavaScriptDialogManagerClient::CreateChromeNativeJavaScriptPrompt(
18 JavaScriptAppModalDialog* dialog,
19 gfx::NativeWindow parent_window) {
20 #if defined(USE_X11) && !defined(OS_CHROMEOS)
21 JavaScriptAppModalDialogViews* d =
22 new JavaScriptAppModalDialogViewsX11(dialog);
23 #else
24 JavaScriptAppModalDialogViews* d =
25 new JavaScriptAppModalDialogViews(dialog);
26 #endif
27 CreateWindowModalDialogViews(d, parent_window);
28 return d;
29 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698