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

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: BookmarkBubbleView independant from browser, layout_constants and CAPS for enum 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 "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 20 matching lines...) Expand all
31 class View; 31 class View;
32 } 32 }
33 33
34 namespace chrome { 34 namespace chrome {
35 35
36 // Shows or hides the bookmark bubble anchored to the supplied view. 36 // Shows or hides the bookmark bubble anchored to the supplied view.
37 void ShowBookmarkBubbleView(views::View* anchor_view, 37 void ShowBookmarkBubbleView(views::View* anchor_view,
38 BookmarkBubbleViewObserver* observer, 38 BookmarkBubbleViewObserver* observer,
39 Profile* profile, 39 Profile* profile,
40 const GURL& url, 40 const GURL& url,
41 bool newly_bookmarked); 41 bool newly_bookmarked,
42 views::View* sync_promo_view);
42 void HideBookmarkBubbleView(); 43 void HideBookmarkBubbleView();
43 bool IsBookmarkBubbleViewShowing(); 44 bool IsBookmarkBubbleViewShowing();
44 45
45 // Shows or hides the Chrome To Mobile bubble anchored to the supplied view. 46 // Shows or hides the Chrome To Mobile bubble anchored to the supplied view.
46 void ShowChromeToMobileBubbleView(views::View* anchor_view, Browser* browser); 47 void ShowChromeToMobileBubbleView(views::View* anchor_view, Browser* browser);
47 void HideChromeToMobileBubbleView(); 48 void HideChromeToMobileBubbleView();
48 bool IsChromeToMobileBubbleViewShowing(); 49 bool IsChromeToMobileBubbleViewShowing();
49 50
50 // Creates and returns a find bar for the given browser window. See FindBarWin. 51 // Creates and returns a find bar for the given browser window. See FindBarWin.
51 FindBar* CreateFindBar(BrowserView* browser_view); 52 FindBar* CreateFindBar(BrowserView* browser_view);
52 53
53 // Shows a dialog box that allows a search engine to be edited. |template_url| 54 // Shows a dialog box that allows a search engine to be edited. |template_url|
54 // is the search engine being edited. If it is NULL, then the dialog will add a 55 // is the search engine being edited. If it is NULL, then the dialog will add a
55 // new search engine with the data the user supplies. |delegate| is an object 56 // new search engine with the data the user supplies. |delegate| is an object
56 // to be notified when the user is done editing, or NULL. If NULL, the dialog 57 // to be notified when the user is done editing, or NULL. If NULL, the dialog
57 // will update the model with the user's edits directly. 58 // will update the model with the user's edits directly.
58 void EditSearchEngine(gfx::NativeWindow parent, 59 void EditSearchEngine(gfx::NativeWindow parent,
59 TemplateURL* template_url, 60 TemplateURL* template_url,
60 EditSearchEngineControllerDelegate* delegate, 61 EditSearchEngineControllerDelegate* delegate,
61 Profile* profile); 62 Profile* profile);
62 63
63 // Shows the create chrome app shortcut dialog box. 64 // Shows the create chrome app shortcut dialog box.
64 void ShowCreateChromeAppShortcutsDialog(gfx::NativeWindow parent_window, 65 void ShowCreateChromeAppShortcutsDialog(gfx::NativeWindow parent_window,
65 Profile* profile, 66 Profile* profile,
66 const extensions::Extension* app); 67 const extensions::Extension* app);
67 68
68 } // namespace chrome 69 } // namespace chrome
69 70
70 #endif // CHROME_BROWSER_UI_VIEWS_BROWSER_DIALOGS_H_ 71 #endif // CHROME_BROWSER_UI_VIEWS_BROWSER_DIALOGS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698