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_VIEWS_BROWSER_DIALOGS_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_BROWSER_DIALOGS_H_ |
6 #define CHROME_BROWSER_UI_VIEWS_BROWSER_DIALOGS_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_BROWSER_DIALOGS_H_ |
7 | 7 |
8 #include "ui/gfx/native_widget_types.h" | 8 #include "ui/gfx/native_widget_types.h" |
9 | 9 |
10 // This file contains functions for running a variety of browser dialogs and | 10 // This file contains functions for running a variety of browser dialogs and |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
53 bool IsChromeToMobileBubbleViewShowing(); | 53 bool IsChromeToMobileBubbleViewShowing(); |
54 | 54 |
55 // Shows the page info bubble anchored to the supplied view. | 55 // Shows the page info bubble anchored to the supplied view. |
56 void ShowPageInfoBubble(views::View* anchor_view, | 56 void ShowPageInfoBubble(views::View* anchor_view, |
57 content::WebContents* web_contents, | 57 content::WebContents* web_contents, |
58 const GURL& url, | 58 const GURL& url, |
59 const content::SSLStatus& ssl, | 59 const content::SSLStatus& ssl, |
60 bool show_history, | 60 bool show_history, |
61 content::PageNavigator* navigator); | 61 content::PageNavigator* navigator); |
62 | 62 |
63 // Shows the about dialog. See AboutChromeView. | |
64 void ShowAboutChromeView(gfx::NativeWindow parent, Browser* browser); | |
65 | |
66 // Creates and returns a find bar for the given browser window. See FindBarWin. | 63 // Creates and returns a find bar for the given browser window. See FindBarWin. |
67 FindBar* CreateFindBar(BrowserView* browser_view); | 64 FindBar* CreateFindBar(BrowserView* browser_view); |
68 | 65 |
69 // Shows the Task Manager. | 66 // Shows the Task Manager. |
70 void ShowTaskManager(); | 67 void ShowTaskManager(); |
71 | 68 |
72 // Shows the Task Manager, highlighting the background pages. | 69 // Shows the Task Manager, highlighting the background pages. |
73 void ShowBackgroundPages(); | 70 void ShowBackgroundPages(); |
74 | 71 |
75 // Shows a dialog box that allows a search engine to be edited. |template_url| | 72 // Shows a dialog box that allows a search engine to be edited. |template_url| |
76 // is the search engine being edited. If it is NULL, then the dialog will add a | 73 // is the search engine being edited. If it is NULL, then the dialog will add a |
77 // new search engine with the data the user supplies. |delegate| is an object | 74 // new search engine with the data the user supplies. |delegate| is an object |
78 // to be notified when the user is done editing, or NULL. If NULL, the dialog | 75 // to be notified when the user is done editing, or NULL. If NULL, the dialog |
79 // will update the model with the user's edits directly. | 76 // will update the model with the user's edits directly. |
80 void EditSearchEngine(gfx::NativeWindow parent, | 77 void EditSearchEngine(gfx::NativeWindow parent, |
81 TemplateURL* template_url, | 78 TemplateURL* template_url, |
82 EditSearchEngineControllerDelegate* delegate, | 79 EditSearchEngineControllerDelegate* delegate, |
83 Profile* profile); | 80 Profile* profile); |
84 | 81 |
85 // Shows the create chrome app shortcut dialog box. | 82 // Shows the create chrome app shortcut dialog box. |
86 void ShowCreateChromeAppShortcutsDialog(gfx::NativeWindow parent_window, | 83 void ShowCreateChromeAppShortcutsDialog(gfx::NativeWindow parent_window, |
87 Profile* profile, | 84 Profile* profile, |
88 const extensions::Extension* app); | 85 const extensions::Extension* app); |
89 | 86 |
90 } // namespace chrome | 87 } // namespace chrome |
91 | 88 |
92 #endif // CHROME_BROWSER_UI_VIEWS_BROWSER_DIALOGS_H_ | 89 #endif // CHROME_BROWSER_UI_VIEWS_BROWSER_DIALOGS_H_ |
OLD | NEW |