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 | 7 |
8 #include "base/callback.h" | 8 #include "base/callback.h" |
9 #include "chrome/browser/profiles/profile_window.h" | 9 #include "chrome/browser/profiles/profile_window.h" |
10 #include "content/public/common/signed_certificate_timestamp_id_and_status.h" | 10 #include "content/public/common/signed_certificate_timestamp_id_and_status.h" |
(...skipping 22 matching lines...) Expand all Loading... |
33 } | 33 } |
34 | 34 |
35 namespace chrome { | 35 namespace chrome { |
36 | 36 |
37 // Creates and shows an HTML dialog with the given delegate and context. | 37 // Creates and shows an HTML dialog with the given delegate and context. |
38 // The window is automatically destroyed when it is closed. | 38 // The window is automatically destroyed when it is closed. |
39 // Returns the created window. | 39 // Returns the created window. |
40 // | 40 // |
41 // Make sure to use the returned window only when you know it is safe | 41 // Make sure to use the returned window only when you know it is safe |
42 // to do so, i.e. before OnDialogClosed() is called on the delegate. | 42 // to do so, i.e. before OnDialogClosed() is called on the delegate. |
43 gfx::NativeWindow ShowWebDialog(gfx::NativeWindow parent, | 43 gfx::NativeWindow ShowWebDialog(gfx::NativeView parent, |
44 content::BrowserContext* context, | 44 content::BrowserContext* context, |
45 ui::WebDialogDelegate* delegate); | 45 ui::WebDialogDelegate* delegate); |
46 | 46 |
47 // Shows the collected cookies dialog box. | 47 // Shows the collected cookies dialog box. |
48 void ShowCollectedCookiesDialog(content::WebContents* web_contents); | 48 void ShowCollectedCookiesDialog(content::WebContents* web_contents); |
49 | 49 |
50 // Creates the ExtensionInstalledBubble and schedules it to be shown once | 50 // Creates the ExtensionInstalledBubble and schedules it to be shown once |
51 // the extension has loaded. |extension| is the installed extension. |browser| | 51 // the extension has loaded. |extension| is the installed extension. |browser| |
52 // is the browser window which will host the bubble. |icon| is the install | 52 // is the browser window which will host the bubble. |icon| is the install |
53 // icon of the extension. | 53 // icon of the extension. |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
98 | 98 |
99 // Shows the ManagePasswords bubble for a particular |web_contents|. | 99 // Shows the ManagePasswords bubble for a particular |web_contents|. |
100 void ShowManagePasswordsBubble(content::WebContents* web_contents); | 100 void ShowManagePasswordsBubble(content::WebContents* web_contents); |
101 | 101 |
102 // Closes the bubble if it's shown for |web_contents|. | 102 // Closes the bubble if it's shown for |web_contents|. |
103 void CloseManagePasswordsBubble(content::WebContents* web_contents); | 103 void CloseManagePasswordsBubble(content::WebContents* web_contents); |
104 | 104 |
105 } // namespace chrome | 105 } // namespace chrome |
106 | 106 |
107 #endif // CHROME_BROWSER_UI_BROWSER_DIALOGS_H_ | 107 #endif // CHROME_BROWSER_UI_BROWSER_DIALOGS_H_ |
OLD | NEW |