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

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: Handle incognito browser removed 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 // 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