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

Side by Side Diff: chrome/browser/ui/ash/web_dialog_util.h

Issue 2441133002: mash: Introduce ShowWebDialogWithContainer for webui dialogs (Closed)
Patch Set: Created 4 years, 2 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
OLDNEW
(Empty)
1 // Copyright 2016 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 #ifndef CHROME_BROWSER_UI_ASH_WEB_DIALOG_UTIL_H_
6 #define CHROME_BROWSER_UI_ASH_WEB_DIALOG_UTIL_H_
7
8 #include "ui/gfx/native_widget_types.h"
9
10 namespace content {
11 class BrowserContext;
12 }
13
14 namespace ui {
15 class WebDialogDelegate;
16 }
17
18 namespace chrome {
19
20 // Creates and shows an HTML dialog with the given delegate and context. The
21 // dialog is created as a child of |parent|. If |parent| is null the dialog
22 // is placed in a fallback shell window container on the primary display. Either
23 // a |parent| or valid |container_id| must be provided. The window is destroyed
24 // destroyed when it is closed. See also chrome::ShowWebDialog().
25 void ShowWebDialogWithContainer(gfx::NativeView parent,
26 int container_id,
27 content::BrowserContext* context,
28 ui::WebDialogDelegate* delegate);
29
30 } // namespace chrome
31
32 #endif // CHROME_BROWSER_UI_ASH_WEB_DIALOG_UTIL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698