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

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

Issue 2871073002: cros: Bind hangup red button on remote controller to close web dialog (Closed)
Patch Set: nits Created 3 years, 7 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
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 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 // 86 //
87 // Make sure to use the returned window only when you know it is safe 87 // Make sure to use the returned window only when you know it is safe
88 // to do so, i.e. before OnDialogClosed() is called on the delegate. 88 // to do so, i.e. before OnDialogClosed() is called on the delegate.
89 gfx::NativeWindow ShowWebDialog(gfx::NativeView parent, 89 gfx::NativeWindow ShowWebDialog(gfx::NativeView parent,
90 content::BrowserContext* context, 90 content::BrowserContext* context,
91 ui::WebDialogDelegate* delegate); 91 ui::WebDialogDelegate* delegate);
92 #endif // !defined(OS_MACOSX) 92 #endif // !defined(OS_MACOSX)
93 93
94 #if defined(USE_ASH) 94 #if defined(USE_ASH)
95 // Creates and shows an HTML dialog with the given delegate and browser context. 95 // Creates and shows an HTML dialog with the given delegate and browser context.
96 // The dialog is placed in the ash window hierarchy in the given container. 96 // The dialog is placed in the ash window hierarchy in the given container. The
97 // window is automatically destroyed when it is closed.
98 // Returns the created window.
97 // See ash/public/cpp/shell_window_ids.h for |container_id| values. The window 99 // See ash/public/cpp/shell_window_ids.h for |container_id| values. The window
98 // is destroyed when it is closed. See also chrome::ShowWebDialog(). 100 // is destroyed when it is closed. See also chrome::ShowWebDialog().
99 void ShowWebDialogInContainer(int container_id, 101 gfx::NativeWindow ShowWebDialogInContainer(int container_id,
100 content::BrowserContext* context, 102 content::BrowserContext* context,
101 ui::WebDialogDelegate* delegate); 103 ui::WebDialogDelegate* delegate);
102 #endif // defined(USE_ASH) 104 #endif // defined(USE_ASH)
103 105
104 // Shows the create chrome app shortcut dialog box. 106 // Shows the create chrome app shortcut dialog box.
105 // |close_callback| may be null. 107 // |close_callback| may be null.
106 void ShowCreateChromeAppShortcutsDialog( 108 void ShowCreateChromeAppShortcutsDialog(
107 gfx::NativeWindow parent_window, 109 gfx::NativeWindow parent_window,
108 Profile* profile, 110 Profile* profile,
109 const extensions::Extension* app, 111 const extensions::Extension* app,
110 const base::Callback<void(bool /* created */)>& close_callback); 112 const base::Callback<void(bool /* created */)>& close_callback);
111 113
(...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after
277 using BubbleShowPtr = 279 using BubbleShowPtr =
278 void (*)(content::WebContents*, 280 void (*)(content::WebContents*,
279 const std::vector<arc::ArcNavigationThrottle::AppInfo>&, 281 const std::vector<arc::ArcNavigationThrottle::AppInfo>&,
280 const IntentPickerResponse&); 282 const IntentPickerResponse&);
281 283
282 BubbleShowPtr ShowIntentPickerBubble(); 284 BubbleShowPtr ShowIntentPickerBubble();
283 285
284 #endif // OS_CHROMEOS 286 #endif // OS_CHROMEOS
285 287
286 #endif // CHROME_BROWSER_UI_BROWSER_DIALOGS_H_ 288 #endif // CHROME_BROWSER_UI_BROWSER_DIALOGS_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/login/ui/login_web_dialog_browsertest.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