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

Side by Side Diff: chrome/browser/ui/browser_dialogs.h

Issue 2446573003: chromeos: Make "mobile network" and "set time" dialogs work with mash (Closed)
Patch Set: gn check Created 4 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
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 #ifndef CHROME_BROWSER_UI_BROWSER_DIALOGS_H_ 5 #ifndef CHROME_BROWSER_UI_BROWSER_DIALOGS_H_
6 #define CHROME_BROWSER_UI_BROWSER_DIALOGS_H_ 6 #define CHROME_BROWSER_UI_BROWSER_DIALOGS_H_
7 7
8 #include <string> 8 #include <string>
9 #include <utility> 9 #include <utility>
10 #include <vector> 10 #include <vector>
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 #if !defined(OS_MACOSX) 81 #if !defined(OS_MACOSX)
82 // Creates and shows an HTML dialog with the given delegate and context. 82 // Creates and shows an HTML dialog with the given delegate and context.
83 // The window is automatically destroyed when it is closed. 83 // The window is automatically destroyed when it is closed.
84 // Returns the created window. 84 // Returns the created window.
85 // 85 //
86 // Make sure to use the returned window only when you know it is safe 86 // Make sure to use the returned window only when you know it is safe
87 // to do so, i.e. before OnDialogClosed() is called on the delegate. 87 // to do so, i.e. before OnDialogClosed() is called on the delegate.
88 gfx::NativeWindow ShowWebDialog(gfx::NativeView parent, 88 gfx::NativeWindow ShowWebDialog(gfx::NativeView parent,
89 content::BrowserContext* context, 89 content::BrowserContext* context,
90 ui::WebDialogDelegate* delegate); 90 ui::WebDialogDelegate* delegate);
91 #endif // !defined(OS_MACOSX)
91 92
93 #if defined(USE_ASH)
94 // Creates and shows an HTML dialog with the given delegate and browser context.
95 // The dialog is placed in the ash window hierarchy in the given container.
96 // See ash/public/cpp/shell_window_ids.h for |container_id| values. The window
97 // is destroyed when it is closed. See also chrome::ShowWebDialog().
98 void ShowWebDialogInContainer(int container_id,
99 content::BrowserContext* context,
100 ui::WebDialogDelegate* delegate);
101 #endif // defined(USE_ASH)
102
103 #if !defined(OS_MACOSX)
92 // Shows the create web app shortcut dialog box. 104 // Shows the create web app shortcut dialog box.
93 void ShowCreateWebAppShortcutsDialog(gfx::NativeWindow parent_window, 105 void ShowCreateWebAppShortcutsDialog(gfx::NativeWindow parent_window,
94 content::WebContents* web_contents); 106 content::WebContents* web_contents);
95 #endif 107 #endif // !defined(OS_MACOSX)
96 108
97 // Shows the create chrome app shortcut dialog box. 109 // Shows the create chrome app shortcut dialog box.
98 // |close_callback| may be null. 110 // |close_callback| may be null.
99 void ShowCreateChromeAppShortcutsDialog( 111 void ShowCreateChromeAppShortcutsDialog(
100 gfx::NativeWindow parent_window, 112 gfx::NativeWindow parent_window,
101 Profile* profile, 113 Profile* profile,
102 const extensions::Extension* app, 114 const extensions::Extension* app,
103 const base::Callback<void(bool /* created */)>& close_callback); 115 const base::Callback<void(bool /* created */)>& close_callback);
104 116
105 // Shows a color chooser that reports to the given WebContents. 117 // Shows a color chooser that reports to the given WebContents.
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
187 using BubbleShowPtr = 199 using BubbleShowPtr =
188 void (*)(content::WebContents*, 200 void (*)(content::WebContents*,
189 const std::vector<arc::ArcNavigationThrottle::AppInfo>&, 201 const std::vector<arc::ArcNavigationThrottle::AppInfo>&,
190 const IntentPickerResponse&); 202 const IntentPickerResponse&);
191 203
192 BubbleShowPtr ShowIntentPickerBubble(); 204 BubbleShowPtr ShowIntentPickerBubble();
193 205
194 #endif // OS_CHROMEOS 206 #endif // OS_CHROMEOS
195 207
196 #endif // CHROME_BROWSER_UI_BROWSER_DIALOGS_H_ 208 #endif // CHROME_BROWSER_UI_BROWSER_DIALOGS_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/ash/web_dialog_util.cc ('k') | chrome/browser/ui/views/chrome_web_dialog_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698