| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| 11 #include "content/browser/tab_contents/navigation_entry.h" |
| 11 #include "ui/gfx/native_widget_types.h" | 12 #include "ui/gfx/native_widget_types.h" |
| 12 | 13 |
| 13 // This file contains functions for running a variety of browser dialogs and | 14 // This file contains functions for running a variety of browser dialogs and |
| 14 // popups. The dialogs here are the ones that the caller does not need to | 15 // popups. The dialogs here are the ones that the caller does not need to |
| 15 // access the class of the popup. It allows us to break dependencies by | 16 // access the class of the popup. It allows us to break dependencies by |
| 16 // allowing the callers to not depend on the classes implementing the dialogs. | 17 // allowing the callers to not depend on the classes implementing the dialogs. |
| 17 // TODO: Make as many of these methods as possible cross platform, and move them | 18 // TODO: Make as many of these methods as possible cross platform, and move them |
| 18 // into chrome/browser/ui/browser_dialogs.h. | 19 // into chrome/browser/ui/browser_dialogs.h. |
| 19 | 20 |
| 20 class BrowserView; | 21 class BrowserView; |
| (...skipping 10 matching lines...) Expand all Loading... |
| 31 class Size; | 32 class Size; |
| 32 } | 33 } |
| 33 | 34 |
| 34 namespace views { | 35 namespace views { |
| 35 class View; | 36 class View; |
| 36 class Widget; | 37 class Widget; |
| 37 } | 38 } |
| 38 | 39 |
| 39 namespace browser { | 40 namespace browser { |
| 40 | 41 |
| 41 // Shows or hides the global bookmark bubble for the star button. | 42 // Shows or hides the bookmark bubble anchored to the supplied view. |
| 42 void ShowBookmarkBubbleView(views::View* anchor_view, | 43 void ShowBookmarkBubbleView(views::View* anchor_view, |
| 43 Profile* profile, | 44 Profile* profile, |
| 44 const GURL& url, | 45 const GURL& url, |
| 45 bool newly_bookmarked); | 46 bool newly_bookmarked); |
| 46 void HideBookmarkBubbleView(); | 47 void HideBookmarkBubbleView(); |
| 47 bool IsBookmarkBubbleViewShowing(); | 48 bool IsBookmarkBubbleViewShowing(); |
| 48 | 49 |
| 50 // Shows the page info bubble anchored to the supplied view. |
| 51 void ShowPageInfoBubble(views::View* anchor_view, |
| 52 Profile* profile, |
| 53 const GURL& url, |
| 54 const NavigationEntry::SSLStatus& ssl, |
| 55 bool show_history); |
| 56 |
| 49 // Shows the about dialog. See AboutChromeView. | 57 // Shows the about dialog. See AboutChromeView. |
| 50 views::Widget* ShowAboutChromeView(gfx::NativeWindow parent, | 58 views::Widget* ShowAboutChromeView(gfx::NativeWindow parent, |
| 51 Profile* profile); | 59 Profile* profile); |
| 52 | 60 |
| 53 // Creates and returns a find bar for the given browser window. See FindBarWin. | 61 // Creates and returns a find bar for the given browser window. See FindBarWin. |
| 54 FindBar* CreateFindBar(BrowserView* browser_view); | 62 FindBar* CreateFindBar(BrowserView* browser_view); |
| 55 | 63 |
| 56 // Shows the Task Manager. | 64 // Shows the Task Manager. |
| 57 void ShowTaskManager(); | 65 void ShowTaskManager(); |
| 58 | 66 |
| (...skipping 29 matching lines...) Expand all Loading... |
| 88 TabContentsWrapper* tab_contents); | 96 TabContentsWrapper* tab_contents); |
| 89 | 97 |
| 90 // Shows the create chrome app shortcut dialog box. | 98 // Shows the create chrome app shortcut dialog box. |
| 91 void ShowCreateChromeAppShortcutsDialog(gfx::NativeWindow parent_window, | 99 void ShowCreateChromeAppShortcutsDialog(gfx::NativeWindow parent_window, |
| 92 Profile* profile, | 100 Profile* profile, |
| 93 const Extension* app); | 101 const Extension* app); |
| 94 | 102 |
| 95 } // namespace browser | 103 } // namespace browser |
| 96 | 104 |
| 97 #endif // CHROME_BROWSER_UI_VIEWS_BROWSER_DIALOGS_H_ | 105 #endif // CHROME_BROWSER_UI_VIEWS_BROWSER_DIALOGS_H_ |
| OLD | NEW |