OLD | NEW |
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 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "chrome/browser/ui/dialog_style.h" | 9 #include "chrome/browser/ui/dialog_style.h" |
10 #include "ipc/ipc_message.h" | 10 #include "ipc/ipc_message.h" |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
42 // Returns the created window. | 42 // Returns the created window. |
43 // | 43 // |
44 // Make sure to use the returned window only when you know it is safe | 44 // Make sure to use the returned window only when you know it is safe |
45 // to do so, i.e. before OnDialogClosed() is called on the delegate. | 45 // to do so, i.e. before OnDialogClosed() is called on the delegate. |
46 gfx::NativeWindow ShowHtmlDialog(gfx::NativeWindow parent, | 46 gfx::NativeWindow ShowHtmlDialog(gfx::NativeWindow parent, |
47 Profile* profile, | 47 Profile* profile, |
48 Browser* browser, | 48 Browser* browser, |
49 HtmlDialogUIDelegate* delegate, | 49 HtmlDialogUIDelegate* delegate, |
50 DialogStyle style); | 50 DialogStyle style); |
51 | 51 |
| 52 // Closes the given dialog. |
| 53 void CloseHtmlDialog(gfx::NativeWindow window); |
| 54 |
52 // Creates the ExtensionInstalledBubble and schedules it to be shown once | 55 // Creates the ExtensionInstalledBubble and schedules it to be shown once |
53 // the extension has loaded. |extension| is the installed extension. |browser| | 56 // the extension has loaded. |extension| is the installed extension. |browser| |
54 // is the browser window which will host the bubble. |icon| is the install | 57 // is the browser window which will host the bubble. |icon| is the install |
55 // icon of the extension. | 58 // icon of the extension. |
56 void ShowExtensionInstalledBubble(const Extension* extension, | 59 void ShowExtensionInstalledBubble(const Extension* extension, |
57 Browser* browser, | 60 Browser* browser, |
58 const SkBitmap& icon, | 61 const SkBitmap& icon, |
59 Profile* profile); | 62 Profile* profile); |
60 | 63 |
61 // Shows or hide the hung renderer dialog for the given WebContents. | 64 // Shows or hide the hung renderer dialog for the given WebContents. |
(...skipping 10 matching lines...) Expand all Loading... |
72 void ConfirmAddSearchProvider(const TemplateURL* template_url, | 75 void ConfirmAddSearchProvider(const TemplateURL* template_url, |
73 Profile* profile); | 76 Profile* profile); |
74 | 77 |
75 // Shows a tab-modal dialog box. | 78 // Shows a tab-modal dialog box. |
76 void ShowTabModalConfirmDialog(TabModalConfirmDialogDelegate* delegate, | 79 void ShowTabModalConfirmDialog(TabModalConfirmDialogDelegate* delegate, |
77 TabContentsWrapper* wrapper); | 80 TabContentsWrapper* wrapper); |
78 | 81 |
79 } // namespace browser | 82 } // namespace browser |
80 | 83 |
81 #endif // CHROME_BROWSER_UI_BROWSER_DIALOGS_H_ | 84 #endif // CHROME_BROWSER_UI_BROWSER_DIALOGS_H_ |
OLD | NEW |