| 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 "ui/gfx/native_widget_types.h" | 11 #include "ui/gfx/native_widget_types.h" |
| 12 | 12 |
| 13 // This file contains functions for running a variety of browser dialogs and | 13 // 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 | 14 // 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 | 15 // 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. | 16 // 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 | 17 // TODO: Make as many of these methods as possible cross platform, and move them |
| 18 // into chrome/browser/ui/browser_dialogs.h. | 18 // into chrome/browser/ui/browser_dialogs.h. |
| 19 | 19 |
| 20 class BrowserView; | 20 class BrowserView; |
| 21 class EditSearchEngineControllerDelegate; | 21 class EditSearchEngineControllerDelegate; |
| 22 class Extension; | 22 class Extension; |
| 23 class FindBar; | 23 class FindBar; |
| 24 class GURL; | 24 class GURL; |
| 25 class BubbleDelegate; | |
| 26 class Profile; | 25 class Profile; |
| 27 class TabContents; | 26 class TabContents; |
| 28 class TabContentsWrapper; | 27 class TabContentsWrapper; |
| 29 class TemplateURL; | 28 class TemplateURL; |
| 30 | 29 |
| 31 namespace gfx { | 30 namespace gfx { |
| 32 class Rect; | |
| 33 class Size; | 31 class Size; |
| 34 } | 32 } |
| 35 | 33 |
| 36 namespace views { | 34 namespace views { |
| 35 class View; |
| 37 class Widget; | 36 class Widget; |
| 38 } | 37 } |
| 39 | 38 |
| 40 namespace browser { | 39 namespace browser { |
| 41 | 40 |
| 42 // Shows or hides the global bookmark bubble for the star button. | 41 // Shows or hides the global bookmark bubble for the star button. |
| 43 void ShowBookmarkBubbleView(views::Widget* parent, | 42 void ShowBookmarkBubbleView(views::View* anchor_view, |
| 44 const gfx::Rect& bounds, | |
| 45 BubbleDelegate* delegate, | |
| 46 Profile* profile, | 43 Profile* profile, |
| 47 const GURL& url, | 44 const GURL& url, |
| 48 bool newly_bookmarked); | 45 bool newly_bookmarked); |
| 49 void HideBookmarkBubbleView(); | 46 void HideBookmarkBubbleView(); |
| 50 bool IsBookmarkBubbleViewShowing(); | 47 bool IsBookmarkBubbleViewShowing(); |
| 51 | 48 |
| 52 // Shows the about dialog. See AboutChromeView. | 49 // Shows the about dialog. See AboutChromeView. |
| 53 views::Widget* ShowAboutChromeView(gfx::NativeWindow parent, | 50 views::Widget* ShowAboutChromeView(gfx::NativeWindow parent, |
| 54 Profile* profile); | 51 Profile* profile); |
| 55 | 52 |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 91 TabContentsWrapper* tab_contents); | 88 TabContentsWrapper* tab_contents); |
| 92 | 89 |
| 93 // Shows the create chrome app shortcut dialog box. | 90 // Shows the create chrome app shortcut dialog box. |
| 94 void ShowCreateChromeAppShortcutsDialog(gfx::NativeWindow parent_window, | 91 void ShowCreateChromeAppShortcutsDialog(gfx::NativeWindow parent_window, |
| 95 Profile* profile, | 92 Profile* profile, |
| 96 const Extension* app); | 93 const Extension* app); |
| 97 | 94 |
| 98 } // namespace browser | 95 } // namespace browser |
| 99 | 96 |
| 100 #endif // CHROME_BROWSER_UI_VIEWS_BROWSER_DIALOGS_H_ | 97 #endif // CHROME_BROWSER_UI_VIEWS_BROWSER_DIALOGS_H_ |
| OLD | NEW |