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

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: Common layout constants 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
11 // popups. The dialogs here are the ones that the caller does not need to 11 // 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 12 // 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. 13 // 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 14 // TODO: Make as many of these methods as possible cross platform, and move them
15 // into chrome/browser/ui/browser_dialogs.h. 15 // into chrome/browser/ui/browser_dialogs.h.
16 16
17 class BookmarkBubbleDelegate;
17 class BookmarkBubbleViewObserver; 18 class BookmarkBubbleViewObserver;
18 class Browser; 19 class Browser;
19 class BrowserView; 20 class BrowserView;
20 class EditSearchEngineControllerDelegate; 21 class EditSearchEngineControllerDelegate;
21 class FindBar; 22 class FindBar;
22 class GURL; 23 class GURL;
23 class Profile; 24 class Profile;
24 class TemplateURL; 25 class TemplateURL;
25 26
26 namespace extensions { 27 namespace extensions {
27 class Extension; 28 class Extension;
28 } 29 }
29 30
30 namespace views { 31 namespace views {
31 class View; 32 class View;
32 } 33 }
33 34
34 namespace chrome { 35 namespace chrome {
35 36
36 // Shows or hides the bookmark bubble anchored to the supplied view. 37 // Shows or hides the bookmark bubble anchored to the supplied view.
38 // |delegate| will be owned by the bookmark bubble.
37 void ShowBookmarkBubbleView(views::View* anchor_view, 39 void ShowBookmarkBubbleView(views::View* anchor_view,
38 BookmarkBubbleViewObserver* observer, 40 BookmarkBubbleViewObserver* observer,
41 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 // Shows or hides the Chrome To Mobile bubble anchored to the supplied view. 48 // Shows or hides the Chrome To Mobile bubble anchored to the supplied view.
46 void ShowChromeToMobileBubbleView(views::View* anchor_view, Browser* browser); 49 void ShowChromeToMobileBubbleView(views::View* anchor_view, Browser* browser);
47 void HideChromeToMobileBubbleView(); 50 void HideChromeToMobileBubbleView();
48 bool IsChromeToMobileBubbleViewShowing(); 51 bool IsChromeToMobileBubbleViewShowing();
(...skipping 12 matching lines...) Expand all
61 Profile* profile); 64 Profile* profile);
62 65
63 // Shows the create chrome app shortcut dialog box. 66 // Shows the create chrome app shortcut dialog box.
64 void ShowCreateChromeAppShortcutsDialog(gfx::NativeWindow parent_window, 67 void ShowCreateChromeAppShortcutsDialog(gfx::NativeWindow parent_window,
65 Profile* profile, 68 Profile* profile,
66 const extensions::Extension* app); 69 const extensions::Extension* app);
67 70
68 } // namespace chrome 71 } // namespace chrome
69 72
70 #endif // CHROME_BROWSER_UI_VIEWS_BROWSER_DIALOGS_H_ 73 #endif // CHROME_BROWSER_UI_VIEWS_BROWSER_DIALOGS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698