| 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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 43 bool IsBookmarkBubbleViewShowing(); | 43 bool IsBookmarkBubbleViewShowing(); |
| 44 | 44 |
| 45 // Shows or hides the Chrome To Mobile bubble anchored to the supplied view. | 45 // Shows or hides the Chrome To Mobile bubble anchored to the supplied view. |
| 46 void ShowChromeToMobileBubbleView(views::View* anchor_view, Browser* browser); | 46 void ShowChromeToMobileBubbleView(views::View* anchor_view, Browser* browser); |
| 47 void HideChromeToMobileBubbleView(); | 47 void HideChromeToMobileBubbleView(); |
| 48 bool IsChromeToMobileBubbleViewShowing(); | 48 bool IsChromeToMobileBubbleViewShowing(); |
| 49 | 49 |
| 50 // Creates and returns a find bar for the given browser window. See FindBarWin. | 50 // Creates and returns a find bar for the given browser window. See FindBarWin. |
| 51 FindBar* CreateFindBar(BrowserView* browser_view); | 51 FindBar* CreateFindBar(BrowserView* browser_view); |
| 52 | 52 |
| 53 // Shows the Task Manager. | |
| 54 void ShowTaskManager(Browser* browser); | |
| 55 | |
| 56 // Shows the Task Manager, highlighting the background pages. | |
| 57 void ShowBackgroundPages(Browser* browser); | |
| 58 | |
| 59 // Shows a dialog box that allows a search engine to be edited. |template_url| | 53 // Shows a dialog box that allows a search engine to be edited. |template_url| |
| 60 // is the search engine being edited. If it is NULL, then the dialog will add a | 54 // is the search engine being edited. If it is NULL, then the dialog will add a |
| 61 // new search engine with the data the user supplies. |delegate| is an object | 55 // new search engine with the data the user supplies. |delegate| is an object |
| 62 // to be notified when the user is done editing, or NULL. If NULL, the dialog | 56 // to be notified when the user is done editing, or NULL. If NULL, the dialog |
| 63 // will update the model with the user's edits directly. | 57 // will update the model with the user's edits directly. |
| 64 void EditSearchEngine(gfx::NativeWindow parent, | 58 void EditSearchEngine(gfx::NativeWindow parent, |
| 65 TemplateURL* template_url, | 59 TemplateURL* template_url, |
| 66 EditSearchEngineControllerDelegate* delegate, | 60 EditSearchEngineControllerDelegate* delegate, |
| 67 Profile* profile); | 61 Profile* profile); |
| 68 | 62 |
| 69 // Shows the create chrome app shortcut dialog box. | 63 // Shows the create chrome app shortcut dialog box. |
| 70 void ShowCreateChromeAppShortcutsDialog(gfx::NativeWindow parent_window, | 64 void ShowCreateChromeAppShortcutsDialog(gfx::NativeWindow parent_window, |
| 71 Profile* profile, | 65 Profile* profile, |
| 72 const extensions::Extension* app); | 66 const extensions::Extension* app); |
| 73 | 67 |
| 74 } // namespace chrome | 68 } // namespace chrome |
| 75 | 69 |
| 76 #endif // CHROME_BROWSER_UI_VIEWS_BROWSER_DIALOGS_H_ | 70 #endif // CHROME_BROWSER_UI_VIEWS_BROWSER_DIALOGS_H_ |
| OLD | NEW |