Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(176)

Side by Side Diff: chrome/browser/ui/views/browser_dialogs.h

Issue 18603006: Bookmark sync promo for Views. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix test for CrOS Created 7 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 "base/memory/scoped_ptr.h"
8 #include "ui/gfx/native_widget_types.h" 9 #include "ui/gfx/native_widget_types.h"
9 10
10 // This file contains functions for running a variety of browser dialogs and 11 // This file contains functions for running a variety of browser dialogs and
11 // popups. The dialogs here are the ones that the caller does not need to 12 // popups. The dialogs here are the ones that the caller does not need to
12 // access the class of the popup. It allows us to break dependencies by 13 // access the class of the popup. It allows us to break dependencies by
13 // allowing the callers to not depend on the classes implementing the dialogs. 14 // allowing the callers to not depend on the classes implementing the dialogs.
14 // TODO: Make as many of these methods as possible cross platform, and move them 15 // TODO: Make as many of these methods as possible cross platform, and move them
15 // into chrome/browser/ui/browser_dialogs.h. 16 // into chrome/browser/ui/browser_dialogs.h.
16 17
18 class BookmarkBubbleDelegate;
17 class BookmarkBubbleViewObserver; 19 class BookmarkBubbleViewObserver;
18 class Browser; 20 class Browser;
19 class BrowserView; 21 class BrowserView;
20 class EditSearchEngineControllerDelegate; 22 class EditSearchEngineControllerDelegate;
21 class FindBar; 23 class FindBar;
22 class GURL; 24 class GURL;
23 class Profile; 25 class Profile;
24 class TemplateURL; 26 class TemplateURL;
25 27
26 namespace extensions { 28 namespace extensions {
27 class Extension; 29 class Extension;
28 } 30 }
29 31
30 namespace views { 32 namespace views {
31 class View; 33 class View;
32 } 34 }
33 35
34 namespace chrome { 36 namespace chrome {
35 37
36 // Shows or hides the bookmark bubble anchored to the supplied view. 38 // Shows or hides the bookmark bubble anchored to the supplied view.
37 void ShowBookmarkBubbleView(views::View* anchor_view, 39 void ShowBookmarkBubbleView(views::View* anchor_view,
38 BookmarkBubbleViewObserver* observer, 40 BookmarkBubbleViewObserver* observer,
41 scoped_ptr<BookmarkBubbleDelegate> delegate,
39 Profile* profile, 42 Profile* profile,
40 const GURL& url, 43 const GURL& url,
41 bool newly_bookmarked); 44 bool newly_bookmarked);
42 void HideBookmarkBubbleView(); 45 void HideBookmarkBubbleView();
43 bool IsBookmarkBubbleViewShowing(); 46 bool IsBookmarkBubbleViewShowing();
44 47
45 // Creates and returns a find bar for the given browser window. See FindBarWin. 48 // Creates and returns a find bar for the given browser window. See FindBarWin.
46 FindBar* CreateFindBar(BrowserView* browser_view); 49 FindBar* CreateFindBar(BrowserView* browser_view);
47 50
48 // Shows a dialog box that allows a search engine to be edited. |template_url| 51 // Shows a dialog box that allows a search engine to be edited. |template_url|
49 // is the search engine being edited. If it is NULL, then the dialog will add a 52 // is the search engine being edited. If it is NULL, then the dialog will add a
50 // new search engine with the data the user supplies. |delegate| is an object 53 // new search engine with the data the user supplies. |delegate| is an object
51 // to be notified when the user is done editing, or NULL. If NULL, the dialog 54 // to be notified when the user is done editing, or NULL. If NULL, the dialog
52 // will update the model with the user's edits directly. 55 // will update the model with the user's edits directly.
53 void EditSearchEngine(gfx::NativeWindow parent, 56 void EditSearchEngine(gfx::NativeWindow parent,
54 TemplateURL* template_url, 57 TemplateURL* template_url,
55 EditSearchEngineControllerDelegate* delegate, 58 EditSearchEngineControllerDelegate* delegate,
56 Profile* profile); 59 Profile* profile);
57 60
58 // Shows the create chrome app shortcut dialog box. 61 // Shows the create chrome app shortcut dialog box.
59 void ShowCreateChromeAppShortcutsDialog(gfx::NativeWindow parent_window, 62 void ShowCreateChromeAppShortcutsDialog(gfx::NativeWindow parent_window,
60 Profile* profile, 63 Profile* profile,
61 const extensions::Extension* app); 64 const extensions::Extension* app);
62 65
63 } // namespace chrome 66 } // namespace chrome
64 67
65 #endif // CHROME_BROWSER_UI_VIEWS_BROWSER_DIALOGS_H_ 68 #endif // CHROME_BROWSER_UI_VIEWS_BROWSER_DIALOGS_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/bookmarks/bookmark_sync_promo_view_unittest.cc ('k') | chrome/browser/ui/views/frame/browser_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698